Steel surface defect detection method based on improved YOLOv5
The invention discloses a steel surface defect detection method based on improved YOLOv5, and the method comprises the steps: collecting a steel surface defect data set, and carrying out the preprocessing of the data set; secondly, an original YOLOv5 model is improved, and an ECA attention mechanism...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a steel surface defect detection method based on improved YOLOv5, and the method comprises the steps: collecting a steel surface defect data set, and carrying out the preprocessing of the data set; secondly, an original YOLOv5 model is improved, and an ECA attention mechanism is introduced into a backbone network and a neck network of an original YOLOv5 network; feature fusion layers in all C3 modules in the original YOLOv5 model are replaced with an SPP layer and a cross-stage residual connection layer in a C2F module, and meanwhile, the number of original output channels is set as the number of output channels of the C2F module, so that the small target detection precision of the model is improved; adjusting and optimizing a spatial pyramid pooling structure; thirdly, training parameters are set, and the improved YOLOv5 model is trained; and finally, inputting to-be-detected steel surface defect data into the trained model, and outputting position and category information of the to-b |
---|