-
Notifications
You must be signed in to change notification settings - Fork 2
/
score_pretraining.json
85 lines (84 loc) · 2.45 KB
/
score_pretraining.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
{
"name": "score_mixed_domains",
"phase": "train", // train (train+val) or test
"path": {
"log": "logs",
"tb_logger": "tb_logger",
"results": "results/Mixed_domains",
"checkpoint": "checkpoints/Mixed_domains",
"resume_state": null
},
"datasets": {
"train": {
"name": "Mixed_domains",
"dataroot": ["../data/potsdam/train/images_256",
"../data/potsdam/test/images_256",
"../data/DeepGlobe/train/images_256",
"../data/DeepGlobe/test/images_256"],
"resolution": 256, // high resolution
"batch_size": 1,
"num_workers": 4,
"use_shuffle": true,
"data_len": -1 // -1 represents all data used in train
},
"val": {
"name": "Mixed_domains",
"resolution": 256,
"data_len": 10
}
},
"model": {
"which_model_G": "sr3", // use the ddpm or sr3 network structure
"finetune_norm": false,
"unet": {
"in_channel": 3,
"out_channel": 3,
"inner_channel": 128,
"channel_multiplier": [
1,
2,
4,
8,
8
],
"attn_res": [
16
],
"res_blocks": 2,
"dropout": 0.2
},
"beta_schedule": {
"train": {
"schedule": "cosine",
"n_timestep": 2000,
"linear_start": 1e-6,
"linear_end": 1e-2
},
"val": {
"schedule": "cosine",
"n_timestep": 2000,
"linear_start": 1e-6,
"linear_end": 1e-2
}
},
"diffusion": {
"image_size": 256,
"channels": 3, //sample channel
"loss": "l2", //options "l1" or "l2"
"conditional": false // unconditional generation or unconditional generation(super_resolution)
}
},
"train": {
"n_iter": 200000,
"val_freq": 1e4,
"save_checkpoint_freq": 1e4,
"print_freq": 100,
"optimizer": {
"type": "adamw",
"lr": 1e-5
}
},
"wandb": {
"project": "score_mixed_domains"
}
}