Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
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:
|