sayakpaul HF staff commited on
Commit
0c48c4a
1 Parent(s): b059242

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -25,7 +25,7 @@ def preprocess_image(orig_image: Image, size: int):
25
  image_resized, (resize_size, resize_size), method="bicubic"
26
  )
27
  image_resized = crop_layer(image_resized)
28
- return image_resized, norm_layer(image_resized).numpy()
29
 
30
 
31
  # Reference:
 
25
  image_resized, (resize_size, resize_size), method="bicubic"
26
  )
27
  image_resized = crop_layer(image_resized)
28
+ return image_resized.numpy().squeeze(), norm_layer(image_resized).numpy()
29
 
30
 
31
  # Reference: