Introduction
Lane detection is a fundamental task in autonomous driving, providing the necessary spatial constraints for vehicle localization and path planning. Despite its importance, detecting lanes remains difficult due to their thin, elongated geometry and the extreme variability of road environments, including lighting changes, weather conditions, and occlusions. Historically, research has converged on two distinct paradigms: keypoint-based methods and proposal-based methods. Keypoint methods offer flexibility for curved lanes but require computationally expensive post-processing to group points. Conversely, proposal-based methods are end-to-end but often rely on thousands of redundant anchors to ensure coverage, leading to high computational costs.
The Sketch-and-Refine Paradigm
The Sketch and Refine (SRLane) framework proposes a middle ground that combines the flexibility of keypoint detection with the efficiency of proposal-based systems. Instead of using a dense grid of anchors, SRLane "sketches" a small set of high-quality lane proposals based on local geometric cues and then "refines" them using an intelligent association module. This approach allows the model to achieve state-of-the-art accuracy while maintaining a high inference speed of 278 FPS.
Methodology
The SRLane architecture is structured into two primary stages: geometric sketching and iterative refinement.
Geometric Sketching
The first stage leverages the observation that local lane segments are semantically simple and can be approximated as straight lines. The model predicts a Local Direction Map, where each pixel estimates the angle of the nearest lane segment. By extending these local directions, the model generates global lane proposals. This geometrically informed "sketching" allows the model to cover the entire road with as few as 40 proposals, significantly reducing the redundancy found in traditional anchor-based methods.
Iterative Refinement
Because real-world lanes often exhibit complex curvature, the initial straight-line sketches require adjustment. SRLane introduces two key innovations for this purpose:
- Multi-level Feature Integration: To capture both fine-grained details and global context, the model adaptively samples features across different scales using a learnable Gaussian weighted sum. This approach is more lightweight than a standard Feature Pyramid Network (FPN).
- Lane Segment Association Module (LSAM): The LSAM is the core of the refinement process. It utilizes a cross-attention mechanism where lane segments act as queries. This allows a proposal to dynamically "look around" and collect features from nearby foreground segments, effectively "pulling" the initial sketch to match the actual lane curvature.
Experimental Results
SRLane was evaluated on the CULane, TuSimple, and CurveLanes benchmarks. The results demonstrate a superior trade-off between speed and accuracy.
- Speed and Efficiency: SRLane achieves a throughput of 278 FPS on an NVIDIA Titan Xp. The model head is exceptionally lean, requiring only 13M MACs, compared to over 2400M MACs in some competing architectures.
- Accuracy: On the CULane test set, the model achieved a 78.9% F1 score, outperforming other high-speed detectors such as LaneATT (75.1%) and BezierLane (73.8%).
- Handling Curvature: On the challenging CurveLanes dataset, SRLane surpassed previous proposal-based methods by 2.3%, proving that its refinement stage is highly effective at capturing complex, non-linear geometries.
Conclusion
SRLane introduces an efficient "Sketch-and-Refine" paradigm that leverages local geometric simplicity to solve a complex global detection problem. By replacing dense anchors with sparse, informed proposals and refining them through an attention-based association module, the model achieves a new state-of-the-art in fast and accurate lane detection. Future research directions include extending this framework to 3D lane detection and exploring its performance with modern transformer-based backbones.
Summary updated