"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "fb54499614f9603bfaa4c026202c5783841b3a80"
Unverified Commit b6d47023 authored by Daquan Lin's avatar Daquan Lin Committed by GitHub
Browse files

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

Fix inconsistencies between code and comments in the function 'preprocess'
parent 9be94d9c
...@@ -39,7 +39,7 @@ def preprocess(image): ...@@ -39,7 +39,7 @@ def preprocess(image):
if isinstance(image[0], PIL.Image.Image): if isinstance(image[0], PIL.Image.Image):
w, h = image[0].size 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.array(i.resize((w, h)))[None, :] for i in image]
image = np.concatenate(image, axis=0) image = np.concatenate(image, axis=0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment