-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOE_train.sh
60 lines (48 loc) · 1.5 KB
/
OE_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
53
54
55
56
57
58
59
#!/bin/bash
REPO_PATH=./
# DATA_PATH=${MYGIT}/shadow_removal/data/SRD
# datasetmode=srd
DATA_PATH=../Shadoc
datasetmode=expo_param
batchs=8
n=5
ks=3
rks=3
version='fixed5-1-loss'
lr_policy=lambda
lr_decay_iters=50
optimizer=adam
shadow_loss=10.0
tv_loss=0
grad_loss=0.0
pgrad_loss=0.1
gpus=0,2,3,4
lr=0.0001
loadSize=512
fineSize=512
L1=10
model=Refine
load_dir=/data1/cxh/AEFNet/log/MFusion_expo_param_b8_lr0.0001_L110_n5_ks3_vfixed5-1-loss_adam_lambda_10.0_TV0G0.0PG0.1
checkpoint=${REPO_PATH}/log
dataroot=${DATA_PATH}
NAME="M${model}_${datasetmode}_b${batchs}_lr${lr}_L1${L1}_n${n}_ks${ks}_v${version}_${optimizer}_${lr_policy}_${shadow_loss}_TV${tv_loss}G${grad_loss}PG${pgrad_loss}"
OTHER="--save_epoch_freq 100 --niter 50 --niter_decay 350"
trainmask=${dataroot}'/train_NOTUSE'
CMD="python -u ./OE_train.py --loadSize ${loadSize} \
--randomSize
--name ${NAME} \
--dataroot ${dataroot}\
--checkpoints_dir ${checkpoint} \
--fineSize $fineSize --model $model \
--batch_size $batchs \
--randomSize --keep_ratio --phase train_ --gpu_ids ${gpus} --lr ${lr} \
--lambda_L1 ${L1} --num_threads 16 \
--dataset_mode $datasetmode\
--mask_train $trainmask --optimizer ${optimizer} \
--n ${n} --ks ${ks} --lr_policy ${lr_policy} --lr_decay_iters ${lr_decay_iters} \
--shadow_loss ${shadow_loss} --rks ${rks} --tv_loss ${tv_loss} --grad_loss ${grad_loss} --pgrad_loss ${pgrad_loss} \
--load_dir ${load_dir} \
$OTHER
"
echo $CMD
eval $CMD # >> ${checkpoint}/${NAME}.log 2>&1 &