Skip to content

Commit 1f0117d

Browse files
committed
Fix processed_images dimen
1 parent a276639 commit 1f0117d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_img2img.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def prepare_inputs(self, prompt: Union[str, List[str]], image: Union[Image.Image
121121
if isinstance(image, Image.Image):
122122
image = [image]
123123

124-
processed_images = jnp.array([preprocess(img, jnp.float32) for img in image])
124+
processed_images = jnp.concatenate([preprocess(img, jnp.float32) for img in image])
125125

126126
text_input = self.tokenizer(
127127
prompt,

0 commit comments

Comments
 (0)