Synthetic aperture radar (SAR) is a crucial active imaging technology in remote sensing, offering valuable information for applications like climate monitoring, environmental analysis, and ship surveillance. Ship detection in SAR images remains challenging due to diverse vessel types and environmental interference, especially in inshore areas, despite the proven effectiveness of deep learning-based algorithms. This paper presents an efficient deep learning method named you only look once-shuffle reparameterized blocks with dynamic head (YOLO-SRBD) based on YOLOv8. Additionally, post-processing incorporates the soft non-maximum suppression to enhance precision. Experiments conducted on SAR image datasets demonstrate that the proposed method surpasses the original YOLOv8 both qualitatively and quantitatively, highlighting its feasibility for practical applications. The detection accuracy of the proposed YOLO-SRBD in the high resolution SAR images dataset rose from 89.9% to 91.3%, and the average precision increased from 66.7% to 74.3%, showing significant performance enhancement.