-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsr_ddpm_16_128.json
executable file
·97 lines (97 loc) · 2.57 KB
/
sr_ddpm_16_128.json
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"name": "sr_ffhq",
"phase": "train",
"gpu_ids": [
0
],
"path": {
"log": "logs",
"tb_logger": "tb_logger",
"results": "results",
"checkpoint": "checkpoint",
"resume_state": null
// "resume_state": "experiments/sr_ffhq_210806_204158/checkpoint/I640000_E37" //pretrain model or training state
},
"datasets": {
"train": {
"name": "FFHQ",
"mode": "HR",
"dataroot": "dataset/ffhq_16_128",
"datatype": "lmdb", //lmdb or img, path of img files
"l_resolution": 16,
"r_resolution": 128,
"batch_size": 12,
"num_workers": 8,
"use_shuffle": true,
"data_len": -1
},
"val": {
"name": "CelebaHQ",
"mode": "LRHR",
"dataroot": "dataset/celebahq_16_128",
"datatype": "lmdb", //lmdb or img, path of img files
"l_resolution": 16,
"r_resolution": 128,
"data_len": 3
}
},
"model": {
"which_model_G": "ddpm", //ddpm, sr3
"finetune_norm": false,
"unet": {
"in_channel": 6,
"out_channel": 3,
"inner_channel": 64,
"channel_multiplier": [
1,
1,
2,
2,
4,
4
],
"attn_res": [
16
],
"res_blocks": 2,
"dropout": 0.2
},
"beta_schedule": {
"train": {
"schedule": "linear",
"n_timestep": 2000,
"linear_start": 1e-4,
"linear_end": 2e-2
},
"val": {
"schedule": "linear",
"n_timestep": 2000,
"linear_start": 1e-4,
"linear_end": 2e-2
}
},
"diffusion": {
"image_size": 128,
"channels": 3, //sample channel
"conditional": true
}
},
"train": {
"n_iter": 1000000,
"val_freq": 1e4,
"save_checkpoint_freq": 1e4,
"print_freq": 200,
"optimizer": {
"type": "adam",
"lr": 1e-4
},
"ema_scheduler": {
"step_start_ema": 5000,
"update_ema_every": 1,
"ema_decay": 0.9999
}
},
"wandb": {
"project": "sr_ffhq"
}
}