Abstract:In the field of autonomous driving, lane detection algorithms face challenges such as low detection efficiency, severe occlusion, and poor lighting conditions. To address these issues, this paper proposes a lane detection method based on an improved UFLDv2 network. In the feature extraction stage, we designed new layer structures such as SNA and SNB, introduced the lightweight attention mechanism CBAM, and used a mixed loss function combining an ordered expectation loss and the original cross-entropy loss, effectively balancing FLOPs and detection accuracy. A hybrid anchor detection system was then used for efficient lane detection, and extensive experiments were conducted on the CULane dataset. The results show that our improved method reduces FLOPs by 57.5% and improves detection accuracy (overall F1 score) by 0.7%. Compared to other mainstream lane detection networks, the improved network performs exceptionally well in extreme lane detection scenarios.