Skip to content

Commit b6d4702

Browse files
authored
fix small mistake in annotation: 32 -> 64 (#1780)
Fix inconsistencies between code and comments in the function 'preprocess'
1 parent 9be94d9 commit b6d4702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def preprocess(image):
3939

4040
if isinstance(image[0], PIL.Image.Image):
4141
w, h = image[0].size
42-
w, h = map(lambda x: x - x % 64, (w, h)) # resize to integer multiple of 32
42+
w, h = map(lambda x: x - x % 64, (w, h)) # resize to integer multiple of 64
4343

4444
image = [np.array(i.resize((w, h)))[None, :] for i in image]
4545
image = np.concatenate(image, axis=0)

0 commit comments

Comments
 (0)