-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodel_config.yml
68 lines (56 loc) · 1.17 KB
/
model_config.yml
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
img_size: 32
data_path: "./data3"
CLIP:
batch_size: 256
epochs: 23
lr: 3.0e-4
embed_dim: 256
# Image encoder
vision_layers: [1, 2, 2, 2]
vision_width: 32
vision_patch_size: null
# Text encoder
context_length: 33
vocab_size: 49408
transformer_width: 64
transformer_heads: 16
transformer_layers: 8
model_path: "./models/clip4.pth"
Decoder:
# Define hyperparameters
diffusion_timesteps: 300
noise_schedule: "cosine"
batch_size: 64
epochs: 1500
lr: 0.001
# grad_clip: 0.005
grad_clip: null
null_text_emb_rate: 0.5
null_clip_emb_rate: 0.1
guidance_scale: 3
# UNet
down_channels: [64, 128, 256]
time_emb_dim: 32
# UNet Transformer
n_vocab: 49408
context_length: 33
transformer_width: 64
transformer_layers: 6
transformer_heads: 8
# UNet attention block
qkv_heads: 8
normalize_clip_embeddings: True
model_path: "./models/decoder4_cosine_ori.pth"
Prior:
# Define hyperparameters
diffusion_timesteps: 200
noise_schedule: "cosine"
batch_size: 256
epochs: 100
lr: 0.01
normalize_clip_embeddings: True
xf_layers: 8
# dim_per_head: 64
xf_heads: 16
# ff_mult: 4
model_path: "./models/prior4_cosine.pth"