forked from neycyanshi/DDRNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrain.sh
More file actions
32 lines (30 loc) · 714 Bytes
/
train.sh
File metadata and controls
32 lines (30 loc) · 714 Bytes
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
#!/usr/bin/env bash
#expm=`basename $1`
expm=$1
logdir=`realpath log/$expm`
echo "logdir: "$logdir
time=`date +"%m-%d-%H-%M"`
logfile=${logdir}/log_$time.txt
mkdir -p $logdir
touch $logfile
cd src
CUDA_VISIBLE_DEVICES=$2 unbuffer python train.py \
--dataset_dir=../dataset \
--index_file=train.csv \
--rand_crop \
--rand_flip \
--rand_depth_shift \
--aux_type='PNG' \
--diff_thres=2.5 \
--low_thres=500 \
--up_thres=3000 \
--dnnet=convResnet \
--dtnet=hypercolumn \
--checkpoint_basename=$expm \
--logdir=$logdir \
--image_size=256 \
--batch_size=16 \
--learning_rate=0.001 \
--max_steps=6000 \
--save_model_steps=200 \
2>&1 | tee $logfile