Fabric Defect Detection with Fine-tuned YOLOv7
Authors:
- 5 May 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 117-122
Abstract
The defect on the fabric surface is one of the important factors affecting the quality of fabrics. Defect detection becomes the core means of quality control. Current deep-Iearning-based defect detection methods present a significant challenge in detection accuracy due to the diversity of fabric patterns and the scarcity of defect samples. Inspired by the transfer-learning paradigm, this article proposes a novel YOLOv7-based fine-tuning method for fabric defect detection. Specifically, we first employ a well-trained object detection network (i.e. YOLOv7) as a benchmark model to locate and classify defect-picking points. Considering the fabrics are mostly occluded and shaded, we therefore introduce a multi-channel attention mechanism and design the corresponding loss function. Finally, we manually clean a fabric defect dataset and use it to fine-tune the YOLOv7. Extensive experiments tested on public datasets show that our fine-tuned YOLOv7 improves mAP by 3.5%, precision by 6.3%, and recall rate by 5.7% compared to the baseline model YOLOv7. Especially, our fine-tuning method leads to a 6 MB reduction in model size. Further ablation studies demonstrate the effectiveness and contribution of our designs toward the whole network model.Keywords
This publication has 27 references indexed in Scilit:
- Fabric Defect Detection and Localization2024
- An efficient mixed attention moduleIET Computer Vision, 2023
- ICIoU: Improved Loss Based on Complete Intersection Over Union for Bounding Box RegressionIEEE Access, 2021
- Stimulus-driven and concept-driven analysis for image caption generationNeurocomputing, 2020
- DC-SPP-YOLO: Dense connection and spatial pyramid pooling based YOLO for object detectionInformation Sciences, 2020
- Computer vision for automatic detection and classification of fabric defect employing deep learning algorithmInternational Journal of Clothing Science and Technology, 2019
- Recurrent Squeeze-and-Excitation Context Aggregation Net for Single Image Deraining2018
- Early Paleozoic tectonic reactivation of the Shaoxing-Jiangshan fault zone: Structural and geochronological constraints from the Chencai domain, South ChinaJournal of Structural Geology, 2018
- Optimizing Intersection-Over-Union in Deep Neural Networks for Image Segmentation2016
- SSD: Single Shot MultiBox Detector2016