Fabric surface flaw detection method fused with multi-scale feature map

By improving the Yolov8 network and introducing ECA-C2f, GA-SPPF and FDM modules, the problem of false detection and missed detection in fabric surface defect detection is solved, and the detection accuracy and robustness of defects with extreme aspect ratios and similar colors are improved. It improves the overall performance of fabric surface defect detection.

CN118864418AActive Publication Date: 2024-10-29HUAIYIN INSTITUTE OF TECHNOLOGY

Patent Information

Application Number
CN202411000895.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-29
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

The existing technology has the problem of false detection or missed detection in the detection of fabric surface defects. In particular, the detection performance of elongated defects with extreme aspect ratios and stain defects similar to the background color is insufficient, and the robustness is insufficient, making it difficult to cope with light. Varying and intricately textured fabric surfaces.

Method used

By improving the Yolov8 network, introducing the ECA-C2f module, GA-SPPF module and FDM module, we build the EGA-FDM-Yolov8 model, enhance the feature extraction and pooling structure, and capture multi-scale features to improve the accuracy and robustness of defect detection. .

Benefits of technology

It improves the accuracy of defects with extreme aspect ratios and fabric colors, enhances the detection accuracy and robust performance of the model, reduces hardware dependence, and significantly improves the accuracy and efficiency of fabric surface defect detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864418A_ABST
    Figure CN118864418A_ABST
Patent Text Reader

Abstract

A fabric surface flaw detection method fused with a multi-scale feature map comprises the following operation steps that a Yolov8 target detection algorithm is improved, and an improved ECA-C2f module is used for replacing C2f modules preset on the second layer, the fourth layer, the sixth layer and the eighth layer in an original backbone network; using an improved GA-SPPF module to replace a spatial pyramid pooling structure in an original backbone network; in the neck Neck, a user-defined focus dispersion module (FDM) is used for aggregating feature maps of different scales, and in the neck Neck, the feature maps of different scales are obtained; and the improved target detection algorithm is defined as EGA-FDM-Yolov8. Training and determining model parameters by utilizing a public data set, and finally obtaining the intelligent fabric defect detection device based on the improved Yolov8 algorithm. According to the method, on the premise that the parameter quantity is not increased, the accuracy of the Yolov8 algorithm is improved while the detection rate is ensured; in fabric flaw detection, the average flaw recognition accuracy is improved by 15%, and slender flaws with an extreme aspect ratio and stain flaws extremely similar to background colors can be detected more accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of visual target detection, and mainly to a fabric surface defect detection method integrating multi-scale feature maps. Background Art

[0002] With the rapid development of science and technology, in the era of artificial intelligence and big data, deep learning has been further developed in the field of machine vision and has been widely used in industrial defect detection, autonomous driving, security technology and other fields. Despite this, some factories still use manual methods to detect fabric surface defects. Since manual detection is easily affected by fatigue and distraction, especially after long hours of work, it leads to a high rate of missed detection. In order to meet these challenges, the present invention proposes an efficient fabric surface defect detection method by improving the Yolov8 algorithm to make up for the shortcomings of the existing technology.

[0003] In the industrial production process of fabrics, various fabric defects will appear due to machine problems, including a large number of slender defects with extreme aspect ratios and stain defects that are extremely similar to the background color. Yolov8's performance has declined when dealing with the above defects. In addition, Yolov8 is not robust enough to fabric surfaces with changing lighting and complex textures, resulting in false detection or missed detection. This makes fabric surface defect detection a very challenging task. Therefore, there is still huge room for improvement in fabric surface defect detection. Summary of the invention

[0004] In response to the above-mentioned technical problem of difficulty in identifying fabric surface defects, the present technical solution provides a fabric surface defect detection method that integrates multi-scale feature maps, adopts the Yolov8 network as the baseline network, improves the Yolov8 network to obtain EGA-FDM-Yolov8, and proposes an effective fabric surface defect target detection model, which can better distinguish stains from cloth colors, and more accurately detect slender defects with extreme aspect ratios; while ensuring that the detection speed is not reduced, improving the detection accuracy can effectively solve the above-mentioned problems.

[0005] The present invention is achieved through the following technical solutions:

[0006] A fabric surface defect detection method integrating multi-scale feature maps comprises the following steps:

[0007] Step 1: Optimize the Yolov8 target detection algorithm, build and improve the Yolov8 model, and obtain the fabric surface defect detection model; the specific operation steps include:

[0008] Step 1.1: Integrate the ECA attention mechanism into the C2f modules of the 2nd, 4th, 6th, and 8th layers of the Yolov8 backbone network to generate the ECA-C2f module; the specific operations are as follows:

[0009] The ECA-C2f module first passes the input tensor x through the first convolutional layer Conv1 and splits it into two tensors according to the channel dimension. It then performs n ECA cycles on the second tensor after the split, using one module in the module list each time. It then concatenates all the tensors after the ECA cycle along the channel dimension. Finally, it performs the final feature mapping through the second convolutional layer Conv2.

[0010] Step 1.2: The GA-SPPF module is used in the 9th layer of the Yolov8 backbone network to enhance the traditional spatial pyramid pooling structure SPPF; the specific operations are as follows:

[0011] The GA-SPPF module first passes the input tensor x through a GhostConv, then obtains y1 and y2 through two parallel MaxPools, and then performs AvgPool on the parallel results to obtain z; finally, x, y1, y2, and z are concatenated along the channel dimension, and the concatenated results are passed through the second convolutional layer GhostConv for feature mapping, and finally the output result is returned;

[0012] Step 1.3: Add a Focus on the dispersion module to the original neck network. FDM is used to obtain multi-scale feature maps. The specific content is:

[0013] Using GhostConv convolution, the feature maps generated by the third, fourth, and fifth convolutions of the backbone network are aggregated and connected together, so that each scale feature has detailed context information, which is beneficial for defect detection. Then, parallel convolution is used to add the resulting features to capture rich cross-scale information.

[0014] Step 2: Obtain a public sample dataset, convert the json file into Yolo training format, and divide the dataset into training set, validation set, and test set according to the proportion;

[0015] Step 3: Get the optimal model parameters through debugging, and use the ECA-C2f module, GA-SPPF module, and FDM module to improve Yolov8, which is defined as EGA-FDM-Yolov8; the specific content is:

[0016] The backbone network of the fabric surface defect detection model is the first convolution module, the second convolution module, the first ECA-C2f module, the third convolution module, the second ECA-C2f module, the fourth convolution module, the third ECA-C2f module, the fifth convolution module, the fourth ECA-C2f module, and the GA-SPPF module.

[0017] The training set obtained in step 2 is input into the fabric surface defect detection model obtained by the improved EGA-FDM-Yolov8 device for training. On the validation set, the model with the highest average accuracy is saved and its weight file is named best.pt.

[0018] Step 4: Use the trained fabric surface defect target detection model to detect the image to be detected, and ultimately enhance the detection accuracy, generalization ability and robust performance of the model.

[0019] Furthermore, the training set, validation set, and test set described in step 2 are divided in a ratio of 8:1:1.

[0020] Furthermore, the disclosed sample data set adopts the open source Tianchi competition cloth defect detection data set, with a total of 7312 pictures; it includes 21 categories of fabric defect data sets, including the following types: no defects, holes, water stains, oil stains, stains, three wires, knots, flower springboards, hundred feet, hair particles, coarse warp, loose warp, broken warp, hanging warp, coarse fiber, weft shrinkage, starch spots, warp knots, star jumps, flower jumps, broken spandex, sparse and dense spots, wavy spots, color difference spots, wear marks, rolling marks, dead wrinkles, and bad weft yarn.

[0021] Furthermore, the image size of the training set input in step 3 is set to 640*640, the batch size is 8, the number of training iterations is 300, the initial learning rate is 0.01, the learning rate momentum is 0.937, the weight decay coefficient is 0.0005, and the optimizer uses SGD. After the training is completed, the model will save the best weight file best.pt with the best training results.

[0022] Furthermore, when the image to be detected is detected in step 4, the best.pt obtained in step 3 is used as a weight file for detecting fabric surface defects, and the fabric image is detected.

[0023] Beneficial Effects

[0024] The fabric surface defect detection method integrating multi-scale feature maps proposed in the present invention has the following beneficial effects compared with the prior art:

[0025] (1) The present invention constructs a fabric defect detection device by improving the Yolov8 model, thereby improving the accuracy of defects with extreme aspect ratios and defects close to the color of the fabric. When improving the Yolov8 model, the C2f of the 2nd, 4th, 6th, and 8th layers in the backbone network are integrated with the ECA attention mechanism to form a new ECA-C2f module. By introducing the ECA attention mechanism in the backbone feature extraction network, the weight of the feature channel can be adaptively adjusted according to its importance, thereby enhancing the network's perception of defects.

[0026] (2) When the present invention improves the Yolov8 model, the 9th layer adopts the GA-SPPF module to enhance the traditional spatial pyramid pooling structure SPPF. The introduction of average pooling in SPPF can effectively reduce the spatial size of the feature map, thereby improving the computational efficiency. It reduces the dependence on hardware equipment and is better applied in the fabric production environment.

[0027] (3) When the present invention improves the Yolov8 model, the self-developed FDM module is used at the neck of the network to aggregate the feature maps generated by the backbone network. The self-developed FDM module can capture features of different scales by using convolution kernels of different sizes (5, 7, 9, 11), which helps the network to focus on details and contextual information while accepting three input feature maps of different scales (x1, x2, x3), and performs size matching and channel number adjustment through upsampling and convolution, so that the module can be flexibly applied to different input features. By improving the Yolov8 structure, the performance of the model is improved, and the accuracy of the model in detecting fabric surface defects is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is the overall flow chart of the present invention.

[0029] Figure 2 This is the EGA-FDM-Yolov8 network structure diagram in the present invention.

[0030] Figure 3 This is the network structure diagram of the ECA-C2f module in the present invention.

[0031] Figure 4 This is the network structure diagram of the GA-SPPF module in the present invention.

[0032] Figure 5 This is a network structure diagram of the FDM module in the present invention. DETAILED DESCRIPTION

[0033] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. The described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Under the premise of not departing from the design concept of the present invention, various modifications and improvements made by ordinary persons in the art to the technical solutions of the present invention should all fall within the protection scope of the present invention.

[0034] Embodiment 1:

[0035] like Figure 1 As shown, a method for detecting fabric surface defects by integrating multi-scale feature maps includes the following steps:

[0036] Step 1: Optimize the Yolov8 target detection algorithm, build and improve the Yolov8 model, and obtain the fabric surface defect detection model; the improved network structure is as follows Figure 2 The specific operation methods of building and improving the Yolov8 model are as follows:

[0037] Step 1.1: Integrate the ECA attention mechanism into the C2f modules of the 2nd, 4th, 6th, and 8th layers of the Yolov8 backbone network to generate the ECA-C2f module.

[0038] The network structure of the ECA-C2f module is shown in the figure below. Figure 3 This module introduces the ECA attention mechanism, integrates ECA into Bottleneck to form ECA-Bottleneck, and builds the ECA-C2f module on this basis, which not only enhances the model's sensitivity to input features, but also improves the detection accuracy of fabric surface defects.

[0039] The ECA (Efficient Channel Attention) attention mechanism is a feature enhancement technology for convolutional neural networks. It improves the network's representation ability by adaptively emphasizing important channel features and suppressing unimportant features. At the same time, ECA is a lightweight attention mechanism, which is particularly suitable for environments with limited computing resources and improves model performance.

[0040] The workflow is as follows:

[0041] Apply global average pooling to each channel of the input feature map to obtain a low-dimensional feature vector containing global statistical information; pass this feature vector through a 1D convolution layer to generate an attention weight map. Perform nonlinear transformation on the attention weight map through the activation function and perform scaling operations; multiply the original feature map with the attention weight processed by the ECA module to enhance important channel features; finally, output the feature map after attention enhancement for subsequent network layers or tasks. The module formula is as follows:

[0042]

[0043] a = σ(conv(z));

[0044] F' c (i,j)=F c (i,j)×a c ;

[0045] Among them, Z c is the global feature value of the cth channel after global average pooling; H and W are the height and width of the feature map respectively; i is the row index of the spatial position of the feature map; j is the column index of the spatial position of the feature map; F c (i, j) is the pixel value of the cth channel at position (i, j) in the feature map F, a is the attention weight generated by 1D convolution; σ represents the activation function, conv is a 1D convolution operation, and its convolution kernel size is determined by the parameter k; z is the feature vector after convolution operation and activation function processing; F' c (i,j) is the enhanced feature map, a c is the attention weight corresponding to channel c.

[0046] The constructed ECA-C2f module first passes the input tensor x through the first convolutional layer Conv1 and splits it into two tensors according to the channel dimension. It then performs n ECA cycles on the second tensor after the split, using one module in the module list each time. It then concatenates all the tensors after the ECA cycle along the channel dimension. Finally, it performs the final feature mapping through the second convolutional layer Conv2.

[0047] Step 1.2: The GA-SPPF module is used in the 9th layer of the Yolov8 backbone network to enhance the traditional spatial pyramid pooling structure SPPF.

[0048] A hybrid pooling strategy is adopted to integrate average pooling and maximum pooling techniques, enhance the SPPF module in the original network, and form a new GA-SPPF module, such as Figure 4 As shown in the figure, the network can more accurately identify key information when dealing with a variety of fabric defects, thereby significantly improving the defect detection performance while maintaining efficient calculation.

[0049] The GA-SPPF module introduces GhostConv to reduce the amount of computation and parameters by generating "ghost features" while maintaining model performance. Traditional convolution operations directly generate all feature maps, while GhostConv generates feature maps in two steps: first, a small number of main feature maps are generated through regular convolution; then, additional "ghost features" are generated from these main feature maps through deep convolution to approximate the complete feature map.

[0050] The GA-SPPF module first passes the input tensor x through a GhostConv (the first convolutional layer cv1), performs maximum pooling on x through two parallel MaxPools to obtain y1 and y2, and then performs AvgPool on the parallel results to obtain z; finally, x, y1, y2 and z are spliced ​​together along the channel dimension, and the spliced ​​results are passed through the second convolutional layer GhostConv (the second convolutional layer cv2) for feature mapping, and finally the output result is returned; the mathematical expression is as follows:

[0051] y1=Max(x);

[0052] y2=Max(x);

[0053] Y=cat(GhostConv(x),Avg(y1+y2));

[0054] In the above formula, Y represents the final output result, GhostConv represents the second convolutional layer cv2, cat represents the concatenation operation in the channel dimension, Max and Avg represent the maximum pooling and average pooling operations respectively, y1 is the result of the first maximum pooling, and y2 is the result of the second maximum pooling.

[0055] The improved backbone network is the first convolution module, the second convolution module, the first ECA-C2f module, the third convolution module, the second ECA-C2f module, the fourth convolution module, the third ECA-C2f module, the fifth convolution module, the fourth ECA-C2f module, and the GA-SPPF module.

[0056] Step 1.3: Add a Focus on the dispersion module (FDM) to the original neck network to obtain multi-scale feature maps; the FDM module network structure is shown in the figure Figure 5 shown.

[0057] The focused dispersion module first uses three sets of GhostConv convolution and upsampling modules to receive the three feature maps P3, P4, and P5 generated by the 4th, 6th, and 9th layers of the backbone network, connects the three multi-scale feature maps together, and uses a set of parallel convolution modules to capture rich cross-multi-scale information. Secondly, the obtained multi-scale information is dispersed to each detection scale through a dispersion mechanism. This will be beneficial for the detection of small fabric defects.

[0058] The specific workflow is as follows:

[0059] First, define a module containing three groups of GhostConv and upsampling modules, and set the scale_factor of the upsampling layer to 2; secondly, define a module list containing multiple depth-separable convolutional layers, and the number of input and output channels of each convolutional layer is hidc*3. Separate the input x into three feature maps of different scales (x1, x2, x3), process the feature maps of the three scales through GhostConv and upsampling modules, and merge the processed three feature maps along the channel dimension (dim=1) into a new feature map x. Pass the merged feature map x through the parallel convolution layers in turn, and calculate the sum of these results to obtain the feature. Add each feature feature to get the final output. The module formula is as follows:

[0060] X=cat([x1, x2, x3], dim=1);

[0061]

[0062] R = X + F;

[0063] Among them, x1, x2, x3 are the results of upsampling and convolution of feature maps of different dimensions, X is the result of concatenating the processed feature maps along the channel dimension; each convolution layer is applied to x, and the sum of these results is calculated to obtain an aggregated feature map F; R is the result of adding the feature map to the original concatenated feature map X.

[0064] Step 2: Get a public sample dataset, convert the json file into Yolo training format, and divide it into training set and validation set. The specific operation is as follows:

[0065] The data set required for the experiment was constructed using public data sets, and the Tianchi cloth defect detection data set of the 2019 Guangdong Industrial Intelligent Manufacturing Innovation Competition was obtained. 7312 images of the data set were selected, including 21 categories; the categories of cloth defects include the following types: no defects, holes, water stains, oil stains, stains, three-wire, knots, flower springboards, hundred feet, hair particles, coarse warp, loose warp, broken warp, hanging warp, coarse fiber, weft shrinkage, starch spots, warp knots, star jumps, flower jumps, broken spandex, sparse and dense spots, wavy spots, color difference spots, wear marks, rolling marks, dead wrinkles, and bad weft yarn.

[0066] Convert its json format file into a txt file for Yolo training, and divide the dataset into training set, validation set, and test set in a ratio of 8:1:1.

[0067] Step 3: Input the training set obtained in step 1 into the fabric surface defect detection model obtained by optimizing the Yolov8 model for training to obtain the optimal fabric surface defect detection model.

[0068] The input image size is set to 640*640, the batch size is 8, the number of training iterations is 300, the initial learning rate is 0.01, the learning rate momentum is 0.937, the weight decay coefficient is 0.0005, and the optimizer uses SGD. After training, the model will save the best weight file best.pt with the best training results.

[0069] In order to detect the performance of the improved model, the indicators for evaluating superiority include: mAP (average AP of each category), Precision (precision), Recall (recall rate / recall rate) as the evaluation indicators of the model algorithm, with recall rate as the x-axis and precision rate as the y-axis, a PR curve is drawn, and the area under the PR curve is defined as AP. The calculation formulas for each evaluation indicator are as follows:

[0070]

[0071]

[0072] Among them, TP represents the number of samples correctly predicted as positive samples, FN is the number of samples that the model failed to correctly identify in the actual positive samples, n represents the total number of categories, and P(R)D(R) represents the average precision of the Rth category.

[0073] Step 4: Use the trained fabric surface defect target detection model to detect the image to be detected, and finally enhance the detection accuracy, generalization ability and robust performance of the model. When detecting the image to be detected, use the best.pt obtained in step 3 as the weight file for detecting fabric surface defects, and detect the fabric image.

[0074] In order to verify the feasibility and advantages of this solution, the inventor conducted a comparative experiment on the improved Yolov8 model of this solution and the original Yolov8 model. The comparison of the detection results of this embodiment and Yolov8 is shown in Table 1:

[0075] Table 1 Comparative experimental results

[0076] Network Model mAP@0.5% mAP@0.5: 0.95% Precision Yolov8 0.458 0.238 0.858 Our 0.608 0.349 0.866

[0077] From the data in the above table, it can be concluded that the results of the network optimization of the present invention on Yolov8 are significantly improved. In terms of mAP@0.5%, the model of the present invention is 15% higher than the original model. In terms of mAP@0.5:0.95%, the model of the present invention is 11.1% higher than the original model. In terms of Precision, the present invention is 0.8% higher than the original model.

[0078] The comparison of mAP@0.5% detection results of Yolov8 network before and after improvement for 20 defect categories is shown in Table 2:

[0079] Table 2 Comparison of various categories

[0080]

[0081]

[0082] From the above table data, it can be concluded that there are different degrees of improvement in the twenty categories of fabric defects, with an improvement of 20.1% for stain defects similar to the color of the fabric and 20.7 for defects with extreme aspect ratios, such as poor weft yarn. The present invention effectively improves the performance of the fabric surface defect detection model.

[0083] Table 3 Model parameters. The parameters of the improved model are reduced compared with the original model:

[0084] Network Model Parameters Yolov8 3014943 Our 2950929

[0085] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent transformation or modification made according to the spirit of the present invention should be included in the present invention.

Claims

1. A fabric surface defect detection method integrating multi-scale feature maps, characterized in that: The steps are as follows: Step 1: Optimize the Yolov8 target detection algorithm, build and improve the Yolov8 model, and obtain the fabric surface defect detection model; the specific operation steps include: Step 1.1: Integrate the ECA attention mechanism into the C2f modules of the 2nd, 4th, 6th, and 8th layers of the Yolov8 backbone network to generate the ECA-C2f module; the specific operations are as follows: The ECA-C2f module first passes the input tensor x through the first convolutional layer Conv1 and splits it into two tensors according to the channel dimension. It then performs n ECA cycles on the second tensor after the split, using one module in the module list each time. It then concatenates all the tensors after the ECA cycle along the channel dimension. Finally, it performs the final feature mapping through the second convolutional layer Conv2. Step 1.2: The GA-SPPF module is used in the 9th layer of the Yolov8 backbone network to enhance the traditional spatial pyramid pooling structure SPPF; the specific operations are as follows: The GA-SPPF module first passes the input tensor x through a GhostConv, then obtains y1 and y2 through two parallel MaxPools, and then performs AvgPool on the parallel results to obtain z; finally, x, y1, y2, and z are concatenated along the channel dimension, and the concatenated results are passed through the second convolutional layer GhostConv for feature mapping, and finally the output result is returned; Step 1.3: Add a Focus on the dispersion module to the original neck network. FDM is used to obtain multi-scale feature maps. The specific content is: Using GhostConv convolution, the feature maps generated by the third, fourth, and fifth convolutions of the backbone network are aggregated and connected together, so that each scale feature has detailed context information, which is beneficial for defect detection. Then, parallel convolution is used to add the resulting features to capture rich cross-scale information. Step 2: Obtain a public sample dataset, convert the json file into Yolo training format, and divide the dataset into training set, validation set, and test set according to the proportion; Step 3: Get the optimal model parameters through debugging, and use the ECA-C2f module, GA-SPPF module, and FDM module to improve Yolov8, which is defined as EGA-FDM-Yolov8; the specific content is: The backbone network of the fabric surface defect detection model is the first convolution module, the second convolution module, the first ECA-C2f module, the third convolution module, the second ECA-C2f module, the fourth convolution module, the third ECA-C2f module, the fifth convolution module, the fourth ECA-C2f module, and the GA-SPPF module. The training set obtained in step 2 is input into the fabric surface defect detection model obtained by the improved EGA-FDM-Yolov8 device for training. On the validation set, the model with the highest average accuracy is saved and its weight file is named best.pt. Step 4: Use the trained fabric surface defect target detection model to detect the image to be detected, and ultimately enhance the detection accuracy, generalization ability and robust performance of the model.

2. The method for detecting fabric surface defects by integrating multi-scale feature maps according to claim 1, characterized in that: The training set, validation set, and test set described in step 2 are divided in a ratio of 8:1:

1.

3. The method for detecting fabric surface defects by integrating multi-scale feature maps according to claim 1 or 2, characterized in that: The disclosed sample data set adopts the open source Tianchi competition cloth defect detection data set, which has a total of 7312 pictures; it contains 21 categories of fabric defect data sets, including the following types: no defects, holes, water stains, oil stains, stains, three-wire, knots, flower springboards, hundred feet, hair particles, coarse warp, loose warp, broken warp, hanging warp, coarse fiber, weft shrinkage, starch spots, warp knots, star jumps, flower jumps, broken spandex, sparse and dense spots, wavy spots, color difference spots, wear marks, rolling marks, dead wrinkles, and bad weft yarn.

4. The method for detecting fabric surface defects by integrating multi-scale feature maps according to claim 1, characterized in that: In step 3, the image size of the training set input is set to 640*640, the batch size is 8, the number of training iterations is 300, the initial learning rate is 0.01, the learning rate momentum is 0.937, the weight decay coefficient is 0.0005, and the optimizer uses SGD. After training, the model will save the best weight file best.pt with the best training results.

5. The method for detecting fabric surface defects by integrating multi-scale feature maps according to claim 1, characterized in that: When the image to be detected is detected in step 4, the best.pt obtained in step 3 is used as a weight file for detecting fabric surface defects, and the fabric image is detected.

Citation Information

Patent Citations

  • Fabric defect detection method based on improved OfficientDet model

    CN115601610A

  • Target detection algorithm based on improved YOLOv8s

    CN117456167A

  • Fancy cloth defect detection method and system and storage medium

    CN117974673A

Cited By

  • Cloth defect detection method and system based on multi-scale feature fusion and diffusion pyramid network

    CN119515861A

  • Feature extraction method and detection system based on directional space and multi-scale feature extraction network

    CN119579911A

  • Steel surface defect detection method and detection system

    CN121190448A