Skip to content

Commit 810ae46

Browse files
authored
Merge pull request #6 from Mrmoore98/main
init commit
2 parents f9849b7 + 15fc3a7 commit 810ae46

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+11701
-3
lines changed

README.md

Lines changed: 64 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# VectorMapNet_code
22
**VectorMapNet: End-to-end Vectorized HD Map Learning**
33

4-
This is the offical codebase of VectorMapNet
4+
This is the official codebase of VectorMapNet
55

66

7-
[Yicheng Liu](https://scholar.google.com/citations?user=vRmsgQUAAAAJ&hl=zh-CN), [Yue Wang](https://people.csail.mit.edu/yuewang/), [Yilun Wang](https://scholar.google.com.hk/citations?user=nUyTDosAAAAJ&hl=en/), [Hang Zhao](http://people.csail.mit.edu/hangzhao/)
7+
[Yicheng Liu](https://scholar.google.com/citations?user=vRmsgQUAAAAJ&hl=zh-CN), Yuantian Yuan, [Yue Wang](https://people.csail.mit.edu/yuewang/), [Yilun Wang](https://scholar.google.com.hk/citations?user=nUyTDosAAAAJ&hl=en/), [Hang Zhao](http://people.csail.mit.edu/hangzhao/)
8+
89

910
**[[Paper](https://arxiv.org/pdf/2206.08920.pdf)] [[Project Page](https://tsinghua-mars-lab.github.io/vectormapnet/)]**
1011

@@ -15,7 +16,7 @@ Autonomous driving systems require a good understanding of surrounding environme
1516
Please file an [issue](https://github.com/Tsinghua-MARS-Lab/vecmapnet/issues) or send an email to [Yicheng]([email protected]).
1617

1718

18-
### Citation
19+
## Bibtex
1920
If you found this paper or codebase useful, please cite our paper:
2021
```
2122
@article{liu2022vectormapnet,
@@ -25,3 +26,63 @@ If you found this paper or codebase useful, please cite our paper:
2526
year={2022}
2627
}
2728
```
29+
30+
31+
# Run VectorMapNet
32+
33+
## Note
34+
We are still working on refining this repo. Currently, we only release the inference code of VectorMapNet.
35+
36+
The training pipeline will be released in next week.
37+
38+
## 0. Environment
39+
40+
Set up environment by following this [script](env.md)
41+
42+
## 1. Prepare your dataset
43+
44+
Store your data with following structure:
45+
46+
```
47+
root
48+
|--datasets
49+
|--nuScenes
50+
|--Argoverse2(optional)
51+
52+
```
53+
54+
### 1.1 Generate annotation files
55+
56+
#### Preprocess nuScenes
57+
58+
```
59+
python tools/data_converter/nuscenes_converter.py --data-root your/dataset/nuScenes/
60+
```
61+
62+
## 2. Evaluate VectorMapNet
63+
64+
### Download Checkpoint
65+
| Method | Modality | Config | Checkpoint |
66+
|--------------|-------------|--------|------------|
67+
| VectorMapNet | Camera only | [config](configs/vectormapnet.py) | [model link](https://drive.google.com/file/d/1ccrlZ2HrFfpBB27kC9DkwCYWlTUpgmin/view?usp=sharing) |
68+
69+
### Do Evaluation
70+
71+
In single GPU
72+
```
73+
python tools/test.py configs/vectormapnet.py /path/to/ckpt --eval name
74+
```
75+
76+
For multi GPUs
77+
```
78+
bash tools/dist_test.sh configs/vectormapnet.py /path/to/ckpt $num_gpu --eval name
79+
```
80+
81+
82+
### Expected Results
83+
84+
| $AP_{ped}$ | $AP_{divider}$ | $AP_{boundary}$ | mAP |
85+
|--------------|----------------|-----------------|-------|
86+
| 39.8 | 47.7 | 38.8 | 42.1 |
87+
88+

configs/_base_/default_runtime.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
checkpoint_config = dict(interval=1)
2+
# yapf:disable push
3+
# By default we use textlogger hook and tensorboard
4+
# For more loggers see
5+
# https://mmcv.readthedocs.io/en/latest/api.html#mmcv.runner.LoggerHook
6+
log_config = dict(
7+
interval=50,
8+
hooks=[
9+
dict(type='TextLoggerHook'),
10+
dict(type='TensorboardLoggerHook')
11+
])
12+
# yapf:enable
13+
dist_params = dict(backend='nccl')
14+
log_level = 'INFO'
15+
work_dir = None
16+
load_from = None
17+
resume_from = None
18+
workflow = [('train', 1)]

0 commit comments

Comments
 (0)