-
Notifications
You must be signed in to change notification settings - Fork 2
/
train.sh
21 lines (19 loc) · 1017 Bytes
/
train.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
MVS_TRAINING="/data1/local_userdata/wangshaoqian/DTU/mvs_training/dtu/"
BLEND_TRAINING="/data1/local_userdata/wangshaoqian/dataset_low_res"
LOG_DIR="./checkpoints/Effi-MVS"
LOG_DIR_CKPT="./checkpoints/DTU.ckpt"
if [ ! -d $LOG_DIR ]; then
mkdir -p $LOG_DIR
fi
filename="Effi-MVS"
dirAndName="$LOG_DIR/$filename.log"
if [ ! -d $dirAndName ]; then
touch $dirAndName
fi
##DTU
python -u train.py --mode='train' --epochs=16 --numdepth=384 --trainviews=5 --testviews=5 --logdir $LOG_DIR --dataset=dtu_yao_1to8_inverse --batch_size=12 --trainpath=$MVS_TRAINING \
--trainlist lists/dtu/train.txt --testlist lists/dtu/test.txt --ndepths=48 --CostNum=4 --lr=0.001 | tee -i $dirAndName
##finetune on BlendedMVS
#python -u train.py --mode='finetune' --epochs=16 --numdepth=768 --trainviews=5 --testviews=5 --logdir $LOG_DIR --loadckpt $LOG_DIR_CKPT --dataset=blend --batch_size=8 --trainpath=$BLEND_TRAINING \
# --ndepths=96 --CostNum=4 --lr=0.0004 | tee -i $dirAndName