Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2022, Vol. 48 ›› Issue (3): 310-314. doi: 10.19678/j.issn.1000-3428.0059966

• Development Research and Engineering Application • Previous Articles     Next Articles

Lightweight Beverage Recognition Network Based on GhostNet Residual Structure

CAO Yuanjie1,2, GAO Yuxiang1,2   

  1. 1. College of Communication Engineering, Chengdu University of Information Technology, Chengdu 610225, China;
    2. Meteorological Information and Signal Processing Key Laboratory of Sichuan Education Institutes, Chengdu 610225, China
  • Received:2020-11-10 Revised:2021-03-08 Published:2021-03-08

基于GhostNet残差结构的轻量化饮料识别网络

曹远杰1,2, 高瑜翔1,2   

  1. 1. 成都信息工程大学 通信工程学院, 成都 610225;
    2. 气象信息与信号处理四川省高校重点实验室, 成都 610225
  • 作者简介:曹远杰(1997-),男,硕士研究生,主研方向为深度学习、目标跟踪;高瑜翔(通信作者),教授、博士。
  • 基金资助:
    四川省教育厅高校创新团队项目(15TD0022)。

Abstract: To alleviate the problem that the Yolov4-Tiny algorithm cannot be deployed on a platform with limited resources due to its large number of parameters and heavy computational requirements, a lightweight target detection network based on GhostNet residue structure is proposed in this study.The proposed network adopts the GhostNet structure to divide ordinary convolution into two steps, that is, a small number of convolution kernels are used to generate one part of the feature graph, and the other part of the generated feature graph is obtained through simple calculation, and the two groups of feature graphs are spliced, which reduces the required resource load and number of parameters.This study indicates that the normalization layer of Yolov4-Tiny algorithm reduces the model size leveraging the residue structure built by GhostNet to only 2.18 MB, which is 90% smaller than that of the original Yolov4-Tiny algorithm.The average image processing speed of Yolov4-Ghostnet algorithm is 24% faster than that of Yolov4-Tiny algorithm with respect to GPU acceleration and 56% faster regarding CPU processing.The experimental results indicate that the algorithm achieves a mean Average Precision(mAP) value of 79.43% on the beverage test set.Compared to the Yolov4-Tiny algorithm without loss of accuracy, the proposed algorithm significantly reduces the amount of network computational load and its number of parameters, speeds up the reasoning speed, and is more suitable to be deployed in embedded devices with insufficient resource computing power.

Key words: deep learning, Convolutional Neural Network(CNN), YOLOv4-Tiny algorithm, residual structure, lightweight, object detection

摘要: YOLOv4-Tiny目标检测网络算法存在参数多和计算量大等问题,无法部署在资源有限的平台上。提出一种基于GhostNet残差结构的主干轻量级目标检测网络算法YOLO-GhostNet。该算法采用GhostNet结构将普通卷积分成两步,即使用较少的卷积核生成一部分特征图,对生成的特征图通过简单计算获得另一部分特征图,并将两组特征图进行拼接,以减少计算所需资源与参数量。通过GhostNet构建残差结构的YOLO-GhostNet算法在经过批量归一化层优化后模型尺寸只有2.18 MB,较YOLOv4-Tiny算法模型尺寸减小90%。YOLO-GhostNet算法在GPU加速环境下平均处理图片速度比YOLOv4-Tiny算法提高24%,CPU处理速度比YOLOv4-Tiny加快56%。实验结果表明,该算法在饮料测试集中的平均精确度均值达到79.43%,相比YOLOv4-Tiny算法,其在精度无损失情况下能够大幅降低网络计算量和参数量,同时加快推理速度,更适合部署于资源算力不足的嵌入式设备。

关键词: 深度学习, 卷积神经网络, YOLOv4-Tiny算法, 残差结构, 轻量化, 目标检测

CLC Number: