Veldrovive commited on
Commit
8a996ed
1 Parent(s): 4afcf3d

Upload upsampler/1024/v1.0.3/decoder_config.json with huggingface_hub

Browse files
upsampler/1024/v1.0.3/decoder_config.json ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "seed": 1,
3
+
4
+ "decoder": {
5
+ "unets": [
6
+ {
7
+ "dim": 32,
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
+ "dim": 32,
23
+ "cond_dim": 512,
24
+ "image_embed_dim": 768,
25
+ "text_embed_dim": 768,
26
+ "cond_on_text_encodings": true,
27
+ "channels": 3,
28
+ "dim_mults": [1, 2, 3, 4],
29
+ "num_resnet_blocks": 4,
30
+ "attn_heads": 8,
31
+ "attn_dim_head": 64,
32
+ "sparse_attn": true,
33
+ "memory_efficient": true,
34
+ "self_attn": [false, true, true, true]
35
+ },
36
+ {
37
+ "dim": 192,
38
+ "cond_dim": 512,
39
+ "image_embed_dim": 768,
40
+ "text_embed_dim": 768,
41
+ "cond_on_text_encodings": true,
42
+ "init_cross_embed": false,
43
+ "channels": 3,
44
+ "dim_mults": [1, 2, 3, 4],
45
+ "num_resnet_blocks": 3,
46
+ "attn_heads": 8,
47
+ "attn_dim_head": 64,
48
+ "sparse_attn": false,
49
+ "memory_efficient": true,
50
+ "self_attn": [false, false, false, false]
51
+ }
52
+ ],
53
+ "clip": {
54
+ "make": "openai",
55
+ "model": "ViT-L/14"
56
+ },
57
+ "image_sizes": [64, 256, 1024],
58
+ "random_crop_sizes": [null, null, 256],
59
+ "channels": 3,
60
+ "timesteps": 1000,
61
+ "loss_type": "l2",
62
+ "beta_schedule": ["cosine", "cosine", "cosine"],
63
+ "learned_variance": true,
64
+ "text_cond_drop_prob": 0.0,
65
+ "image_cond_drop_prob": 0.0
66
+ },
67
+ "data": {
68
+ "webdataset_base_url": "pipe:aws s3 cp --quiet s3://s-datasets/laion-high-resolution/{}.tar -",
69
+ "num_workers": 6,
70
+ "batch_size": 8,
71
+ "start_shard": 0,
72
+ "end_shard": 17535,
73
+ "shard_width": 5,
74
+ "index_width": 4,
75
+ "splits": {
76
+ "train": 0.75,
77
+ "val": 0.15,
78
+ "test": 0.1
79
+ },
80
+ "shuffle_train": false,
81
+ "resample_train": true,
82
+ "preprocessing": {
83
+ "RandomResizedCrop": {
84
+ "size": [1024, 1024],
85
+ "scale": [0.75, 1.0],
86
+ "ratio": [1.0, 1.0]
87
+ },
88
+ "ToTensor": true
89
+ }
90
+ },
91
+ "train": {
92
+ "epochs": 1000,
93
+ "lr": 1.2e-4,
94
+ "wd": 0.0,
95
+ "max_grad_norm": 0.5,
96
+ "save_every_n_samples": 5000000,
97
+ "n_sample_images": 10,
98
+ "device": "cuda:0",
99
+ "epoch_samples": 10000000,
100
+ "validation_samples": 100000,
101
+ "use_ema": true,
102
+ "ema_beta": 0.9999,
103
+ "unet_training_mask": [false, false, true]
104
+ },
105
+ "evaluate": {
106
+ "n_evaluation_samples": 10,
107
+ "FID": {
108
+ "feature": 64
109
+ },
110
+ "LPIPS": {
111
+ "net_type": "vgg",
112
+ "reduction": "mean"
113
+ }
114
+ },
115
+ "tracker": {
116
+ "data_path": "/fsx/aidan/new/multinode/experiments/decoder_1024/.tracker-data",
117
+ "overwrite_data_path": true,
118
+
119
+ "log": {
120
+ "log_type": "wandb",
121
+
122
+ "wandb_entity": "Veldrovive",
123
+ "wandb_project": "upsamplers_1024",
124
+ "wandb_resume": false,
125
+
126
+ "auto_resume": true,
127
+ "verbose": true
128
+ },
129
+
130
+ "load": {
131
+ "load_from": null,
132
+ "only_auto_resume": true,
133
+ "file_path": "/fsx/aidan/new/multinode/experiments/decoder_1024/models/checkpoints/latest.pth"
134
+ },
135
+
136
+ "save": [
137
+ {
138
+ "save_to": "huggingface",
139
+ "huggingface_repo": "laion/DALLE2-PyTorch",
140
+
141
+ "save_meta_to": "upsampler/1024/v1.0.3/",
142
+ "save_latest_to": "upsampler/1024/v1.0.3/latest.pth",
143
+
144
+ "save_type": "model"
145
+ },{
146
+ "save_to": "huggingface",
147
+ "huggingface_repo": "laion/DALLE2-PyTorch",
148
+
149
+ "save_latest_to": "upsampler/1024/v1.0.2/checkpoints/latest.pth",
150
+
151
+ "save_type": "checkpoint"
152
+ },{
153
+ "save_to": "local",
154
+ "save_latest_to": "/fsx/aidan/new/multinode/experiments/decoder_1024/models/checkpoints/latest.pth",
155
+
156
+ "save_type": "checkpoint"
157
+ }]
158
+ }
159
+ }