-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrop_real_ds.sh
37 lines (32 loc) · 1.09 KB
/
crop_real_ds.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash -l
SCRIPTPATH=$(dirname $(readlink -f "$0"))
PROJECT_DIR="${SCRIPTPATH}/../../"
# conda activate loftr
export PYTHONPATH=$PROJECT_DIR:$PYTHONPATH
cd $PROJECT_DIR
TRAIN_IMG_SIZE=360
# to reproduced the results in our paper, please use:
# TRAIN_IMG_SIZE=840
data_cfg_path="configs/data/crop_real_trainval_${TRAIN_IMG_SIZE}.py"
main_cfg_path="configs/loftr/outdoor/loftr_ds_dense.py"
n_nodes=1
n_gpus_per_node=1
torch_num_workers=4
batch_size=4
pin_memory=true
exp_name="crop-ds-${TRAIN_IMG_SIZE}-bs=$(($n_gpus_per_node * $n_nodes * $batch_size))"
python -u ./train.py \
${data_cfg_path} \
${main_cfg_path} \
--exp_name=${exp_name} \
--gpus=${n_gpus_per_node} --num_nodes=${n_nodes} --accelerator="ddp" \
--batch_size=${batch_size} --num_workers=${torch_num_workers} --pin_memory=${pin_memory} \
--check_val_every_n_epoch=1 \
--log_every_n_steps=1 \
--flush_logs_every_n_steps=1 \
--limit_val_batches=1. \
--num_sanity_val_steps=10 \
--benchmark=True \
--max_epochs=60 \
--ckpt_path="weights/outdoor_ds.ckpt"
# --ckpt_path="weights/last.ckpt"