mp-02 commited on
Commit
4f4c048
·
verified ·
1 Parent(s): 10c2a49

Update sroie_inference.py

Browse files
Files changed (1) hide show
  1. sroie_inference.py +1 -1
sroie_inference.py CHANGED
@@ -88,7 +88,7 @@ def prediction(image):
88
 
89
  blur_boxes = []
90
  for prediction, box in zip(true_predictions, true_boxes):
91
- if prediction != 'O' and prediction[2:] != 'TOTAL':
92
  blur_boxes.append(box)
93
 
94
  image = (blur(image, blur_boxes))
 
88
 
89
  blur_boxes = []
90
  for prediction, box in zip(true_predictions, true_boxes):
91
+ if prediction != 'O' and prediction != 'TOTAL':
92
  blur_boxes.append(box)
93
 
94
  image = (blur(image, blur_boxes))