muhammadsalmanalfaridzi commited on
Commit
e49837a
·
verified ·
1 Parent(s): 7f9aa7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 either overlap_ratio_wh or overlap_wh)
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
  )