Phips commited on
Commit
170071a
1 Parent(s): 0173163

Upload baseline configs

Browse files
baseline/configs/4xDF2K_plksr_tiny.toml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name = "4xDF2K_plksr_tiny"
2
+ model_type = "image"
3
+ scale = 4
4
+ manual_seed = 1024
5
+
6
+ [datasets.train]
7
+ type = "paired"
8
+ dataroot_gt = '/home/phips/Documents/Datasets/wip/DF2K/train/DF2K_HR_tiled/'
9
+ dataroot_lq = '/home/phips/Documents/Datasets/wip/DF2K/train/DF2K_LR_tiled/'
10
+ patch_size = 32
11
+ batch_size = 16
12
+
13
+ [datasets.val]
14
+ name = "val"
15
+ type = "paired"
16
+ dataroot_gt = '/home/phips/Documents/Datasets/wip/DF2K/test/DIV2K_valid_HR/'
17
+ dataroot_lq = '/home/phips/Documents/Datasets/wip/DF2K/test/DIV2K_valid_LR_bicubic/X4/'
18
+ [val]
19
+ val_freq = 10000
20
+ save_img = false
21
+ [val.metrics.psnr]
22
+ type = "calculate_psnr"
23
+ [val.metrics.ssim]
24
+ type = "calculate_ssim"
25
+ [val.metrics.dists]
26
+ type = "calculate_dists"
27
+ better = "lower"
28
+
29
+ [path]
30
+
31
+ [network_g]
32
+ #type = "plksr"
33
+ type = "plksr_tiny"
34
+
35
+ [train]
36
+ ema = 0.999
37
+
38
+ [train.optim_g]
39
+ type = "adamw"
40
+ lr = 1e-4
41
+ betas = [ 0.9, 0.99 ]
42
+ weight_decay = 0
43
+
44
+ [train.scheduler]
45
+ type = "multisteplr"
46
+ milestones = [ 60000, 120000 ]
47
+ gamma = 0.5
48
+
49
+ [train.pixel_opt]
50
+ type = "L1Loss"
51
+ loss_weight = 1.0
52
+ reduction = "mean"
53
+
54
+ [logger]
55
+ total_iter = 1000000
56
+ save_checkpoint_freq = 10000
57
+ use_tb_logger = true
baseline/configs/4xDF2K_plksr_tiny_bf16.toml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name = "4xDF2K_plksr_tiny_bf16"
2
+ model_type = "image"
3
+ scale = 4
4
+ use_amp = true
5
+ bfloat16 = true
6
+ manual_seed = 1024
7
+
8
+ [datasets.train]
9
+ type = "paired"
10
+ dataroot_gt = '/home/phips/Documents/Datasets/wip/DF2K/train/DF2K_HR_tiled/'
11
+ dataroot_lq = '/home/phips/Documents/Datasets/wip/DF2K/train/DF2K_LR_tiled/'
12
+ patch_size = 32
13
+ batch_size = 16
14
+
15
+ [datasets.val]
16
+ name = "val"
17
+ type = "paired"
18
+ dataroot_gt = '/home/phips/Documents/Datasets/wip/DF2K/test/DIV2K_valid_HR/'
19
+ dataroot_lq = '/home/phips/Documents/Datasets/wip/DF2K/test/DIV2K_valid_LR_bicubic/X4/'
20
+ [val]
21
+ val_freq = 10000
22
+ save_img = false
23
+ [val.metrics.psnr]
24
+ type = "calculate_psnr"
25
+ [val.metrics.ssim]
26
+ type = "calculate_ssim"
27
+ [val.metrics.dists]
28
+ type = "calculate_dists"
29
+ better = "lower"
30
+
31
+ [path]
32
+
33
+ [network_g]
34
+ #type = "plksr"
35
+ type = "plksr_tiny"
36
+
37
+ [train]
38
+ ema = 0.999
39
+
40
+ [train.optim_g]
41
+ type = "adamw"
42
+ lr = 1e-4
43
+ betas = [ 0.9, 0.99 ]
44
+ weight_decay = 0
45
+
46
+ [train.scheduler]
47
+ type = "multisteplr"
48
+ milestones = [ 60000, 120000 ]
49
+ gamma = 0.5
50
+
51
+ [train.pixel_opt]
52
+ type = "L1Loss"
53
+ loss_weight = 1.0
54
+ reduction = "mean"
55
+
56
+ [logger]
57
+ total_iter = 200000
58
+ save_checkpoint_freq = 10000
59
+ use_tb_logger = true
baseline/configs/4xDF2K_plksr_tiny_fp16.toml ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name = "4xDF2K_plksr_tiny_fp16"
2
+ model_type = "image"
3
+ scale = 4
4
+ use_amp = true
5
+ manual_seed = 1024
6
+
7
+ [datasets.train]
8
+ type = "paired"
9
+ dataroot_gt = '/home/phips/Documents/Datasets/wip/DF2K/train/DF2K_HR_tiled/'
10
+ dataroot_lq = '/home/phips/Documents/Datasets/wip/DF2K/train/DF2K_LR_tiled/'
11
+ patch_size = 32
12
+ batch_size = 16
13
+
14
+ [datasets.val]
15
+ name = "val"
16
+ type = "paired"
17
+ dataroot_gt = '/home/phips/Documents/Datasets/wip/DF2K/test/DIV2K_valid_HR/'
18
+ dataroot_lq = '/home/phips/Documents/Datasets/wip/DF2K/test/DIV2K_valid_LR_bicubic/X4/'
19
+ [val]
20
+ val_freq = 10000
21
+ save_img = false
22
+ [val.metrics.psnr]
23
+ type = "calculate_psnr"
24
+ [val.metrics.ssim]
25
+ type = "calculate_ssim"
26
+ [val.metrics.dists]
27
+ type = "calculate_dists"
28
+ better = "lower"
29
+
30
+ [path]
31
+
32
+ [network_g]
33
+ #type = "plksr"
34
+ type = "plksr_tiny"
35
+
36
+ [train]
37
+ ema = 0.999
38
+
39
+ [train.optim_g]
40
+ type = "adamw"
41
+ lr = 1e-4
42
+ betas = [ 0.9, 0.99 ]
43
+ weight_decay = 0
44
+
45
+ [train.scheduler]
46
+ type = "multisteplr"
47
+ milestones = [ 60000, 120000 ]
48
+ gamma = 0.5
49
+
50
+ [train.pixel_opt]
51
+ type = "L1Loss"
52
+ loss_weight = 1.0
53
+ reduction = "mean"
54
+
55
+ [logger]
56
+ total_iter = 200000
57
+ save_checkpoint_freq = 10000
58
+ use_tb_logger = true