Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
bd06dd02
"references/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "250bac897ede97caa7c5cd7e453bdea187cc1c5b"
Unverified
Commit
bd06dd02
authored
Oct 26, 2022
by
Hu Ye
Committed by
GitHub
Oct 26, 2022
Browse files
[inpaint pipeline] fix bug for multiple prompts inputs (#959)
parent
b2e2d141
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py
...nes/stable_diffusion/pipeline_stable_diffusion_inpaint.py
+2
-2
No files found.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py
View file @
bd06dd02
...
@@ -340,8 +340,8 @@ class StableDiffusionInpaintPipeline(DiffusionPipeline):
...
@@ -340,8 +340,8 @@ class StableDiffusionInpaintPipeline(DiffusionPipeline):
masked_image_latents
=
0.18215
*
masked_image_latents
masked_image_latents
=
0.18215
*
masked_image_latents
# duplicate mask and masked_image_latents for each generation per prompt, using mps friendly method
# duplicate mask and masked_image_latents for each generation per prompt, using mps friendly method
mask
=
mask
.
repeat
(
num_images_per_prompt
,
1
,
1
,
1
)
mask
=
mask
.
repeat
(
batch_size
*
num_images_per_prompt
,
1
,
1
,
1
)
masked_image_latents
=
masked_image_latents
.
repeat
(
num_images_per_prompt
,
1
,
1
,
1
)
masked_image_latents
=
masked_image_latents
.
repeat
(
batch_size
*
num_images_per_prompt
,
1
,
1
,
1
)
mask
=
torch
.
cat
([
mask
]
*
2
)
if
do_classifier_free_guidance
else
mask
mask
=
torch
.
cat
([
mask
]
*
2
)
if
do_classifier_free_guidance
else
mask
masked_image_latents
=
(
masked_image_latents
=
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment