instantX-research / InstantID

InstantID: Zero-shot Identity-Preserving Generation in Seconds 🔥
https://instantid.github.io/
Apache License 2.0
11.11k stars 807 forks source link

How to do batch generation? #92

Open brausesa opened 9 months ago

brausesa commented 9 months ago

How to make that after pressing the "submit" button several images with different styles and/or with different seeds are generated at once? Thanks

johndpope commented 9 months ago

there's a batch pipeline in this other repo that's using sdxl pipeline from google https://github.com/google/style-aligned

haofanwang commented 9 months ago

In our online demo, we don't support batch now due to limited computing resource. But our pipeline is compatible with num_images_per_prompt, you can locally generate more than one image by setting it.

brausesa commented 9 months ago

our pipeline is compatible with num_images_per_prompt, you can locally generate more than one image by setting it.

I use InstantID locally. Can you please tell me how to set the parameter you are talking about? Thank you!

And is it possible to make it so that generation is by several different styles at once? Thanks

tillo13 commented 9 months ago

I setup a branch into app.py that'd sit in front of the Gradio to batch images from a folder. My goal was to test out various different iterations and configurations, and this solves my problem --you're welcome to use it the same if it is in line with what you're mentioning: https://github.com/tillo13/Instant_id