• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science ›› 2023, Vol. 45 ›› Issue (07): 1226-1235.

• Graphics and Images • Previous Articles     Next Articles

Metal surface defect detection based on improved YOLOv3

LIU Hao-han,SUN Cheng,HE Huai-qing,HUI Kang-hua   

  1. (College of Computer Science and Technology,Civil Aviation University of China,Tianjin 300300,China)
  • Received:2021-10-18 Revised:2022-01-08 Accepted:2023-07-25 Online:2023-07-25 Published:2023-07-11

Abstract: In order to improve the efficiency of detecting surface defects on industrial parts, a target detection method based on improved YOLOv3 is proposed. The latest attention mechanism SA (Shuffle Attention) with channel shuffling is introduced and combined with the residual unit of the Darknet-53 backbone structure of the YOLOv3 model to form the SA residual block structure, which fully utilizes the feature channel information to obtain the YOLOv3-SA model. For different datasets, the input images are scaled at different scales, and the K-means method is used to cluster the real bounding boxes to improve detection efficiency. The experimental results show that the recall rate of the YOLOv3-SA model reaches 95.4%, and the mAP can be increased by up to 7% compared to YOLOv3.

Key words: deep learning, target detection, YOLO, Shuffle;shuffle attention, attention mechanism, K-means