indoor_ds_new.sh 896 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash -l
  2. # a indoor_ds model with the pos_enc impl bug fixed.
  3. SCRIPTPATH=$(dirname $(readlink -f "$0"))
  4. PROJECT_DIR="${SCRIPTPATH}/../../"
  5. # conda activate loftr
  6. export PYTHONPATH=$PROJECT_DIR:$PYTHONPATH
  7. cd $PROJECT_DIR
  8. data_cfg_path="configs/data/scannet_test_1500.py"
  9. main_cfg_path="configs/loftr/indoor/scannet/loftr_ds_eval_new.py"
  10. ckpt_path="weights/indoor_ds_new.ckpt"
  11. dump_dir="dump/loftr_ds_indoor_new"
  12. profiler_name="inference"
  13. n_nodes=1 # mannually keep this the same with --nodes
  14. n_gpus_per_node=-1
  15. torch_num_workers=4
  16. batch_size=1 # per gpu
  17. python -u ./test.py \
  18. ${data_cfg_path} \
  19. ${main_cfg_path} \
  20. --ckpt_path=${ckpt_path} \
  21. --dump_dir=${dump_dir} \
  22. --gpus=${n_gpus_per_node} --num_nodes=${n_nodes} --accelerator="ddp" \
  23. --batch_size=${batch_size} --num_workers=${torch_num_workers}\
  24. --profiler_name=${profiler_name} \
  25. --benchmark