-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.py
53 lines (48 loc) · 994 Bytes
/
config.py
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
cifar10_cfg = {
"resolution": 32,
"in_channels": 3,
"out_ch": 3,
"ch": 128,
"ch_mult": (1,2,2,2),
"num_res_blocks": 2,
"attn_resolutions": (16,),
"dropout": 0.1,
}
lsun_cfg = {
"resolution": 256,
"in_channels": 3,
"out_ch": 3,
"ch": 128,
"ch_mult": (1,1,2,2,4,4),
"num_res_blocks": 2,
"attn_resolutions": (16,),
"dropout": 0.0,
}
celeba64_cfg = {
"resolution": 64,
"in_channels": 3,
"out_ch": 3,
"ch": 128,
"ch_mult": (1,2,2,2,4),
"num_res_blocks": 2,
"attn_resolutions": (16,),
"dropout": 0.1,
}
model_config_map = {
"cifar10": cifar10_cfg,
"lsun_bedroom": lsun_cfg,
"lsun_cat": lsun_cfg,
"lsun_church": lsun_cfg,
"celeba64": celeba64_cfg
}
diffusion_config = {
"beta_0": 0.0001,
"beta_T": 0.02,
"T": 1000,
}
model_var_type_map = {
"cifar10": "fixedlarge",
"lsun_bedroom": "fixedsmall",
"lsun_cat": "fixedsmall",
"lsun_church": "fixedsmall",
}