Upload decoder/laion_august/decoder_config.json with huggingface_hub
Browse files
decoder/laion_august/decoder_config.json
ADDED
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"seed": 1,
|
3 |
+
|
4 |
+
"decoder": {
|
5 |
+
"unets": [
|
6 |
+
{
|
7 |
+
"dim": 320,
|
8 |
+
"cond_dim": 512,
|
9 |
+
"image_embed_dim": 768,
|
10 |
+
"text_embed_dim": 768,
|
11 |
+
"cond_on_text_encodings": true,
|
12 |
+
"channels": 3,
|
13 |
+
"dim_mults": [1, 2, 3, 4],
|
14 |
+
"num_resnet_blocks": 4,
|
15 |
+
"attn_heads": 8,
|
16 |
+
"attn_dim_head": 64,
|
17 |
+
"sparse_attn": true,
|
18 |
+
"memory_efficient": true,
|
19 |
+
"self_attn": [false, true, true, true]
|
20 |
+
}
|
21 |
+
],
|
22 |
+
"clip": {
|
23 |
+
"make": "openai",
|
24 |
+
"model": "ViT-L/14"
|
25 |
+
},
|
26 |
+
"image_sizes": [64],
|
27 |
+
"channels": 3,
|
28 |
+
"timesteps": 1000,
|
29 |
+
"sample_timesteps": 250,
|
30 |
+
"loss_type": "l2",
|
31 |
+
"beta_schedule": ["cosine"],
|
32 |
+
"learned_variance": true
|
33 |
+
},
|
34 |
+
"data": {
|
35 |
+
"webdataset_base_url": "pipe:aws s3 cp --quiet s3://s-datasets/laion5b/laion2B-data/{}.tar -",
|
36 |
+
"num_workers": 12,
|
37 |
+
"batch_size": 26,
|
38 |
+
"start_shard": 0,
|
39 |
+
"end_shard": 231349,
|
40 |
+
"shard_width": 6,
|
41 |
+
"index_width": 4,
|
42 |
+
"splits": {
|
43 |
+
"train": 0.75,
|
44 |
+
"val": 0.15,
|
45 |
+
"test": 0.1
|
46 |
+
},
|
47 |
+
"shuffle_train": false,
|
48 |
+
"resample_train": true,
|
49 |
+
"preprocessing": {
|
50 |
+
"RandomResizedCrop": {
|
51 |
+
"size": [224, 224],
|
52 |
+
"scale": [0.75, 1.0],
|
53 |
+
"ratio": [1.0, 1.0]
|
54 |
+
},
|
55 |
+
"ToTensor": true
|
56 |
+
}
|
57 |
+
},
|
58 |
+
"train": {
|
59 |
+
"epochs": 1000,
|
60 |
+
"lr": 1e-4,
|
61 |
+
"wd": 0.01,
|
62 |
+
"max_grad_norm": 0.5,
|
63 |
+
"save_every_n_samples": 5000000,
|
64 |
+
"n_sample_images": 10,
|
65 |
+
"device": "cuda:0",
|
66 |
+
"epoch_samples": 10000000,
|
67 |
+
"validation_samples": 100000,
|
68 |
+
"use_ema": true,
|
69 |
+
"ema_beta": 0.99,
|
70 |
+
"save_all": false,
|
71 |
+
"save_latest": true,
|
72 |
+
"save_best": true,
|
73 |
+
"unet_training_mask": [true]
|
74 |
+
},
|
75 |
+
"evaluate": {
|
76 |
+
"n_evaluation_samples": 30,
|
77 |
+
"FID": {
|
78 |
+
"feature": 64
|
79 |
+
},
|
80 |
+
"LPIPS": {
|
81 |
+
"net_type": "vgg",
|
82 |
+
"reduction": "mean"
|
83 |
+
}
|
84 |
+
},
|
85 |
+
"tracker": {
|
86 |
+
"data_path": "/fsx/dalle2/.tracker-laion-august",
|
87 |
+
"overwrite_data_path": true,
|
88 |
+
|
89 |
+
"log": {
|
90 |
+
"log_type": "wandb",
|
91 |
+
|
92 |
+
"auto_resume": true,
|
93 |
+
"wandb_entity": "rom1504",
|
94 |
+
"wandb_project": "dalle2_train_decoder",
|
95 |
+
"wandb_resume": false,
|
96 |
+
|
97 |
+
"verbose": true
|
98 |
+
},
|
99 |
+
|
100 |
+
"load": {
|
101 |
+
"load_from": null
|
102 |
+
},
|
103 |
+
|
104 |
+
"save": [
|
105 |
+
{
|
106 |
+
"save_to": "huggingface",
|
107 |
+
"huggingface_repo": "laion/DALLE2-PyTorch",
|
108 |
+
"save_meta_to": "decoder/laion_august/",
|
109 |
+
|
110 |
+
"save_latest_to": "decoder/laion_august/latest.pth",
|
111 |
+
"save_type": "model",
|
112 |
+
"save_latest": true
|
113 |
+
},
|
114 |
+
{
|
115 |
+
"save_to": "huggingface",
|
116 |
+
"huggingface_repo": "laion/DALLE2-PyTorch",
|
117 |
+
"save_latest": true,
|
118 |
+
"save_latest_to": "decoder/laion_august/checkpoints/latest.pth",
|
119 |
+
"save_type": "checkpoint"
|
120 |
+
}
|
121 |
+
]
|
122 |
+
}
|
123 |
+
}
|
124 |
+
|