Commit d43972a
authored
Fixes prompt input checks in StableDiffusion img2img pipeline (huggingface#2206)
* Fixes prompt input checks in img2img
Allows providing prompt_embeds instead of the prompt, which is not currently possible as the first check fails.
This becomes the same as the function found in https://github.com/huggingface/diffusers/blob/8267c7844504b55366525169187767ef92d1f499/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py#L393
* Continues the fix
This also needs to be fixed. Becomes consistent with https://github.com/huggingface/diffusers/blob/8267c7844504b55366525169187767ef92d1f499/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py#L558
I've now tested this implementation, and it produces the expected results.1 parent ffed242 commit d43972a
File tree
1 file changed
+6
-4
lines changed- src/diffusers/pipelines/stable_diffusion
1 file changed
+6
-4
lines changedLines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | 431 | | |
435 | 432 | | |
436 | 433 | | |
| |||
623 | 620 | | |
624 | 621 | | |
625 | 622 | | |
626 | | - | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
627 | 629 | | |
628 | 630 | | |
629 | 631 | | |
| |||
0 commit comments