m7mdal7aj commited on
Commit
d6c40fa
1 Parent(s): 0a21c2c

Update my_model/KBVQA.py

Browse files
Files changed (1) hide show
  1. my_model/KBVQA.py +1 -1
my_model/KBVQA.py CHANGED
@@ -136,7 +136,7 @@ class KBVQA:
136
  """
137
  st.write('detect func', self.detection_confidence)
138
  image = self.detector.process_image(img)
139
- detected_objects_string, detected_objects_list = self.detector.detect_objects(image, threshold=self.detection_confidence)
140
  image_with_boxes = self.detector.draw_boxes(img, detected_objects_list)
141
  return image_with_boxes, detected_objects_string
142
 
 
136
  """
137
  st.write('detect func', self.detection_confidence)
138
  image = self.detector.process_image(img)
139
+ detected_objects_string, detected_objects_list = self.detector.detect_objects(image, threshold=st.session_state['confidence_level'])
140
  image_with_boxes = self.detector.draw_boxes(img, detected_objects_list)
141
  return image_with_boxes, detected_objects_string
142