基于轻量化网络的YOLOv4检测算法研究
Research on YOLOv4 Detection Algorithm Based on Lightweight Network
DOI: 10.12677/CSA.2021.119238, PDF,    科研立项经费支持
作者: 张小燕, 汪华章:西南民族大学电气工程学院,四川 成都
关键词: 目标检测YOLOv4轻量化模型GhostNetCBAM模块HDCTarget Detection YOLOv4 Lightweight Model GhostNet CBAM Module HDC
摘要: 针对YOLOv4算法网络模型大、运算量大、运行效率低的问题,本文提出一种基于GhostNet的YOLOv4轻量化模型,使用GhostNet代替原网络中的CSPDarknet-53,通过一些简单的线性运算代替部分卷积,减少卷积运算,从而减少参数量以及浮点运算量。然后,在GhostNet中引入CBAM模块,结合通道注意力机制和通道注意力机制,增强模型对有效特征关注。另外使用HDC代替原始网路中的SPPNet,减少浅层网络特征的丢失。最后,将改进的算法与基于其他轻量化网络的YOLOv4算法对比。实验结果证明,与原始YOLOv4相比,在精度损失较小的情况下,基于GhostNet以及注意力机制的YOLOv4轻量化模型的大小得到了压缩,检测速度有了明显的提升。
Abstract: In view of the problems of large network model, large amount of computation and low operation efficiency of YOLOv4 algorithm, this thesis proposes a lightweight model of YOLOv4 based on Ghost-Net. The CSPDarknet-53 in the original network is replaced by GhostNet. And partial convolution is replaced by some simple linear operations to reduce convolution operation, thus reducing the number of arguments and floating point operations. Then, CBAM module is introduced into Ghost-Net, combining channel attention mechanism and channel attention mechanism, to enhance the model’s attention to effective features. In addition, HDC is used instead of SPPNet in the original network to reduce the loss of shallow network features. Finally, the improved algorithm is compared with YOLOv4 algorithm based on other lightweight networks. Experimental results show that, compared with the original YOLOv4, the size of the lightweight model of YOLOv4 based on GhostNet and attention mechanism is compressed and the detection speed is significantly improved under the condition of less accuracy loss.
文章引用:张小燕, 汪华章. 基于轻量化网络的YOLOv4检测算法研究[J]. 计算机科学与应用, 2021, 11(9): 2333-2341. https://doi.org/10.12677/CSA.2021.119238

参考文献

[1] Girshick, R., Donahue, J., Darrell, T., et al. (2016) Region-Based Convolutional Networks for Accurate Object Detection and Segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 38, 142-158. [Google Scholar] [CrossRef
[2] Ren, S.Q., He, K.M., Girshick, R., et al. (2017) Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39, 1137-1149. [Google Scholar] [CrossRef
[3] 帅泽群, 李军. 基于深度学习的目标检测研究[J]. 汽车工程师, 2021(5): 11-14.
[4] Deng, J., Xuan, X.J., et al. (2020) A Review of Research on Object Detection Based on Deep Learning. Journal of Physics: Conference Series, 1684, Article ID: 012028. [Google Scholar] [CrossRef
[5] Liu, J. and Wang, X.W. (2020) Tomato Diseases and Pests Detection Based on Improved Yolo V3 Convolutional Neural Network. Frontiers in Plant Science, 11, 898. [Google Scholar] [CrossRef] [PubMed]
[6] Wan, J.X., Jian, D.F. and Yu, D.Z. (2021) Research on the Method of Grass Mouse Hole Target Detection Based on Deep Learning. Journal of Physics: Conference Series, 1952, Article ID: 022061. [Google Scholar] [CrossRef
[7] Iandola, F.N., Han, S., Moskewicz, M.W., et al. (2016) SqueezeNet: AlexNet-Level Accuracy with 50x Fewer Parameters and <0.5 MB Model Size. ArXiv:1602.07360
[8] Howard, A.G., Zhu, M.L., Chen, B., et al. (2017) MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications. ArXiv:1704.04816
[9] Mark, S., Andrew, H., Zhu, M.L., et al. (2018) MobileNetV2: Inverted Residuals and Linear Bottlenecks. The IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, 2018, 4510-4520.
[10] Ramin, S., Javad, F. and Farshad, K. (2021) A New Damping Strategy of Levenberg-Marquardt Algorithm with a Fuzzy Method for Inverse Heat Transfer Problem Parameter Estima-tion. International Communications in Heat and Mass Transfer, 126, Article ID: 105433. [Google Scholar] [CrossRef
[11] Howard, A., Sandler, M., Chu, G., Chen, L.-C., Chen, B., et al. (2019) Searching for MobileNetV3. 2019 IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, 27 Ocober-2 November 2019, 1314-1324. [Google Scholar] [CrossRef
[12] 邵伟平, 王兴, 曹昭睿, 白帆. 基于MobileNet与YOLOv3的轻量化卷积神经网络设计[J]. 计算机应用, 2020, 40(S1): 8-13.
[13] 刘晋, 邓洪敏, 徐泽林, 杨洋. 面向目标识别的轻量化混合卷积神经网络[J/OL]. 计算机应用: 1-8. http://kns.cnki.net/kcms/detail/51.1307.tp.20210622.0848.002.html, 2021-09-14.
[14] Fu, H.X., Song, G.Q. and Wang, Y.C. (2021) Improved YOLOv4 Marine Target Detection Combined with CBAM Symmetry, 13, 623. [Google Scholar] [CrossRef
[15] 孔维刚, 李文婧, 王秋艳, 曹鹏程, 宋庆增. 基于改进YOLOv4算法的轻量化网络设计与实现[J/OL]. 计算机工程: 1-10. 2021-09-14.[CrossRef
[16] 杨玉敏, 廖育荣, 林存宝, 倪淑燕, 吴止锾. 轻量化卷积神经网络目标检测算法综述[J]. 舰船电子工程, 2021, 41(4): 31-36.
[17] Han, K., Wang, Y.H., Tian, Q., et al. (2020) GhostNet: More Features from Cheap Operations. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, 13-19 June 2020, 1577-1586. [Google Scholar] [CrossRef