Abstract: In response to the issue of poor detection performance on wafer surface defect spots and elongated scratches, an improved RT-DETR method for wafer surface defect detection is proposed.