周鑫,郝万君,卞长庚,等.基于gnConv和GAM的YOLOv5钢管焊接缺陷检测方法[J]. 微电子学与计算机,2023,40(9):29-37. doi: 10.19304/J.ISSN1000-7180.2022.0778
引用本文: 周鑫,郝万君,卞长庚,等.基于gnConv和GAM的YOLOv5钢管焊接缺陷检测方法[J]. 微电子学与计算机,2023,40(9):29-37. doi: 10.19304/J.ISSN1000-7180.2022.0778
ZHOU X,HAO W J,BIAN C G,et al. Detection Method for Welding Defects of YOLOv5 Steel Pipe Based on gnConv and GAM[J]. Microelectronics & Computer,2023,40(9):29-37. doi: 10.19304/J.ISSN1000-7180.2022.0778
Citation: ZHOU X,HAO W J,BIAN C G,et al. Detection Method for Welding Defects of YOLOv5 Steel Pipe Based on gnConv and GAM[J]. Microelectronics & Computer,2023,40(9):29-37. doi: 10.19304/J.ISSN1000-7180.2022.0778

基于gnConv和GAM的YOLOv5钢管焊接缺陷检测方法

Detection Method for Welding Defects of YOLOv5 Steel Pipe Based on gnConv and GAM

  • 摘要: 针对基础yolov5算法检测钢管焊缝缺陷因缺陷目标小、背景复杂造成检测精度不够、特征提取不充分、速度慢的问题,提出了一种改进yolov5检测算法. 首先,采用递归门控卷积gnConv替换网络中普通的卷积层,增强了模型空间交互能力,实现对特征的高效提取,间接提高了检测速度;其次,使用ASPP(Atrous Spatial Pyramid Pooling)模块替换基础算法中使用的SPP模块,在扩大了感受野范围的同时提高了检测速度;最后,在网络的预测端添加全局注意力机制GAM(Global Attention Mechanism)进一步加强特征提取,提高检测的精度. 实验结果表明,改进的算法mAP达到了92.7%,比原算法提升了2.1个百分点,速度为50.8 f/s,满足钢管焊接缺陷检测的精度和实时性要求.

     

    Abstract: Aiming at the problems of low detection accuracy and slow detection speed caused by small target and complex background of steel pipe welding defects, an improved YOLOv5 detection algorithm is proposed. First, recursive gated convolution gnConv is used to replace the common convolution layer in the network, which enhances the interaction ability of model space, realizes efficient feature extraction, and indirectly improves the detection speed. Secondly, the use of ASPP (Atmosphere Spatial Pyramid Pooling) module not only expands the receptive field, but also improves the detection speed. Finally, GAM (Global Attention Mechanism) is added to the prediction end of the network to further enhance feature extraction and improve detection accuracy. The experimental results show that the improved al gorithm mAP achieves 92.7%, 2.1 percentage points higher than the original algorithm, and the speed is 50.8 f/s, meeting the requirements of precision and real-time of steel pipe welding defect detection.

     

/

返回文章
返回