forked from autonomousvision/unimatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgmdepth_scale1_regrefine1_train.sh
executable file
·54 lines (46 loc) · 1.5 KB
/
gmdepth_scale1_regrefine1_train.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env bash
# GMDepth (1/8 feature only), with additional 1 local regression refinement at 1/8 resolution
# number of gpus for training, please set according to your hardware
# trained on 8x 40GB A100 gpus
NUM_GPUS=8
# scannet
CHECKPOINT_DIR=checkpoints_depth/scannet-gmdepth-scale1-regrefine1-resumeflowthings && \
mkdir -p ${CHECKPOINT_DIR} && \
python -m torch.distributed.launch --nproc_per_node=${NUM_GPUS} --master_port=9989 main_depth.py \
--launcher pytorch \
--checkpoint_dir ${CHECKPOINT_DIR} \
--resume pretrained/gmdepth-scale1-resumeflowthings-scannet-5d9d7964.pth \
--no_resume_optimizer \
--dataset scannet \
--val_dataset scannet \
--image_size 480 640 \
--batch_size 64 \
--lr 4e-4 \
--reg_refine \
--num_reg_refine 1 \
--summary_freq 100 \
--val_freq 5000 \
--save_ckpt_freq 5000 \
--num_steps 100000 \
2>&1 | tee -a ${CHECKPOINT_DIR}/train.log
# demon
CHECKPOINT_DIR=checkpoints_depth/demon-gmdepth-scale1-regrefine1-resumeflowthings && \
mkdir -p ${CHECKPOINT_DIR} && \
python -m torch.distributed.launch --nproc_per_node=${NUM_GPUS} --master_port=9989 main_depth.py \
--launcher pytorch \
--checkpoint_dir ${CHECKPOINT_DIR} \
--resume pretrained/gmdepth-scale1-resumeflowthings-demon-a2fe127b.pth \
--no_resume_optimizer \
--dataset demon \
--val_dataset demon \
--demon_split rgbd \
--image_size 448 576 \
--batch_size 64 \
--lr 4e-4 \
--reg_refine \
--num_reg_refine 1 \
--summary_freq 100 \
--val_freq 5000 \
--save_ckpt_freq 5000 \
--num_steps 100000 \
2>&1 | tee -a ${CHECKPOINT_DIR}/train.log