Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -280,6 +280,12 @@ def predict(image):
|
|
280 |
print("Min value of image:", np.min(annotated_img))
|
281 |
print("Max value of image:", np.max(annotated_img))
|
282 |
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
# Convert to PIL Image
|
284 |
# annotated_img = Image.fromarray(annotated_img)
|
285 |
|
|
|
280 |
print("Min value of image:", np.min(annotated_img))
|
281 |
print("Max value of image:", np.max(annotated_img))
|
282 |
|
283 |
+
# Normalize output image (again)
|
284 |
+
annotated_img = (annotated_img / 255.0 - mean)/std
|
285 |
+
|
286 |
+
print("Min value of image after normalization:", np.min(annotated_img))
|
287 |
+
print("Max value of image after normalization:", np.max(annotated_img))
|
288 |
+
|
289 |
# Convert to PIL Image
|
290 |
# annotated_img = Image.fromarray(annotated_img)
|
291 |
|