The invention belongs to the field of
computer vision, and mainly relates to a target detection
algorithm, in particular to a lightweight target detection method based on no anchor frame. A classical single-stage target detection model YOLOv4-Tiny is used as a basic model,
convolution optimization is carried out in a
trunk feature extraction network, the parameter quantity of the
trunk feature extraction network is effectively reduced, an attention mechanism which firstly compresses features and then expands the features is put forward and embedded into a residual module structure of the
trunk feature extraction network, and the target detection accuracy is improved. More emphasis is put on extraction of features which have more characterization force on a detected correct target during feature extraction; the improved model does not adopt an anchor-frame-based
positive sample selection method, but provides an anchor-frame-free
positive sample selection method to replace an original method, and the method can effectively reduce the amount of operation parameters and enhance
positive sample extraction. And loading the trained
network model, inputting the
test set, and obtaining various evaluation indexes including average precision, precision,
recall rate, F1 value and the like. And carrying out visual evaluation on the improved model through image testing. According to the lightweight target detection method based on no anchor frame, the convolutional structure is optimized, the attention mechanism is embedded and improved, and the anchor-frame-free positive
sample selection method and the structure optimization of the model are proposed, so that the lightweight target detection method based on no anchor frame has relatively high practicability.