Skip to content

Conversation

@patrickvonplaten
Copy link
Contributor

@patrickvonplaten patrickvonplaten commented Oct 10, 2022

Make sure init_images and prompts behavior matches.

@patrickvonplaten patrickvonplaten requested review from patil-suraj and pcuenca and removed request for pcuenca October 10, 2022 13:54
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 10, 2022

The documentation is not available anymore as the PR was closed or merged.

"""
if isinstance(prompt, str):
batch_size = 1
prompt = [prompt]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm planning on cleaning this up more generally when tackling #551

@patrickvonplaten
Copy link
Contributor Author

@pcuenca @patil-suraj would be great if you could review if you have a minute

Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@patrickvonplaten patrickvonplaten merged commit 6bc1178 into main Oct 12, 2022
@patrickvonplaten patrickvonplaten deleted the correct_batch_size_init_images branch October 12, 2022 11:00
prathikr pushed a commit to prathikr/diffusers that referenced this pull request Oct 26, 2022
…e#793)

* [Img2Img] Fix batch size mismatch prompts vs. init images

* Remove bogus folder

* fix

* Update src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py

Co-authored-by: Pedro Cuenca <[email protected]>

Co-authored-by: Pedro Cuenca <[email protected]>
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
…e#793)

* [Img2Img] Fix batch size mismatch prompts vs. init images

* Remove bogus folder

* fix

* Update src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py

Co-authored-by: Pedro Cuenca <[email protected]>

Co-authored-by: Pedro Cuenca <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stable-diffusion Image-to-image pipeline is broken for batch_size > 1

4 participants