nousr commited on
Commit
97a3c2e
1 Parent(s): e2abf69

Upload decoder/decoder_config.json with huggingface_hub

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