Pytorch implementation of our paper End-to-End Lane detection with One to Several Transformer. We will merge the O2SFormer into PPLanedet, which is a lane detection toolbox based on PaddlePaddle.
[2024/2/28]: Lane2Seq is accepted by CVPR2024. Arxiv paper is here.
[2023/5/9]: We release the new version on arxiv.
[2023/5/2]: We update the arxiv paper.
[2023/5/1]: We release the code of O2SFormer, a SOTA lane detection method with DETR like architecture.
Abstract: Although lane detection methods have shown impressive performance in real-world scenarios, most of methods require post-processing which is not robust enough. Therefore, end-to-end detectors like DEtection TRansformer(DETR) have been introduced in lane detection. However, one-to-one label assignment in DETR can degrade the training efficiency due to label semantic conflicts. Besides, positional query in DETR is unable to provide explicit positional prior, making it difficult to be optimized. In this paper, we present the One-to-Several Transformer(O2SFormer). We first propose the one-to-several label assignment, which combines one-to-one and one- to-many label assignments to improve the training efficiency while keeping end-to-end detection. To overcome the difficulty in optimizing one-to-one assignment. We further propose the layer-wise soft label which adjusts the positive weight of positive lane anchors across different decoder layers. Finally, we design the dynamic anchor-based positional query to explore positional prior by incorporating lane anchors into positional query. Experimental results show that O2SFormer significantly speed up the convergence of DETR and outperforms Transformer-based and CNN-based detectors on CULane dataset.
name | backbone | F1 score | Checkpoint | Where in Our Paper | |
---|---|---|---|---|---|
1 | O2SFormer | ResNet18 | 76.07 | Weight | Table 1 |
2 | O2SForme | ResNet34 | 77.03 | Weight | Table 1 |
3 | O2SFormer | ResNet50 | 77.83 | Weight  | Table 1 |
4 | O2SFormer* | ResNet50 | 78.00 | Weight  | Table 1 |
Note: * represents that we replace the encoder with HybridEncoder in RT-DETR, which aggregates multi-scale features.
O2SFormer is released under the Apache 2.0 license. Please see the LICENSE file for more information.
If you find our work helpful for your research, please consider citing the following BibTeX entry.
@misc{zhou2023o2sformer,
title={End to End Lane detection with One-to-Several Transformer},
author={Kunyang Zhou and Rui Zhou},
year={2023},
eprint={2305.00675},
archivePrefix={arXiv},
primaryClass={cs.CV}
}