SlimYOLOv3: Narrower, Faster and Better for Real-Time UAV Applications

Pengyi Zhang, Yunxin Zhong, Xiaoqiong LiWorkshops @ ICCV 2019 · DOI

Introduction

Deploying deep learning models on Unmanned Aerial Vehicles (UAVs) presents a significant challenge due to the mismatch between the high computational demands of state-of-the-art object detectors and the limited resource constraints of embedded hardware. While lightweight variants like YOLOv3-tiny offer speed, they often suffer from substantial accuracy degradation. Conversely, full-scale models like YOLOv3 provide high precision but are too computationally intensive for real-time drone applications, leading to high latency and excessive power consumption. SlimYOLOv3 addresses this by leveraging channel pruning to create a "Goldilocks" solution: a model that maintains deep feature extraction capabilities while discarding internal redundancy.

Methodology

The researchers proposed a three-stage pipeline to derive SlimYOLOv3 from a base YOLOv3 architecture enhanced with Spatial Pyramid Pooling (SPP) modules.

  1. Sparsity Training: L1 regularization is applied to the scaling factors ($\gamma$) of the Batch Normalization (BN) layers. This forces the network to identify non-essential channels.
  2. Channel Pruning: Channels with near-zero scaling factors are removed. The study evaluated pruning ratios of 50%, 90%, and 95%.
  3. Fine-tuning: The pruned model is retrained to recover accuracy lost during the surgical removal of channels.
The three-stage pipeline for SlimYOLOv3: Sparsity training, Channel pruning, and Fine-tuning.

The inclusion of SPP modules is critical, as it allows the network to extract multiscale features, which is essential for detecting objects at varying distances—a common scenario in aerial surveillance.

Experimental Setup

The models were evaluated using the VisDrone2018-Det benchmark, which contains over 7,000 drone-captured images. This dataset is particularly challenging due to the small size of objects (e.g., pedestrians, bicycles, cars) relative to the frame and the diverse environmental conditions.

Results and Discussion

SlimYOLOv3 demonstrates that modern detectors are significantly over-parameterized for specific tasks. The results indicate that a "deep and narrow" architecture is superior to a "shallow and wide" one. For instance, SlimYOLOv3-SPP3-95 outperformed YOLOv3-tiny in accuracy (21.2 mAP vs 11.0 mAP) while maintaining a similar computational footprint.

Performance comparison of SlimYOLOv3 variants against baseline models on the VisDrone2018-Det dataset.

Key performance metrics include:

  • Computational Efficiency: The 90% pruned version achieved a ~90.8% reduction in FLOPs and a ~92.0% reduction in parameter size compared to the unpruned YOLOv3-SPP3.
  • Inference Speed: SlimYOLOv3 operates approximately twice as fast as the original model on the same hardware.
  • Accuracy Retention: SlimYOLOv3-SPP3-50 maintained a mAP of 25.8, nearly matching the baseline's 26.4, despite the drastic reduction in complexity.

Conclusion

SlimYOLOv3 provides an efficient framework for real-time object detection on UAVs. While the model faces challenges such as category imbalance in datasets and architectural bottlenecks in sequential processing, it proves that channel pruning is a highly effective method for optimizing deep networks for embedded deployment. Future work will focus on automating the pruning process and further optimizing architectures for ultra-low-power hardware.

Summary updated

BibTeX
@inproceedings{zhang2019slimyolov,
  author = {Pengyi Zhang and Yunxin Zhong and Xiaoqiong Li},
  title = {{SlimYOLOv3: Narrower, Faster and Better for Real-Time UAV Applications}},
  booktitle = {Workshops @ ICCV},
  year = {2019},
  doi = {10.1109/iccvw.2019.00011},
}
Figure