SF & SAHI #23515
-
|
Hello, i am considering improving the small object detection using Slicing Aided Fine-tuning (SF) and Slicing Aided Hyper Inference (SAHI). I have a few questions:
Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
👋 Hello @cosminlovin7, thank you for your interest in Ultralytics 🚀! This is an automated response to help you get started quickly, and an Ultralytics engineer will also assist soon 🙂 If this is a 🐛 Bug Report (e.g., unexpected metrics, crashes, or incorrect slice/merge behavior), please provide a minimum reproducible example to help us debug it. If this is a custom training ❓ Question (which it sounds like, regarding SF/SAHI workflows for small objects), please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results. Join the Ultralytics community where it suits you best. For real-time chat, head to Discord 🎧. Prefer in-depth discussions? Check out Discourse. Or dive into threads on our Subreddit to share knowledge with the community. UpgradeUpgrade to the latest pip install -U ultralyticsEnvironmentsYOLO may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all Ultralytics CI tests are currently passing. CI tests verify correct operation of all YOLO Modes and Tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit. |
Beta Was this translation helpful? Give feedback.
Yes—your intuition is usually right for SF on already-small 640×640 slices:
mosaic=1.0can make targets effectively too small after the mosaic + resize step, so I’d try a lowermosaic(e.g.0.3–0.6) and keepclose_mosaicenabled (e.g.10–20) so the last epochs see “real” tiles; then pick whatever improves your SAHI-style validation metrics. See the docs on Mosaic augmentation andclose_mosaicfor how those knobs behave.