forked from xinge008/Cylinder3D
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
491 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
## Guide for nuScenes dataset | ||
|
||
### Requirements | ||
nuscenes-devkit=1.1.1 | ||
pyyaml=5.3.1 | ||
|
||
|
||
### Workflow | ||
|
||
1. Pre-processing: we follow the data pre-processing in SECOND to prepare | ||
the nuscenes_info file, including nuscenes_infos_train.pkl, nuscenes_infos_val.pkl | ||
and nuscenes_infos_test.pkl. We also provide the generated files in | ||
[LINK1](https://drive.google.com/drive/folders/1zSZ9xE4UkKBMCMH0le7KdSxvbyjuuUp8?usp=sharing) or [LINK2](https://pan.baidu.com/s/1ChK6iua0lENJ-ZvcFjc8Ew) (access code: 2e53) | ||
|
||
2. Custom Configuration: modify the path in config file with your own settings | ||
|
||
3. Run the train_nusc.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
labels: | ||
0: 'noise' | ||
1: 'animal' | ||
2: 'human.pedestrian.adult' | ||
3: 'human.pedestrian.child' | ||
4: 'human.pedestrian.construction_worker' | ||
5: 'human.pedestrian.personal_mobility' | ||
6: 'human.pedestrian.police_officer' | ||
7: 'human.pedestrian.stroller' | ||
8: 'human.pedestrian.wheelchair' | ||
9: 'movable_object.barrier' | ||
10: 'movable_object.debris' | ||
11: 'movable_object.pushable_pullable' | ||
12: 'movable_object.trafficcone' | ||
13: 'static_object.bicycle_rack' | ||
14: 'vehicle.bicycle' | ||
15: 'vehicle.bus.bendy' | ||
16: 'vehicle.bus.rigid' | ||
17: 'vehicle.car' | ||
18: 'vehicle.construction' | ||
19: 'vehicle.emergency.ambulance' | ||
20: 'vehicle.emergency.police' | ||
21: 'vehicle.motorcycle' | ||
22: 'vehicle.trailer' | ||
23: 'vehicle.truck' | ||
24: 'flat.driveable_surface' | ||
25: 'flat.other' | ||
26: 'flat.sidewalk' | ||
27: 'flat.terrain' | ||
28: 'static.manmade' | ||
29: 'static.other' | ||
30: 'static.vegetation' | ||
31: 'vehicle.ego' | ||
labels_16: | ||
0: 'noise' | ||
1: 'barrier' | ||
2: 'bicycle' | ||
3: 'bus' | ||
4: 'car' | ||
5: 'construction_vehicle' | ||
6: 'motorcycle' | ||
7: 'pedestrian' | ||
8: 'traffic_cone' | ||
9: 'trailer' | ||
10: 'truck' | ||
11: 'driveable_surface' | ||
12: 'other_flat' | ||
13: 'sidewalk' | ||
14: 'terrain' | ||
15: 'manmade' | ||
16: 'vegetation' | ||
learning_map: | ||
1: 0 | ||
5: 0 | ||
7: 0 | ||
8: 0 | ||
10: 0 | ||
11: 0 | ||
13: 0 | ||
19: 0 | ||
20: 0 | ||
0: 0 | ||
29: 0 | ||
31: 0 | ||
9: 1 | ||
14: 2 | ||
15: 3 | ||
16: 3 | ||
17: 4 | ||
18: 5 | ||
21: 6 | ||
2: 7 | ||
3: 7 | ||
4: 7 | ||
6: 7 | ||
12: 8 | ||
22: 9 | ||
23: 10 | ||
24: 11 | ||
25: 12 | ||
26: 13 | ||
27: 14 | ||
28: 15 | ||
30: 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Config format schema number | ||
format_version: 4 | ||
|
||
################### | ||
## Model options | ||
model_params: | ||
model_architecture: "cylinder_asym" | ||
|
||
output_shape: | ||
- 480 | ||
- 360 | ||
- 32 | ||
|
||
fea_dim: 9 | ||
out_fea_dim: 256 | ||
num_class: 17 | ||
num_input_features: 16 | ||
use_norm: True | ||
init_size: 32 | ||
|
||
|
||
################### | ||
## Dataset options | ||
dataset_params: | ||
dataset_type: "cylinder_dataset_nuscenes" | ||
pc_dataset_type: "SemKITTI_nusc" | ||
ignore_label: 0 | ||
return_test: False | ||
fixed_volume_space: True | ||
label_mapping: "./config/label_mapping/nuscenes.yaml" | ||
max_volume_space: | ||
- 50 | ||
- 3.1415926 | ||
- 3 | ||
min_volume_space: | ||
- 0 | ||
- -3.1415926 | ||
- -5 | ||
|
||
|
||
################### | ||
## Data_loader options | ||
train_data_loader: | ||
data_path: "/data/dataset/nuScenes/" | ||
imageset: "/data/dataset/nuScenes/nuscenes_infos_train.pkl" | ||
return_ref: True | ||
batch_size: 2 | ||
shuffle: True | ||
num_workers: 4 | ||
|
||
val_data_loader: | ||
data_path: "/data/dataset/nuScenes/" | ||
imageset: "/data/dataset/nuScenes/nuscenes_infos_val.pkl" | ||
return_ref: True | ||
batch_size: 1 | ||
shuffle: False | ||
num_workers: 4 | ||
|
||
|
||
################### | ||
## Train params | ||
train_params: | ||
model_load_path: "./model_load_dir_nuscenes/model_load.pt" | ||
model_save_path: "./model_save_dir_nuscenes/model_save.pt" | ||
checkpoint_every_n_steps: 4599 | ||
max_num_epochs: 40 | ||
eval_every_n_steps: 4599 | ||
learning_rate: 0.001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# -*- coding:utf-8 -*- | ||
# author: Xinge | ||
# @file: __init__.py.py | ||
|
||
from . import dataset_nuscenes |
Oops, something went wrong.