Spaces:
Sleeping
Sleeping
AdarshRavis
commited on
Commit
•
db93a9c
1
Parent(s):
f3bb9da
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ def decoder_block(layer_in, skip_in, n_filters, dropout=True):
|
|
63 |
def load_and_preprocess_image(image):
|
64 |
custom_image = np.array(image)
|
65 |
custom_image = cv2.resize(custom_image, (256, 256))
|
66 |
-
custom_image = cv2.cvtColor(custom_image, cv2.COLOR_BGR2RGB)
|
67 |
custom_image = (custom_image.astype(np.float32) - 127.5) / 127.5
|
68 |
custom_image = np.expand_dims(custom_image, axis=0)
|
69 |
return custom_image
|
|
|
63 |
def load_and_preprocess_image(image):
|
64 |
custom_image = np.array(image)
|
65 |
custom_image = cv2.resize(custom_image, (256, 256))
|
66 |
+
#custom_image = cv2.cvtColor(custom_image, cv2.COLOR_BGR2RGB)
|
67 |
custom_image = (custom_image.astype(np.float32) - 127.5) / 127.5
|
68 |
custom_image = np.expand_dims(custom_image, axis=0)
|
69 |
return custom_image
|