Abstract:Accurate and efficient ship target detection algorithms can enhance the perception ability of monitoring equipment. There are serious issues of missed and false detections of ships in SAR images of complex marine environments. Propose a ship target detection algorithm DH-YOLO (Double detection head YOLO) based on YOLO for dual detection head SAR images. Firstly, a low dimensional dual detection head network structure was proposed, which uses a low dimensional feature extraction network structure to fuse dual detection heads for feature fusion and inference, solving the problem of feature loss caused by convolution of small ship targets in SAR images; Then, the cosN-IoU loss function was proposed, a new anchor box angle loss measurement method was designed, and an adjustment factor was introduced to improve the contribution of positive samples. Finally, a pruning algorithm based on feature space similarity was proposed, which uses filter similarity as a replaceable indicator to complete network feature information pruning, improve algorithm inference speed, reduce algorithm complexity, inference speed, and model volume, and achieve lightweight processing. To verify the effectiveness of the DH-YOLO algorithm, it was validated in SSDD, SAR Chip Dataset, and HRSID, and the results showed that the detection accuracy could be improved to 99.2%, 98.5%, and 95.6%, respectively; The fusion pruning algorithm significantly reduces the model volume and can be compressed to 190KB; The inference time of the model can be reduced to below 3ms. Compared to current mainstream algorithms, DH-YOLO has achieved good results in all aspects and can meet the requirements of real-time ship target detection in SAR images.