Update my_model/KBVQA.py
Browse files- 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=
|
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 |
|