conda create -n nuplan_py39 python=3.9 pip=24.0 -y
conda activate nuplan_py39
git clone https://github.com/motional/nuplan-devkit.git && cd nuplan-devkit
pip install -e .
pip install -r ./requirements.txt
cd ..
git clone https://github.com/ailab-hanyang/nuPlan_practice.git && cd nuPlan_practice
pip install -r ./requirements.txt
- 에러 발생 패키지는 본인 cuda 환경에 맞는 버전으로 설치 진행
nvcc -V
- 본인 cuda version에 맞는 torch 설치 (추천 버전[검증된 환경]: 1.12.0 ~ 2.2.0 사이)
설치 명령어 참고 경로: https://pytorch.org/get-started/previous-versions/
- 만약 본인의 설치 torch version이 2점대 이면 natten version 0.17.0 추천
- 만약 본인의 설치 torch version이 1점대 이면 natten version 0.14.6 추천
chmod +x script/setup_env.sh && ./script/setup_env.shpip3 install natten==0.17.0+torch220cu121 -f https://shi-labs.com/natten/wheels pip3 install natten==0.14.6+torch1130cu116 -f https://shi-labs.com/natten/wheels- closed-loop 추론 시각화 목적
설치 명령어
pip install imageio
pip install imageio[ffmpeg]
nuPlan 샘플 데이터셋 다운로드 폴더: AILAB_nuPlan_sample_dataset
- 데이터셋 다운 후 nuPlan_practice/ 에서 unzip 진행
- nuPlan_practice/nuplan_dataset/ 내 샘플 데이터셋 잘 unzip 되었는지 확인
[TODO] nuPlan 전체 데이터셋 다운로드 폴더: offiical-doc
cd nuPlan_practice/
export NUPLAN_MAPS_ROOT=$PWD/nuplan_dataset/dataset/maps
export NUPLAN_DATA_ROOT=$PWD/nuplan_dataset/dataset
export NUPLAN_EXP_ROOT=$PWD/nuplan_dataset/exp
PYTHONPATH=$PYTHONPATH:$PWD/
CUDA_VISIBLE_DEVICES=0 python run_training.py \
py_func=train +training=train_pluto \
worker=single_machine_thread_pool worker.max_workers=2 \
scenario_builder=nuplan \
cache.cache_path=$(pwd)/nuplan_dataset/exp/cache_pluto_sanity_check cache.use_cache_without_dataset=true \
data_loader.params.batch_size=2 data_loader.params.num_workers=2 \
lr=1e-3 epochs=150 warmup_epochs=3 weight_decay=0.0001- checkpoint 및 학습 log 경로 : $PWD/nuplan_dataset/exp/exp/training/pluto
- PLUTO 제공 기본 checkpoint
- Download and place the checkpoint in the
/checkpointsfolder.
| Model | Download |
|---|---|
| Pluto-1M-aux-cil | OneDrive |
sh ./script/run_pluto_planner.sh pluto_planner nuplan training_scenarios_sample $(pwd)/checkpoints/pluto_1M_aux_cil.ckpt $(pwd)/video_closed_loop_resultsh ./script/run_pluto_planner_mp.sh pluto_planner nuplan training_scenarios_sample $(pwd)/checkpoints/pluto_1M_aux_cil.ckpt $(pwd)/video_closed_loop_resultThe rendered simulation video will be saved to the specified directory (need to create floder ./video_closed_loop_result).
