YOLObile: Real-Time Object Detection on Mobile Devices via Compression-Compilation Co-Design

Yuxuan Cai, Hongjia Li, Geng Yuan, Wei Niu, Yanyu Li +3 more
9/12/2020
cs.CVcs.AIcs.LG

Official code: nightsnack/YOLObile (371 stars, GPL-3.0, last commit 2024-07-25).

Abstract

The rapid development and wide utilization of object detection techniques have aroused attention on both accuracy and speed of object detectors. However, the current state-of-the-art object detection works are either accuracy-oriented using a large model but leading to high latency or speed-oriented using a lightweight model but sacrificing accuracy. In this work, we propose YOLObile framework, a real-time object detection on mobile devices via compression-compilation co-design. A novel block-punched pruning scheme is proposed for any kernel size. To improve computational efficiency on mobile devices, a GPU-CPU collaborative scheme is adopted along with advanced compiler-assisted optimizations. Experimental results indicate that our pruning scheme achieves 14$\times$ compression rate of YOLOv4 with 49.0 mAP. Under our YOLObile framework, we achieve 17 FPS inference speed using GPU on Samsung Galaxy S20. By incorporating our proposed GPU-CPU collaborative scheme, the inference speed is increased to 19.1 FPS, and outperforms the original YOLOv4 by 5$\times$ speedup. Source code is at: \url{https://github.com/nightsnack/YOLObile}.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

This is the implementation of YOLObile: Real-Time Object Detection on Mobile Devices via Compression-Compilation Co-Design

37195Shell, PythonAug 4, 20202 years agoGPL-3.0
deep-learningobject-detectionyolov4

Cite this paper

@article{cai2020yolobile,
  title  = {YOLObile: Real-Time Object Detection on Mobile Devices via Compression-Compilation Co-Design},
  author = {Yuxuan Cai and Hongjia Li and Geng Yuan and Wei Niu and Yanyu Li and Xulong Tang and Bin Ren and Yanzhi Wang},
  year   = {2020},
  eprint = {2009.05697},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.05697}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2009.05697.svg)](https://codeofpaper.com/paper/2009.05697)

Discussion