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
OpenDAS
diffusers
Commits
7bc2fff1
Unverified
Commit
7bc2fff1
authored
Mar 27, 2023
by
Eugene Lyapustin
Committed by
GitHub
Mar 27, 2023
Browse files
Fix StableUnCLIPImg2ImgPipeline handling of explicitly passed image embeddings (#2845)
parent
4c26cb9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py
...elines/stable_diffusion/pipeline_stable_unclip_img2img.py
+1
-1
No files found.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py
View file @
7bc2fff1
...
@@ -388,7 +388,7 @@ class StableUnCLIPImg2ImgPipeline(DiffusionPipeline):
...
@@ -388,7 +388,7 @@ class StableUnCLIPImg2ImgPipeline(DiffusionPipeline):
# what the expected dimensions of inputs should be and how we handle the encoding.
# what the expected dimensions of inputs should be and how we handle the encoding.
repeat_by
=
num_images_per_prompt
repeat_by
=
num_images_per_prompt
if
not
image_embeds
:
if
image_embeds
is
None
:
if
not
isinstance
(
image
,
torch
.
Tensor
):
if
not
isinstance
(
image
,
torch
.
Tensor
):
image
=
self
.
feature_extractor
(
images
=
image
,
return_tensors
=
"pt"
).
pixel_values
image
=
self
.
feature_extractor
(
images
=
image
,
return_tensors
=
"pt"
).
pixel_values
...
...
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