1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

fix small mistake in annotation: 32 -> 64 (#1780)

Fix inconsistencies between code and comments in the function 'preprocess'
This commit is contained in:
Daquan Lin
2022-12-25 02:56:57 +08:00
committed by GitHub
parent 9be94d9c66
commit b6d4702301

View File

@@ -39,7 +39,7 @@ def preprocess(image):
if isinstance(image[0], PIL.Image.Image):
w, h = image[0].size
w, h = map(lambda x: x - x % 64, (w, h)) # resize to integer multiple of 32
w, h = map(lambda x: x - x % 64, (w, h)) # resize to integer multiple of 64
image = [np.array(i.resize((w, h)))[None, :] for i in image]
image = np.concatenate(image, axis=0)