-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathexp_denoising.sh
69 lines (57 loc) · 5.12 KB
/
exp_denoising.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
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env bash
echo task $1 GPU_ID $2
export CUDA_VISIBLE_DEVICES=$2
# [ ] need space.
if [ $1 == "dip" ]; then
tag=dip_set9
python main.py --dip_type dip --net_type s2s --exp_tag $tag --desc sigma15 denoising --sigma 15
python main.py --dip_type dip --net_type s2s --exp_tag $tag --desc sigma25 denoising --sigma 25
python main.py --dip_type dip --net_type s2s --exp_tag $tag --desc sigma50 denoising --sigma 50
elif [ $1 == "ablation" ]; then
tag=ablation
python main.py --dip_type dip --net_type s2s --exp_tag $tag --desc sigma25 denoising --sigma 25
python main.py --dip_type dip_sure --net_type s2s --exp_tag $tag --desc sigma25 denoising --sigma 25
python main.py --dip_type eSURE_uniform --net_type s2s --exp_tag CSet9 --optim RAdam --force_steplr --desc sigma25 denoising --sigma 25
elif [ $1 == "CSet9" ]; then
tag=CSet9
python main.py --dip_type eSURE_uniform --net_type s2s --exp_tag CSet9 --optim RAdam --force_steplr --desc sigma15 denoising --sigma 15
python main.py --dip_type eSURE_uniform --net_type s2s --exp_tag CSet9 --optim RAdam --force_steplr --desc sigma25 denoising --sigma 25
python main.py --dip_type eSURE_uniform --net_type s2s --exp_tag CSet9 --optim RAdam --force_steplr --desc sigma50 denoising --sigma 50
elif [ $1 == "set12" ]; then
tag=Set12
python main.py --dip_type eSURE_uniform --gray --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --sigma_z 0.3 --desc sigma15 denoising --sigma 15 --eval_data Set12
python main.py --dip_type eSURE_uniform --gray --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --sigma_z 0.3 --desc sigma25 denoising --sigma 25 --eval_data Set12
python main.py --dip_type eSURE_uniform --gray --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --sigma_z 0.3 --desc sigma50 denoising --sigma 50 --eval_data Set12
elif [ $1 == "McM" ]; then
tag=McM
python main.py --dip_type eSURE_uniform --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --desc sigma15 denoising --sigma 15 --eval_data McM
python main.py --dip_type eSURE_uniform --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --desc sigma25 denoising --sigma 25 --eval_data McM
python main.py --dip_type eSURE_uniform --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --desc sigma50 denoising --sigma 50 --eval_data McM
elif [ $1 == "kodak" ]; then
tag=kodak
python main.py --dip_type eSURE_uniform --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --desc sigma15 denoising --sigma 15 --eval_data Kodak
python main.py --dip_type eSURE_uniform --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --desc sigma25 denoising --sigma 25 --eval_data Kodak
python main.py --dip_type eSURE_uniform --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --desc sigma50 denoising --sigma 50 --eval_data Kodak
elif [ $1 == "CBSD" ]; then
tag=CBSD
python main.py --dip_type eSURE_uniform --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --desc sigma15 denoising --sigma 15 --eval_data CBSD68
python main.py --dip_type eSURE_uniform --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --desc sigma25 denoising --sigma 25 --eval_data CBSD68
python main.py --dip_type eSURE_uniform --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --desc sigma50 denoising --sigma 50 --eval_data CBSD68
elif [ $1 == "BSD" ]; then
tag=BSD
python main.py --dip_type eSURE_uniform --gray --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --sigma_z 0.3 --desc sigma15 denoising --sigma 15 --eval_data BSD68
python main.py --dip_type eSURE_uniform --gray --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --sigma_z 0.3 --desc sigma25 denoising --sigma 25 --eval_data BSD68
python main.py --dip_type eSURE_uniform --gray --net_type s2s --exp_tag $tag --optim RAdam --force_steplr --sigma_z 0.3 --desc sigma50 denoising --sigma 50 --eval_data BSD68
elif [ $1 == "DIP_MNIST" ]; then
tag=DIP_MNIST
python main.py --dip_type dip --gray --running_avg_ratio 0.9 --exp_tag $tag --optim RAdam --force_steplr --desc scale001 poisson --scale 0.01 --eval_data MNIST
python main.py --dip_type dip --gray --running_avg_ratio 0.9 --exp_tag $tag --optim RAdam --force_steplr --desc scale01 poisson --scale 0.1 --eval_data MNIST
python main.py --dip_type dip --gray --running_avg_ratio 0.9 --exp_tag $tag --optim RAdam --force_steplr --desc scale02 poisson --scale 0.2 --eval_data MNIST
elif [ $1 == "MNIST" ]; then
tag=MNIST
python main.py --dip_type PURE_dc --gray --running_avg_ratio 0.9 --net_type s2s_normal --exp_tag $tag --optim RAdam --desc scale001 poisson --scale 0.01 --eval_data MNIST
python main.py --dip_type PURE_dc --gray --running_avg_ratio 0.9 --net_type s2s_normal --exp_tag $tag --optim RAdam --desc scale01 poisson --scale 0.1 --eval_data MNIST
python main.py --dip_type PURE_dc --gray --running_avg_ratio 0.9 --net_type s2s_normal --exp_tag $tag --optim RAdam --desc scale02 poisson --scale 0.2 --eval_data MNIST
else
echo wrong task name
fi