muhammadsalmanalfaridzi commited on
Commit
8215f62
·
verified ·
1 Parent(s): 5175126

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def detect_objects_with_sahi(image):
26
  image_np = np.array(image)
27
 
28
  # Run inference with SAHI Slicer
29
- slicer = sv.InferenceSlicer(callback=callback)
30
  sliced_detections = slicer(image=image_np)
31
 
32
  # Annotate image with detected objects
 
26
  image_np = np.array(image)
27
 
28
  # Run inference with SAHI Slicer
29
+ slicer = sv.InferenceSlicer(callback=callback, overlap_wh=(50, 50), overlap_ratio_wh=None)
30
  sliced_detections = slicer(image=image_np)
31
 
32
  # Annotate image with detected objects