Skip to content

Commit 7bc2fff

Browse files
authored
Fix StableUnCLIPImg2ImgPipeline handling of explicitly passed image embeddings (#2845)
1 parent 4c26cb9 commit 7bc2fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def _encode_image(
388388
# what the expected dimensions of inputs should be and how we handle the encoding.
389389
repeat_by = num_images_per_prompt
390390

391-
if not image_embeds:
391+
if image_embeds is None:
392392
if not isinstance(image, torch.Tensor):
393393
image = self.feature_extractor(images=image, return_tensors="pt").pixel_values
394394

0 commit comments

Comments
 (0)