-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrain.sh
31 lines (21 loc) · 803 Bytes
/
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
#!/bin/bash
echo "Start to train the model...."
# choose '/.../Nikon_v2' or '/.../RealMCVSR_v2'
# Nikon_v2 dataset for Nikon Camera, RealMCVSR_v2 dataset for iPhone Camera
dataroot="/.../Nikon_v2"
# choose 'nikon' or 'iphone'
camera='nikon'
data='nikon'
# choose 'tzsr' or 'dzsr'
# tzsr for SelfTZSR++, dzsr for SelfDZSR++
model='tzsr'
name="tzsr_nikon_l1sw_try"
device="0"
build_dir="./ckpt/"$name
if [ ! -d "$build_dir" ]; then
mkdir $build_dir
fi
LOG=./ckpt/$name/`date +%Y-%m-%d-%H-%M-%S`.txt
python train.py \
--model $model --niter 401 --lr_decay_iters 200 --name $name --dataroot $dataroot --camera $camera \
--dataset_name $data --predict True --save_imgs False --dropout 0.3 --calc_psnr True --gpu_ids $device -j 8 | tee $LOG