Skip to content

Commit 6a02662

Browse files
committed
convert
1 parent 798e800 commit 6a02662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/text_to_image/pipeline_stable_diffusion_img2img_render_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def preprocess(image):
4040
image = [np.array(i.resize((w, h), resample=PIL_INTERPOLATION["lanczos"]))[None, :] for i in image]
4141
image = np.concatenate(image, axis=0)
4242
image = np.array(image).astype(np.float32) / 255.0
43-
#image = image.transpose(0, 3, 1, 2)
43+
image = image.transpose(0, 3, 1, 2)
4444
image = 2.0 * image - 1.0
4545
image = torch.from_numpy(image)
4646
elif isinstance(image[0], torch.Tensor):

0 commit comments

Comments
 (0)