Spaces:
Runtime error
Runtime error
extra
Browse files- utils_for_app.py +1 -1
utils_for_app.py
CHANGED
|
@@ -100,7 +100,7 @@ def intersection_over_union(boxes_preds, boxes_labels, box_format="midpoint"):
|
|
| 100 |
|
| 101 |
return intersection / (box1_area + box2_area - intersection + 1e-6)
|
| 102 |
|
| 103 |
-
def
|
| 104 |
"""
|
| 105 |
Video explanation of this function:
|
| 106 |
https://youtu.be/YDkjWEN8jNA
|
|
|
|
| 100 |
|
| 101 |
return intersection / (box1_area + box2_area - intersection + 1e-6)
|
| 102 |
|
| 103 |
+
def non_max_suppressionv2(bboxes, iou_threshold, threshold, box_format="corners"):
|
| 104 |
"""
|
| 105 |
Video explanation of this function:
|
| 106 |
https://youtu.be/YDkjWEN8jNA
|