Can SAHI be used with ByteTrack? #18164
-
I've got large images with small objects to detect. I think SAHI might be a good choice for me, but I also want to use ByteTrack (or any object tracking algorithm). Does SAHI work directly with the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
👋 Hello @tonyreina, thank you for your interest in Ultralytics 🚀! We recommend exploring the Docs for detailed guidance, where you can find valuable information on Python and CLI examples. Your use case sounds exciting, and we’re here to help clarify how components like SAHI and ByteTrack can work together. If this is a ❓ Question about custom workflows or integrations like SAHI and object tracking, we encourage you to share any relevant code snippets, debugging output, or logs to better understand your setup. If this is a 🐛 Bug Report related to specific model behavior, please provide a minimum reproducible example to help us investigate further. In the meantime, we encourage upgrading to the latest version of the pip install -U ultralytics For seamless experimentation, you can leverage any of the following verified environments with preinstalled dependencies:
Join the CommunityJoin the Ultralytics community where it suits you best:
StatusIf this badge is green, all Ultralytics CI tests are currently passing, indicating stable performance across all tested YOLO Modes and Tasks. 📌 Please note this is an automated response to assist you promptly. One of our Ultralytics engineers will follow up soon to provide further assistance! |
Beta Was this translation helpful? Give feedback.
-
@tonyreina sAHI currently focuses on improving object detection through sliced inference and does not directly integrate with the |
Beta Was this translation helpful? Give feedback.
-
Thanks @glenn-jocher . I see the code for batch predictions using Ultralytics and SAHI:
It appears to be running one image at a time rather than a batch of images. Does the batch here just mean a batch of slices for one image? Could I specify larger batches of images? My GPU is only being used about 10%. |
Beta Was this translation helpful? Give feedback.
@tonyreina sAHI currently focuses on improving object detection through sliced inference and does not directly integrate with the
model.track
approach in Ultralytics or tracking algorithms like ByteTrack. Your suggested two-step process—using SAHI for sliced inference to generate predictions and then applying ByteTrack for tracking on those predictions—would be a practical solution.