Skip to main content
QUICK REVIEW

[论文解读] Lightweight Object Detection: A Study Based on YOLOv7 Integrated with ShuffleNetv2 and Vision Transformer

Wenkai Gong|arXiv (Cornell University)|Mar 4, 2024
Industrial Vision Systems and Defect DetectionEngineering被引用 14
一句话总结

该论文通过 ShuffleNetv2 和 Vision Transformer 对 YOLOv7-tiny 进行增强,以实现移动部署,提升推理速度并在精度方面具有竞争力。

ABSTRACT

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.

研究动机与目标

  • 研究 YOLOv7 在移动部署中的瓶颈并识别优化机会。
  • 设计基于 ShuffleNetv2 与 Vision Transformer 集成的轻量化骨干网和颈部结构。
  • 在面向移动的瘦数据集上评估所提出的 DGSM 和 DGST 模块,以衡量速度与精度。
  • 在效率和性能方面将轻量化配置与 YOLOv7 Tiny 进行对比。

提出的方法

  • 引入 DGSM(Dynamic Group Convolution Shuffle Module,动态分组卷积通道打乱模块),以用分组卷积和通道打乱替代骨干块以提高效率。
  • 引入 DGST(Dynamic Group Shuffle Transformer,动态分组打乱变换器),用基于 Vision Transformer 的处理替代颈部结构,并结合分组卷积和通道打乱。
  • 将检测头从三头降至两头,以降低计算量。
  • 在包含遮挡/非遮挡人员的移动瘦数据集上进行训练和评估,按 70/15/15 的划分。
  • 比较 DGSM、DGST、DGST+DGSM 以及 YOLOv7 Tiny 在 GPU 消耗、参数量和推理时间上的差异。
  • 报告每种配置的 mAP@0.5 和 mAP@0.5:0.95、precision、recall 和 F1。

实验结果

研究问题

  • RQ1基于 ShuffleNetv2 的骨干网和基于 Vision Transformer 的颈部结构是否能够在移动硬件上提供与较重的 YOLO 变体相当的精度?
  • RQ2将 DGSM 与 DGST 集成到 YOLOv7 时,模型大小、推理速度和检测精度之间的权衡如何?
  • RQ3将 DGST 与 DGSM 相结合是否为实时移动检测提供最佳的速度与精度平衡?

主要发现

  • DGST 在所评估的指标中在单独模型里获得最高的 F1 分数(0.8524)。
  • DGST+DGSM 提供最快的整体推理时间(136.8 ms)以及最小的参数量(2.02M)。
  • DGST+DGSM 在 mAP@0.5 与 mAP@0.5:0.95 上表现出色,表明在不同 IoU 阈值下的检测鲁棒性。
  • YOLOv7 Tiny 提供了最好的训练损失,但其代价是最高的 GPU 成本和最大的参数数量。
  • DGST 与 DGST+DGSM 相比于 YOLOv7 Tiny 提供更有利的速度-精度权衡。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。