[Paper Review] Lightweight Object Detection: A Study Based on YOLOv7 Integrated with ShuffleNetv2 and Vision Transformer
The paper enhances YOLOv7-tiny with ShuffleNetv2 and Vision Transformer for mobile deployment, achieving faster inference with competitive accuracy.
As mobile computing technology rapidly evolves, deploying efficient object detection algorithms on mobile devices emerges as a pivotal research area in computer vision. This study zeroes in on optimizing the YOLOv7 algorithm to boost its operational efficiency and speed on mobile platforms while ensuring high accuracy. Leveraging a synergy of advanced techniques such as Group Convolution, ShuffleNetV2, and Vision Transformer, this research has effectively minimized the model's parameter count and memory usage, streamlined the network architecture, and fortified the real-time object detection proficiency on resource-constrained devices. The experimental outcomes reveal that the refined YOLO model demonstrates exceptional performance, markedly enhancing processing velocity while sustaining superior detection accuracy.
Motivation & Objective
- Investigate bottlenecks of YOLOv7 for mobile deployment and identify optimization opportunities.
- Design a lightweight backbone and neck using ShuffleNetv2 and Vision Transformer integrations.
- Evaluate the proposed DGSM and DGST modules on a mobile-lean dataset for speed and accuracy.
- Compare lightweight configurations against YOLOv7 Tiny in terms of efficiency and performance.
Proposed method
- Introduce DGSM (Dynamic Group Convolution Shuffle Module) to replace backbone blocks with group conv and channel shuffle for efficiency.
- Introduce DGST (Dynamic Group Shuffle Transformer) to replace neck with Vision Transformer–based processing combined with group conv and channel shuffle.
- Reduce detection heads from three to two to lower computational load.
- Train and evaluate on a mobile-lean dataset of masked/unmasked persons with 70/15/15 split.
- Compare GPU consumption, parameter count, and inference time across DGSM, DGST, DGST+DGSM, and YOLOv7 Tiny.
- Report mAP@0.5 and mAP@0.5:0.95, precision, recall, and F1 for each configuration.
Experimental results
Research questions
- RQ1Can ShuffleNetv2-based backbones and Vision Transformer-based necks provide comparable accuracy to heavier YOLO variants on mobile hardware?
- RQ2What is the trade-off between model size, inference speed, and detection accuracy when integrating DGSM and DGST into YOLOv7?
- RQ3Does combining DGST and DGSM yield the best balance of speed and accuracy for real-time mobile detection?
Key findings
- DGST achieves the highest F1 score (0.8524) among individual models on the evaluated metrics.
- DGST+DGSM provides the fastest overall inference (136.8 ms) and the smallest parameter size (2.02M).
- DGST+DGSM attains strong mAP@0.5 and mAP@0.5:0.95, indicating robust detection across IoU thresholds.
- YOLOv7 Tiny offers the best training loss yet comes with the highest GPU cost and largest parameter count.
- DGST and DGST+DGSM offer favorable speed-accuracy trade-offs compared with YOLOv7 Tiny.
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.