Fabric defect detection algorithm based on improved YOLOv5

被引:0
|
作者
Feng Li
Kang Xiao
Zhengpeng Hu
Guozheng Zhang
机构
[1] Donghua University,School of Computer Science and Technology
[2] National Innovation Center of Advanced Dyeing & Finishing Technology,undefined
来源
The Visual Computer | 2024年 / 40卷
关键词
Computer vision; Fabric defect detection; YOLOv5; SIoU loss; GHM loss;
D O I
暂无
中图分类号
学科分类号
摘要
Fabric defect detection is an important part of the textile industry, aiming at the problems of many types of fabric defects, small size defects and unbalanced samples, an improved YOLOv5 fabric defect detection algorithm, FD-YOLOv5, was proposed. First, the coordinate attention module is embedded in the YOLOv5 backbone network structure to replace the bottleneck structure in the original network model. While reducing the amount of parameters and calculation, it enhances the ability of the network to extract features and improves the model's ability to detect small target defects. Secondly, a smoother Mish activation function is used in the original model convolution structure for model training, which improves the nonlinear expression ability of the model; the SIoU loss function considering the direction of the anchor box is used to improve the convergence speed and detection accuracy of the model. Finally, combining the focal loss and GHM loss functions as the target confidence loss function to solve the problem of sample imbalance in the fabric defect dataset. The experimental results based on the public fabric defect dataset of Aliyun TianChi shows that the mAP@.5 and mAP@.5:.95 of the improved algorithm are 65.1% and 30.4%, respectively, which are 8.3% and 3.2% higher than the original model, respectively, and the parameter amount, calculation amount and weight of the model are reduced by 8.4%, 11.2% and 14.3%, respectively, compared with the original model. Even compared with the state-of-the-art YOLOv7 model, the mAP@.5 value of the proposed model is improved by 6.5%. Although the FPS value is lower than YOLOv7 model, it also achieves a detection speed of 79 frames per second, which can meet the real-time demand. The experimental results demonstrate the effectiveness of the method in this paper, which can provide a reference for the automatic detection method of fabric defects.
引用
收藏
页码:2309 / 2324
页数:15
相关论文
共 50 条
  • [1] Fabric defect detection algorithm based on improved YOLOv5
    Li, Feng
    Xiao, Kang
    Hu, Zhengpeng
    Zhang, Guozheng
    [J]. VISUAL COMPUTER, 2024, 40 (04): : 2309 - 2324
  • [2] Improved Fabric Defect Detection Algorithm of YOLOv5
    Ma, Ahui
    Zhu, Shuangwu
    Li, Choudan
    Ma, Xiaotong
    Wang, Shihao
    [J]. Computer Engineering and Applications, 2023, 59 (10) : 244 - 252
  • [3] Automatic Fabric Defect Detection Based on an Improved YOLOv5
    Jin, Rui
    Niu, Qiang
    [J]. MATHEMATICAL PROBLEMS IN ENGINEERING, 2021, 2021
  • [4] Insulator defect detection based on improved YOLOv5 algorithm
    Wang, Yongheng
    Li, Qin
    Liu, Yachong
    Wang, Chao
    [J]. 2023 IEEE 12TH DATA DRIVEN CONTROL AND LEARNING SYSTEMS CONFERENCE, DDCLS, 2023, : 770 - 775
  • [5] An Improved YOLOv5 Algorithm for Tyre Defect Detection
    Xie, Mujun
    Bian, Heyu
    Jiang, Changhong
    Zheng, Zhong
    Wang, Wei
    [J]. ELECTRONICS, 2024, 13 (11)
  • [6] Railway fastener defect detection based on improved YOLOv5 algorithm
    Su, Zhitong
    Han, Kai
    Song, Wei
    Ning, Keqing
    [J]. 2022 IEEE 6TH ADVANCED INFORMATION TECHNOLOGY, ELECTRONIC AND AUTOMATION CONTROL CONFERENCE (IAEAC), 2022, : 1923 - 1927
  • [7] A rail fastener defect detection algorithm based on improved YOLOv5
    Wang, Ling
    Zang, Qiuyu
    Zhang, Kehua
    Wu, Lintong
    [J]. PROCEEDINGS OF THE INSTITUTION OF MECHANICAL ENGINEERS PART F-JOURNAL OF RAIL AND RAPID TRANSIT, 2024, 238 (07) : 851 - 862
  • [8] An Improved YOLOv5 Algorithm for Wood Defect Detection Based on Attention
    Han, Siyu
    Jiang, Xiangtao
    Wu, Zhenyu
    [J]. IEEE ACCESS, 2023, 11 : 71800 - 71810
  • [9] Surface defect detection of steel based on improved YOLOv5 algorithm
    Jiang, Yiwen
    [J]. MATHEMATICAL BIOSCIENCES AND ENGINEERING, 2023, 20 (11) : 19858 - 19870
  • [10] Aluminum Surface Defect Detection Algorithm Based on Improved YOLOv5
    Liang, Jianan
    Kong, Ruiling
    Ma, Rong
    Zhang, Jinhua
    Bian, Xingrui
    [J]. ADVANCED THEORY AND SIMULATIONS, 2024, 7 (02)