Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def detect_objects(image):
|
|
37 |
slicer = sv.InferenceSlicer(
|
38 |
callback=callback,
|
39 |
slice_wh=(320, 320), # Adjust slice dimensions as needed
|
40 |
-
overlap_wh=(64, 64), # Adjust overlap in pixels (use
|
41 |
overlap_filter=sv.OverlapFilter.NON_MAX_SUPPRESSION, # Filter overlapping detections
|
42 |
iou_threshold=0.5, # Intersection over Union threshold for NMS
|
43 |
)
|
|
|
37 |
slicer = sv.InferenceSlicer(
|
38 |
callback=callback,
|
39 |
slice_wh=(320, 320), # Adjust slice dimensions as needed
|
40 |
+
overlap_wh=(64, 64), # Adjust overlap in pixels (DO NOT use overlap_ratio_wh here)
|
41 |
overlap_filter=sv.OverlapFilter.NON_MAX_SUPPRESSION, # Filter overlapping detections
|
42 |
iou_threshold=0.5, # Intersection over Union threshold for NMS
|
43 |
)
|