-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·23 lines (21 loc) · 1.03 KB
/
dev.sh
File metadata and controls
executable file
·23 lines (21 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export CODEBASE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $CODEBASE;
conda activate mtgs;
export PYTHONPATH=\"./\":$PYTHONPATH;
function mtgs_dev_setup(){
tmp_var=$1;
tmp_var=${tmp_var%.py}
tmp_var=${tmp_var//\//.}
export NERFSTUDIO_DATAPARSER_CONFIGS='nuplan=mtgs.config.nuplan_dataparser:nuplan_dataparser';
export NERFSTUDIO_METHOD_CONFIGS='mtgs-dev='${tmp_var}':method';
echo '-------------------------------------';
echo 'ENV UPDATED with following ENV VARS.';
echo ' NERFSTUDIO_DATAPARSER_CONFIGS = '${NERFSTUDIO_DATAPARSER_CONFIGS};
echo ' NERFSTUDIO_METHOD_CONFIGS = '${NERFSTUDIO_METHOD_CONFIGS};
echo '-------------------------------------'
}
echo 'INIT SETUP DONE.'
alias mtgs_setup="mtgs_dev_setup"
alias mtgs_train="ns-train mtgs-dev"
alias mtgs_render="python mtgs/tools/render.py interpolate --load-config"
alias mtgs_viewer="python mtgs/tools/run_viewer.py --viewer.camera-frustum-scale 0.3 --viewer.default_composite_depth False --viewer.max_num_display_images 500 --load-config"