You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
566B

  1. # Lancer le téléchargement des modeles
  2. chmod +x ./setup_fooocus_models.sh
  3. ./setup_fooocus_models.sh
  4. # A lire
  5. https://github.com/mrhan1993/Fooocus-API/blob/main/examples/examples_v2.py
  6. # tests
  7. curl -X POST "http://127.0.0.1:8888/v1/generation/text-to-image" -H "Content-Typ
  8. e: application/json" -d '{
  9. "prompt": "A cyberpunk city street at night, neon lights, rainy",
  10. "negative_prompt": "blurry, low quality",
  11. "width": 768,
  12. "height": 768,
  13. "steps": 30,
  14. "guidance_scale": 7.5
  15. }'