Spaces:
Running
Running
Franco Astegiano
commited on
Commit
•
0c4feb6
1
Parent(s):
c05e944
Update app.py
Browse files
app.py
CHANGED
@@ -90,8 +90,8 @@ def load_image(image, image_size=(256, 256), preserve_aspect_ratio=True):
|
|
90 |
#img = tf.io.decode_image(
|
91 |
# tf.io.read_file(image_path),
|
92 |
#channels=3, dtype=tf.float32)[tf.newaxis, ...]
|
93 |
-
img = crop_center(image)
|
94 |
-
img = tf.image.resize(
|
95 |
return img
|
96 |
|
97 |
def show_n(images, titles=('',)):
|
|
|
90 |
#img = tf.io.decode_image(
|
91 |
# tf.io.read_file(image_path),
|
92 |
#channels=3, dtype=tf.float32)[tf.newaxis, ...]
|
93 |
+
#img = crop_center(image)
|
94 |
+
img = tf.image.resize(image, image_size, preserve_aspect_ratio=True)
|
95 |
return img
|
96 |
|
97 |
def show_n(images, titles=('',)):
|