Convert frames to RGB before SAHI inference (#17795)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/14851/head
Mohammed Yasin 3 months ago committed by GitHub
parent de89616212
commit 54d845baea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      examples/YOLOv8-SAHI-Inference-Video/yolov8_sahi.py

@ -64,7 +64,7 @@ class SAHIInference:
break
annotator = Annotator(frame) # Initialize annotator for plotting detection and tracking results
results = get_sliced_prediction(
frame,
frame[..., ::-1],
self.detection_model,
slice_height=512,
slice_width=512,

Loading…
Cancel
Save