Veldrovive
commited on
Commit
·
367b860
1
Parent(s):
fd35d5a
Upload decoder_config.json with huggingface_hub
Browse files- decoder_config.json +102 -0
decoder_config.json
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"seed": 1,
|
3 |
+
|
4 |
+
"decoder": {
|
5 |
+
"unets": [
|
6 |
+
{
|
7 |
+
"dim": 256,
|
8 |
+
"image_embed_dim": 768,
|
9 |
+
"channels": 3,
|
10 |
+
"dim_mults": [1, 2, 3, 4]
|
11 |
+
}
|
12 |
+
],
|
13 |
+
"image_sizes": [64],
|
14 |
+
"channels": 3,
|
15 |
+
"timesteps": 1000,
|
16 |
+
"loss_type": "l2",
|
17 |
+
"beta_schedule": ["cosine"],
|
18 |
+
"learned_variance": true
|
19 |
+
},
|
20 |
+
"data": {
|
21 |
+
"webdataset_base_url": "pipe:s3cmd get s3://s-datasets/laion5b/laion2B-data/{}.tar -",
|
22 |
+
"embeddings_url": "s3://s-laion5b/embeddings/vit-l-14/laion2B-en/img_emb_reordered_tiny/",
|
23 |
+
"num_workers": 4,
|
24 |
+
"batch_size": 24,
|
25 |
+
"start_shard": 0,
|
26 |
+
"end_shard": 49,
|
27 |
+
"shard_width": 6,
|
28 |
+
"index_width": 4,
|
29 |
+
"splits": {
|
30 |
+
"train": 0.75,
|
31 |
+
"val": 0.15,
|
32 |
+
"test": 0.1
|
33 |
+
},
|
34 |
+
"shuffle_train": false,
|
35 |
+
"resample_train": true,
|
36 |
+
"preprocessing": {
|
37 |
+
"RandomResizedCrop": {
|
38 |
+
"size": [64, 64],
|
39 |
+
"scale": [0.75, 1.0],
|
40 |
+
"ratio": [1.0, 1.0]
|
41 |
+
},
|
42 |
+
"ToTensor": true
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"train": {
|
46 |
+
"epochs": 100,
|
47 |
+
"lr":5e-5,
|
48 |
+
"wd": 0.1,
|
49 |
+
"max_grad_norm": 0.5,
|
50 |
+
"save_every_n_samples": 1000,
|
51 |
+
"n_sample_images": 10,
|
52 |
+
"device": "cuda:0",
|
53 |
+
"epoch_samples": 1500,
|
54 |
+
"validation_samples": 1000,
|
55 |
+
"use_ema": true,
|
56 |
+
"ema_beta": 0.99,
|
57 |
+
"unet_training_mask": [true]
|
58 |
+
},
|
59 |
+
"evaluate": {
|
60 |
+
"n_evaluation_samples": 30,
|
61 |
+
"FID": {
|
62 |
+
"feature": 64
|
63 |
+
},
|
64 |
+
"LPIPS": {
|
65 |
+
"net_type": "vgg",
|
66 |
+
"reduction": "mean"
|
67 |
+
}
|
68 |
+
},
|
69 |
+
"tracker": {
|
70 |
+
"data_path": "/opt/dalle2_generator/test_models",
|
71 |
+
|
72 |
+
"log": {
|
73 |
+
"log_type": "console",
|
74 |
+
|
75 |
+
"wandb_entity": "veldrovive",
|
76 |
+
"wandb_project": "dalle2_train_decoder",
|
77 |
+
"wandb_run_id": "2gs6020x",
|
78 |
+
"wandb_run_name": "test",
|
79 |
+
"wandb_resume": true,
|
80 |
+
|
81 |
+
"verbose": true
|
82 |
+
},
|
83 |
+
|
84 |
+
"load": {
|
85 |
+
"load_from": "wandb",
|
86 |
+
|
87 |
+
"wandb_run_path": "veldrovive/dalle2_train_decoder/2gs6020x",
|
88 |
+
"wandb_file_path": "latest.pth"
|
89 |
+
},
|
90 |
+
|
91 |
+
"save": [{
|
92 |
+
"save_to": "huggingface",
|
93 |
+
"huggingface_repo": "Veldrovive/test_model",
|
94 |
+
|
95 |
+
"save_all": false,
|
96 |
+
"save_latest": true,
|
97 |
+
"save_best": true,
|
98 |
+
|
99 |
+
"save_type": "model"
|
100 |
+
}]
|
101 |
+
}
|
102 |
+
}
|