[Paper Review] Slicing Aided Hyper Inference and Fine-tuning for Small Object Detection
This paper proposes Slicing Aided Hyper Inference (SAHI) and slicing-aided fine-tuning to improve small object detection in high-resolution images without modifying the detector architecture. By dividing input images into overlapping patches, applying inference on each patch, and aggregating results, SAHI boosts AP by up to 6.8% on standard detectors, with an additional 14.5% AP gain when combined with fine-tuning on sliced data.
Detection of small objects and objects far away in the scene is a major challenge in surveillance applications. Such objects are represented by small number of pixels in the image and lack sufficient details, making them difficult to detect using conventional detectors. In this work, an open-source framework called Slicing Aided Hyper Inference (SAHI) is proposed that provides a generic slicing aided inference and fine-tuning pipeline for small object detection. The proposed technique is generic in the sense that it can be applied on top of any available object detector without any fine-tuning. Experimental evaluations, using object detection baselines on the Visdrone and xView aerial object detection datasets show that the proposed inference method can increase object detection AP by 6.8%, 5.1% and 5.3% for FCOS, VFNet and TOOD detectors, respectively. Moreover, the detection accuracy can be further increased with a slicing aided fine-tuning, resulting in a cumulative increase of 12.7%, 13.4% and 14.5% AP in the same order. Proposed technique has been integrated with Detectron2, MMDetection and YOLOv5 models and it is publicly available at https://github.com/obss/sahi.git .
Motivation & Objective
- Address the challenge of detecting small and distant objects in high-resolution surveillance and aerial images where conventional detectors underperform.
- Overcome limitations of existing methods that require detector retraining from scratch or depend on specific architectures.
- Develop a generic, plug-and-play framework that enhances detection performance without altering the original detector's structure.
- Improve detection accuracy for small objects through a two-stage approach: slicing-aided inference and slicing-aided fine-tuning.
- Enable efficient memory usage and scalable computation by decoupling high-resolution image processing into manageable patches.
Proposed method
- Divide high-resolution input images into overlapping patches of configurable size (e.g., 640×640 or 400×400) to increase receptive field for small objects.
- Apply standard object detection inference independently on each patch using any pre-trained detector (e.g., FCOS, VFNet, TOOD).
- Aggregate detection results across patches using non-maximum suppression (NMS) with a matching threshold of 0.5.
- Introduce patch overlap (e.g., 25%) to improve detection recall by capturing objects near patch boundaries.
- Fine-tune the detector on augmented training data created by slicing original images and annotations into patches with random sizes (480–640 for Visdrone, 300–500 for xView).
- Use standard training protocols (e.g., SGD with momentum 0.9, weight decay 0.0001, linear warmup) on the sliced data to improve feature learning for small objects.
Experimental results
Research questions
- RQ1Can a generic, detector-agnostic method improve small object detection performance in high-resolution images without architectural changes?
- RQ2To what extent does slicing-based inference alone enhance detection AP for small objects across diverse detectors like FCOS, VFNet, and TOOD?
- RQ3How much additional accuracy gain can be achieved by fine-tuning the detector on sliced training data compared to standard training?
- RQ4What is the impact of patch overlap (e.g., 25%) on detection performance, particularly for small, medium, and large objects?
- RQ5How does the proposed method balance computational cost and memory usage while maintaining high detection accuracy?
Key findings
- Slicing Aided Hyper Inference (SAHI) increases mean average precision (AP) by 6.8%, 5.1%, and 5.3% for FCOS, VFNet, and TOOD detectors on the Visdrone dataset, respectively.
- Slicing-aided fine-tuning (SF) further increases AP by 12.7%, 13.4%, and 14.5% for FCOS, VFNet, and TOOD on Visdrone, respectively, showing cumulative gains.
- On the xView dataset with extremely small targets, standard inference yields poor performance, but SF improves detection significantly, especially for small/medium objects.
- Applying 25% patch overlap increases overall AP by up to 1.7% on xView and improves small/medium object detection, though it slightly reduces large object AP due to false positives.
- The best small object detection AP is achieved with SF followed by SAHI, while the best large object AP comes from SF followed by full-image inference (FI), confirming FI’s strength for larger objects.
- Despite being a weaker detector, FCOS achieves near-parity with VFNet on xView, highlighting the effectiveness of focal loss in handling class imbalance in small object detection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.