aje6 commited on
Commit
16cd1ab
·
verified ·
1 Parent(s): 296ce2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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