An Efficient and Intelligent Detection Method for Fabric Defects based on Improved YOLOv5
Open Access
Abstract
Limited by computing resources of embedded devices, there are problems in the field of fabric defect detection, including small defect size, extremely unbalanced aspect ratio of defect size, and slow detection speed. To address these problems, a sliding window multihead self-attention mechanism is proposed for the detection of small targets, and the Swin Transformer module is introduced to replace the main module in the original YOLOv5 algorithm. First, to reduce the distance between several scales, the weighted bidirectional feature network is employed on embedded devices. In addition, it is helpful to improve the perception of small-target faults by incorporating a detection layer to achieve four-scale detection. At last, to improve the learning of positive sample instances and lower the missed detection rate, the generalized focal loss function is finally implemented on YOLOv5. Experimental results show that the accuracy of the improved algorithm on the fabric dataset reaches 85.6%, and the mAP is increased by 4.2% to 76.5%, which meets the requirements for real-time detection on embedded devices.Keywords
Funding Information
- the Natural Science Foundation of China (51207133)
- the Natural Science Foundation of Fujian Province, China (2020J01272)
This publication has 35 references indexed in Scilit:
- Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization2017
- Feature Pyramid Networks for Object Detection2017
- Xception: Deep Learning with Depthwise Separable Convolutions2017
- FFT used for fabric defect detection based on CUDA2017
- You Only Look Once: Unified, Real-Time Object Detection2016
- Deformable Patterned Fabric Defect Detection With Fisher Criterion-Based Deep LearningIEEE Transactions on Automation Science and Engineering, 2016
- Spatial Pyramid Pooling in Deep Convolutional Networks for Visual RecognitionIEEE Transactions on Pattern Analysis and Machine Intelligence, 2015
- A Learning-Based Approach for Automatic Defect Detection in Textile ImagesIFAC-PapersOnLine, 2015
- Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation2014
- Fabric defects detection using adaptive waveletsInternational Journal of Clothing Science and Technology, 2014