系统仿真学报 ›› 2022, Vol. 34 ›› Issue (12): 2575-2583.doi: 10.16182/j.issn1004731x.joss.22-FZ0925

• 仿真建模理论与方法 • 上一篇    下一篇

基于模型压缩的安瓿瓶外观检测仿真研究

朱志豪(), 王艳(), 纪志成   

  1. 江南大学 教育部物联网技术应用工程中心,江苏 无锡 214122
  • 收稿日期:2022-08-07 修回日期:2022-09-09 出版日期:2022-12-31 发布日期:2022-12-21
  • 通讯作者: 王艳 E-mail:Zhuzhihaozzhyx@163.com;wangyan@jiangnan.edu.cn
  • 作者简介:朱志豪(1997-),男,硕士生,研究方向为深度学习目标检测。E-mail:Zhuzhihaozzhyx@163.com
  • 基金资助:
    国家重点研发计划(2018YFB1701903);国家自然科学基金(61973138)

Simulation Research on Appearance Detection of Ampoules Based on Lightweight Network and Model Compression

Zhihao Zhu(), Yan Wang(), Zhicheng Ji   

  1. Engineering Research Center of Internet of Things Technology Applications Ministry of Education, Jiangnan University, Wuxi 214122, China
  • Received:2022-08-07 Revised:2022-09-09 Online:2022-12-31 Published:2022-12-21
  • Contact: Yan Wang E-mail:Zhuzhihaozzhyx@163.com;wangyan@jiangnan.edu.cn

摘要:

针对目标检测网络模型规模大、参数量冗余,导致安瓿瓶外观缺陷检测模型难以部署到边缘设备的问题,提出一种基于轻量化网络和模型压缩的Faster R-CNN安瓿瓶外观缺陷检测算法。以MobileNet-V2作为主干网络,利用模型剪枝策略裁剪卷积网络中冗余的通道;通过饱和截取映射将浮点型参数量化为整型;利用知识蒸馏恢复压缩后网络的检测精度。在自主构建的安瓿瓶外观缺陷数据集进行测试,模型体积减少了69.6%,平均精度为89.3%。仿真结果表明:压缩后的目标检测模型满足实际应用中安瓿瓶外观检测要求。

关键词: 目标检测, 模型剪枝, 参数量化, 知识蒸馏, Faster R-CNN

Abstract:

Aiming at the large scale and redundant parameters of target detection network model, which result in the difficult to deploy the ampoule bottle appearance defect detection model to edge devices, an LC-Faster R-CNN defect detection algorithm based on lightweight network and model compression is proposed. MobileNet-V2 is used as the backbone, and the redundant channels in the convolutional network are trimmed by model pruning strategy. The floating-point parameters are quantized into integers through saturation truncation mapping. Knowledge distillation is used to restore the accuracy of the compressed network. Tested on the self-built ampoule appearance defect dataset, the model volume is reduced by 69.6% and the average accuracy is 89.3%. The simulation results show that the compressed target detection model can meet the requirements of the appearance detection of ampoules in practical applications.

Key words: object detection, model pruning, parameter quantization, knowledge distillation, Faster R-CNN

中图分类号: