Skip to content

Commit

Permalink
fix small mistake in annotation: 32 -> 64 (huggingface#1780)
Browse files Browse the repository at this point in the history
Fix inconsistencies between code and comments in the function 'preprocess'
  • Loading branch information
Line290 authored Dec 24, 2022
1 parent 9be94d9 commit b6d4702
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b6d4702

Please sign in to comment.