mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
558 stars 148 forks source link

Generating up to 3 images at the same time #115

Closed trone522 closed 8 months ago

trone522 commented 8 months ago

Hello,

Is it possible to have a way to generate up to 3 images at the same time from the queue? If yes the how?

Thank you

konieshadow commented 8 months ago

For the queue size, you can override it by passing --queue-size flags, like: python mian.py --queue-size 10

But this will only effect the queue size, you are still generating the images one by one.

trone522 commented 8 months ago

What would be a work around ?

mrhan1993 commented 8 months ago

@trone522 Fooocus does not seem to have the concept of batch_size in stable diffusion webui. The image_number in the original project can specify to generate several pictures at a time, but still generate them one by one. If you have a lot of numeracy, you can try to deploy multiple instances. At present, however, you need to handle the task information between multiple instances yourself.