期刊文献+

基于改进YOLOv5的皮革瑕疵检测算法 被引量:4

Leather Defect Detection Algorithm Based on Improved YOLOv 5
下载PDF
导出
摘要 皮革瑕疵检测是工业皮革生产行业中质量控制的重要环节,针对工业皮革瑕疵在线检测中存在计算复杂度高、对小目标检测效果差、数据样本少等问题,提出一种基于注意力机制的轻量化皮革瑕疵检测算法GPC-YOLOv5。使用工业相机采集瑕疵图片并对其进行标注,制作瑕疵数据集,利用YOLOv5s模型进行目标检测。使用ImgAug数据增强技术扩充原始数据集的数量,并在训练过程中结合Mosaic数据增强方法解决数据样本少的问题。在YOLOv5的基础上,使用轻量化的GhostNet模块替换主干网络和颈部的卷积模块,有效减少模型的参数量和计算量,通过改进激活函数减少网络复杂度并加快计算速度,以满足实时性需求。在主干网络中加入新型注意力机制Polarized Self-Attention模块,增强网络对于小目标瑕疵的特征提取能力。实验结果表明,相比YOLOv5,GPC-YOLOv5算法的参数量和计算量分别减少25.4%和28.5%,总体mAP达到89.2%,能够有效提高检测精度并加快检测速度。 In the industrial leather production industry,leather defect detection is an important part of quality control.Aiming at the problems of high computational complexity,difficulties in small target defect detection,and few data samples,this study proposes an improved lightweight leather defect detection algorithm based on attention mechanism,GPC-YOLOv5.Defect pictures are collected using an industrial camera;whereby the images are annotated to create a defect dataset,and use the YOLOv5s model for object detection.The number of original datasets are expanded to solve the problem of few data samples using the Mosaic method combined with ImgAug data augmentation in the training process.The lightweight GhostNet module replaces the convolution module of the backbone network and neck in YOLOv5,thereby effectively reducing the number of parameters and computation load of the model.The network complexity reduces and calculations accelerate because of improving the activation function and real-time requirements are satisfied.The feature extraction ability of the network for small target defects is enhanced by adding a new attention mechanism,Polarized Self-Attention module,to the backbone network.The experimental results show that compared to YOLOv5,the GPC-YOLOv5 algorithm reduces the number of parameters and computation load by 25.4%and 28.5%,respectively,with an overall mean Average Precision(mAP)of 89.2%,effectively improving detection accuracy and accelerating detection speed.
作者 刘俊豪 王美林 谢兴 宋烨兴 许莉花 LIU Junhao;WANG Meilin;XIE Xing;SONG Yexing;XU Lihua(School of Information Engineering,Guangdong University of Technology,Guangzhou 510006,China;School of Mechanical and Electrical Engineering,Xichang University,Xichang 615000,Sichuan,China)
出处 《计算机工程》 CAS CSCD 北大核心 2023年第8期240-249,共10页 Computer Engineering
基金 国家自然科学基金(U1701266,62002069) 广东省科技计划(2019A050513011) 广州市科技计划(202002030386)。
关键词 皮革瑕疵 轻量型YOLOv5算法 注意力机制 深度学习 目标检测 leather defect lightweight YOLOv5 algorithm attention mechanism deep learning object detection
  • 相关文献

参考文献4

二级参考文献21

共引文献95

同被引文献29

引证文献4

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部