Abstract:Due to the small size of SAR ship targets, low image resolution and complex scene backgrounds, it is difficult to detect the ship targets in the SAR image. In order to solve the above-mentioned problems, a ship target detection method is proposed based on improved YOLOv8n is proposed. Firstly, the backbone network of YOLOv8n is replaced with CSWin Transformer, so that the network can better extract more useful detailed features. Secondly, a downsampling compensation module (DCM) is designed, which can retain more complete context information in the process of feature extraction. Then, a C2f-DWR (C2f-Dilation-Wise Residual) module is designed to enhance the multi-scale feature extraction capability of the proposed network. In addition, an embedded dual dynamic token aggregator D-Mixer is embedded, which can provide the network with stronger inductive bias ability and larger effective receptive field. Finally, the improved mixed-domain attention mechanism is embedded to improve the robustness and generalization ability of the proposed model. The experimental results on the SSDD dataset show that, compared with the baseline network, the proposed method improves the performance of mAP@0.5 and mAP@0.5:0.95 by 1.7% and 4.2%, respectively, which significantly improves the detection performance of SAR ship targets.