Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -268,7 +268,8 @@ def predict(image):
|
|
268 |
print("type output:", type(output))
|
269 |
print(output)
|
270 |
|
271 |
-
annotated_img = (output[0] / 255.0 - mean)/std
|
|
|
272 |
print("type annotated image:", type(annotated_img))
|
273 |
print(annotated_img)
|
274 |
|
|
|
268 |
print("type output:", type(output))
|
269 |
print(output)
|
270 |
|
271 |
+
# annotated_img = (output[0] / 255.0 - mean)/std
|
272 |
+
annotated_img = classes[outputs[0][0].argmax(0)]
|
273 |
print("type annotated image:", type(annotated_img))
|
274 |
print(annotated_img)
|
275 |
|