Skip to content

SAIC-Vision/WS-3D-Lane

Repository files navigation

(Official Repo) WS-3D-Lane: Weakly Supervised 3D Lane Detection With 2D Lane Labels

Introduction

This is the official pytorch implementation of WS-3D-Lane: Weakly Supervised 3D Lane Detection With 2D Lane Labels. [ICRA 2023 paper]

Baseline

This repo is based on the open source code of Gen-LaneNet in pytorch.

Requirements

If you have Anaconda installed, you can directly import the provided environment file.

conda env update --file environment.yaml

Those important packages includes:

  • opencv-python 4.1.0.25
  • pytorch 1.4.0
  • torchvision 0.5.0
  • tensorboard 1.15.0
  • tensorboardx 1.7
  • py3-ortools 5.1.4041

Data preparation

The 3D lane detection method is trained and tested on the 3D lane synthetic dataset. Running the demo code on a single image should directly work. However, repeating the training, testing and evaluation requires to prepare the dataset:

If you prefer to build your own data splits using the dataset, please follow the steps described in the 3D lane synthetic dataset repository. All necessary codes are included here already.

How to train the model

Step 1: Revise your data path and save path in './scripts/config_3dlanenet_apollo_ws.yaml'.

Step 2: Train the WS-3D-Lane network.

CUDA_VISIBLE_DEVICES=0 python -m torch.distributed.launch --nproc_per_node=1 --master_port 9999 train_ws3dlane.py --cfg scripts/config_3dlanenet_apollo_ws.yaml

Change the training hyper-parameters may get better results.

Evaluation

Step 1: Revise your data path and save path in 'scripts/config_3dlanenet_apollo_test.yaml'.

Step 2: Evaluate your network.

python test.py

Note: our model weights are under pth/ folder

Citation

Please cite the paper in your publications if it helps your research:

@article{ai2022ws,
  title={WS-3D-Lane: Weakly Supervised 3D Lane Detection With 2D Lane Labels},
  author={Ai, Jianyong and Ding, Wenbo and Zhao, Jiuhua and Zhong, Jiachen},
  journal={arXiv preprint arXiv:2209.11523},
  year={2022}
}

Copyright

The copyright of this work belongs to SAIC AILAB.

About

[ICRA 2023] WS-3D-Lane: Weakly Supervised 3D Lane Detection with 2D Lane Labels

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published