bardofcodes commited on
Commit
55febf3
·
verified ·
1 Parent(s): 54dcc43

Upload PatternAnalogyTrifuser

Browse files
README.md CHANGED
@@ -2,4 +2,5 @@
2
  license: other
3
  license_name: adobe-research-license
4
  license_link: LICENSE
 
5
  ---
 
2
  license: other
3
  license_name: adobe-research-license
4
  license_link: LICENSE
5
+ library_name: diffusers
6
  ---
analogy_encoder/config.json ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AnalogyEncoder",
3
+ "_diffusers_version": "0.32.0.dev0",
4
+ "_name_or_path": "/media/aditya/OS/project_data/pattern_variations/pattern_analogies_wts/analogy_encoder",
5
+ "dino_config_dict": {
6
+ "_attn_implementation_autoset": false,
7
+ "_name_or_path": "facebook/dinov2-large",
8
+ "add_cross_attention": false,
9
+ "apply_layernorm": true,
10
+ "architectures": [
11
+ "Dinov2Model"
12
+ ],
13
+ "attention_probs_dropout_prob": 0.0,
14
+ "attn_implementation": null,
15
+ "bad_words_ids": null,
16
+ "begin_suppress_tokens": null,
17
+ "bos_token_id": null,
18
+ "chunk_size_feed_forward": 0,
19
+ "cross_attention_hidden_size": null,
20
+ "decoder_start_token_id": null,
21
+ "diversity_penalty": 0.0,
22
+ "do_sample": false,
23
+ "drop_path_rate": 0.0,
24
+ "early_stopping": false,
25
+ "encoder_no_repeat_ngram_size": 0,
26
+ "eos_token_id": null,
27
+ "exponential_decay_length_penalty": null,
28
+ "finetuning_task": null,
29
+ "forced_bos_token_id": null,
30
+ "forced_eos_token_id": null,
31
+ "hidden_act": "gelu",
32
+ "hidden_dropout_prob": 0.0,
33
+ "hidden_size": 1024,
34
+ "id2label": {
35
+ "0": "LABEL_0",
36
+ "1": "LABEL_1"
37
+ },
38
+ "image_size": 518,
39
+ "initializer_range": 0.02,
40
+ "is_decoder": false,
41
+ "is_encoder_decoder": false,
42
+ "label2id": {
43
+ "LABEL_0": 0,
44
+ "LABEL_1": 1
45
+ },
46
+ "layer_norm_eps": 1e-06,
47
+ "layerscale_value": 1.0,
48
+ "length_penalty": 1.0,
49
+ "max_length": 20,
50
+ "min_length": 0,
51
+ "mlp_ratio": 4,
52
+ "model_type": "dinov2",
53
+ "no_repeat_ngram_size": 0,
54
+ "num_attention_heads": 16,
55
+ "num_beam_groups": 1,
56
+ "num_beams": 1,
57
+ "num_channels": 3,
58
+ "num_hidden_layers": 24,
59
+ "num_return_sequences": 1,
60
+ "out_features": [
61
+ "stage24"
62
+ ],
63
+ "out_indices": [
64
+ 24
65
+ ],
66
+ "output_attentions": false,
67
+ "output_hidden_states": false,
68
+ "output_scores": false,
69
+ "pad_token_id": null,
70
+ "patch_size": 14,
71
+ "prefix": null,
72
+ "problem_type": null,
73
+ "pruned_heads": {},
74
+ "qkv_bias": true,
75
+ "remove_invalid_values": false,
76
+ "repetition_penalty": 1.0,
77
+ "reshape_hidden_states": true,
78
+ "return_dict": true,
79
+ "return_dict_in_generate": false,
80
+ "sep_token_id": null,
81
+ "stage_names": [
82
+ "stem",
83
+ "stage1",
84
+ "stage2",
85
+ "stage3",
86
+ "stage4",
87
+ "stage5",
88
+ "stage6",
89
+ "stage7",
90
+ "stage8",
91
+ "stage9",
92
+ "stage10",
93
+ "stage11",
94
+ "stage12",
95
+ "stage13",
96
+ "stage14",
97
+ "stage15",
98
+ "stage16",
99
+ "stage17",
100
+ "stage18",
101
+ "stage19",
102
+ "stage20",
103
+ "stage21",
104
+ "stage22",
105
+ "stage23",
106
+ "stage24"
107
+ ],
108
+ "suppress_tokens": null,
109
+ "task_specific_params": null,
110
+ "temperature": 1.0,
111
+ "tf_legacy_loss": false,
112
+ "tie_encoder_decoder": false,
113
+ "tie_word_embeddings": true,
114
+ "tokenizer_class": null,
115
+ "top_k": 50,
116
+ "top_p": 1.0,
117
+ "torch_dtype": "float16",
118
+ "torchscript": false,
119
+ "transformers_version": "4.47.0",
120
+ "typical_p": 1.0,
121
+ "use_bfloat16": false,
122
+ "use_swiglu_ffn": false
123
+ },
124
+ "load_pretrained": false,
125
+ "siglip_config_dict": {
126
+ "_attn_implementation_autoset": false,
127
+ "_name_or_path": "",
128
+ "add_cross_attention": false,
129
+ "architectures": null,
130
+ "attention_dropout": 0.0,
131
+ "attn_implementation": null,
132
+ "bad_words_ids": null,
133
+ "begin_suppress_tokens": null,
134
+ "bos_token_id": null,
135
+ "chunk_size_feed_forward": 0,
136
+ "cross_attention_hidden_size": null,
137
+ "decoder_start_token_id": null,
138
+ "diversity_penalty": 0.0,
139
+ "do_sample": false,
140
+ "early_stopping": false,
141
+ "encoder_no_repeat_ngram_size": 0,
142
+ "eos_token_id": null,
143
+ "exponential_decay_length_penalty": null,
144
+ "finetuning_task": null,
145
+ "forced_bos_token_id": null,
146
+ "forced_eos_token_id": null,
147
+ "hidden_act": "gelu_pytorch_tanh",
148
+ "hidden_size": 1024,
149
+ "id2label": {
150
+ "0": "LABEL_0",
151
+ "1": "LABEL_1"
152
+ },
153
+ "image_size": 256,
154
+ "intermediate_size": 4096,
155
+ "is_decoder": false,
156
+ "is_encoder_decoder": false,
157
+ "label2id": {
158
+ "LABEL_0": 0,
159
+ "LABEL_1": 1
160
+ },
161
+ "layer_norm_eps": 1e-06,
162
+ "length_penalty": 1.0,
163
+ "max_length": 20,
164
+ "min_length": 0,
165
+ "model_type": "siglip_vision_model",
166
+ "no_repeat_ngram_size": 0,
167
+ "num_attention_heads": 16,
168
+ "num_beam_groups": 1,
169
+ "num_beams": 1,
170
+ "num_channels": 3,
171
+ "num_hidden_layers": 24,
172
+ "num_return_sequences": 1,
173
+ "output_attentions": false,
174
+ "output_hidden_states": false,
175
+ "output_scores": false,
176
+ "pad_token_id": null,
177
+ "patch_size": 16,
178
+ "prefix": null,
179
+ "problem_type": null,
180
+ "pruned_heads": {},
181
+ "remove_invalid_values": false,
182
+ "repetition_penalty": 1.0,
183
+ "return_dict": true,
184
+ "return_dict_in_generate": false,
185
+ "sep_token_id": null,
186
+ "suppress_tokens": null,
187
+ "task_specific_params": null,
188
+ "temperature": 1.0,
189
+ "tf_legacy_loss": false,
190
+ "tie_encoder_decoder": false,
191
+ "tie_word_embeddings": true,
192
+ "tokenizer_class": null,
193
+ "top_k": 50,
194
+ "top_p": 1.0,
195
+ "torch_dtype": "float16",
196
+ "torchscript": false,
197
+ "transformers_version": "4.47.0",
198
+ "typical_p": 1.0,
199
+ "use_bfloat16": false
200
+ }
201
+ }
analogy_encoder/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42b4af6caf51e90dcad58db603c8eb7a154a168b6b029db6cbd4bce31f639175
3
+ size 1240763544
analogy_input_processor/config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AnalogyInputProcessor",
3
+ "_diffusers_version": "0.32.0.dev0",
4
+ "_name_or_path": "/media/aditya/OS/project_data/pattern_variations/pattern_analogies_wts/analogy_input_processor"
5
+ }
analogy_input_processor/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd8989ef31674b2f90dd547882c048f682e17b8d0c27f61c6e24099e5fbaf156
3
+ size 344
analogy_projector/config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AnalogyProjector",
3
+ "_diffusers_version": "0.32.0.dev0",
4
+ "_name_or_path": "/media/aditya/OS/project_data/pattern_variations/pattern_analogies_wts/analogy_projector"
5
+ }
analogy_projector/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:594963076614f3356183b40541aa54063eaf3c13f1ad6aa900258d8ad40dbfa6
3
+ size 18248872
model_index.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "PatternAnalogyTrifuser",
3
+ "_diffusers_version": "0.32.0.dev0",
4
+ "_name_or_path": "/media/aditya/OS/project_data/pattern_variations/pattern_analogies_wts",
5
+ "analogy_encoder": [
6
+ "pipeline",
7
+ "AnalogyEncoder"
8
+ ],
9
+ "analogy_input_processor": [
10
+ "pipeline",
11
+ "AnalogyInputProcessor"
12
+ ],
13
+ "analogy_projector": [
14
+ "pipeline",
15
+ "AnalogyProjector"
16
+ ],
17
+ "scheduler": [
18
+ "diffusers",
19
+ "DDIMScheduler"
20
+ ],
21
+ "unet": [
22
+ "diffusers",
23
+ "UNet2DConditionModel"
24
+ ],
25
+ "vae": [
26
+ "diffusers",
27
+ "AutoencoderKL"
28
+ ]
29
+ }
scheduler/scheduler_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "DDIMScheduler",
3
+ "_diffusers_version": "0.32.0.dev0",
4
+ "beta_end": 0.012,
5
+ "beta_schedule": "scaled_linear",
6
+ "beta_start": 0.00085,
7
+ "clip_sample": false,
8
+ "clip_sample_range": 1.0,
9
+ "dynamic_thresholding_ratio": 0.995,
10
+ "num_train_timesteps": 1000,
11
+ "prediction_type": "epsilon",
12
+ "rescale_betas_zero_snr": false,
13
+ "sample_max_value": 1.0,
14
+ "set_alpha_to_one": false,
15
+ "skip_prk_steps": true,
16
+ "steps_offset": 1,
17
+ "thresholding": false,
18
+ "timestep_spacing": "leading",
19
+ "trained_betas": null
20
+ }
unet/config.json ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "UNet2DConditionModel",
3
+ "_diffusers_version": "0.32.0.dev0",
4
+ "_name_or_path": "/media/aditya/OS/project_data/pattern_variations/pattern_analogies_wts/unet",
5
+ "act_fn": "silu",
6
+ "addition_embed_type": null,
7
+ "addition_embed_type_num_heads": 64,
8
+ "addition_time_embed_dim": null,
9
+ "attention_head_dim": 8,
10
+ "attention_type": "default",
11
+ "block_out_channels": [
12
+ 320,
13
+ 640,
14
+ 1280,
15
+ 1280
16
+ ],
17
+ "center_input_sample": false,
18
+ "class_embed_type": null,
19
+ "class_embeddings_concat": false,
20
+ "conv_in_kernel": 3,
21
+ "conv_out_kernel": 3,
22
+ "cross_attention_dim": 768,
23
+ "cross_attention_norm": null,
24
+ "down_block_types": [
25
+ "CrossAttnDownBlock2D",
26
+ "CrossAttnDownBlock2D",
27
+ "CrossAttnDownBlock2D",
28
+ "DownBlock2D"
29
+ ],
30
+ "downsample_padding": 1,
31
+ "dropout": 0.0,
32
+ "dual_cross_attention": false,
33
+ "encoder_hid_dim": null,
34
+ "encoder_hid_dim_type": null,
35
+ "flip_sin_to_cos": true,
36
+ "freq_shift": 0,
37
+ "in_channels": 4,
38
+ "layers_per_block": 2,
39
+ "mid_block_only_cross_attention": null,
40
+ "mid_block_scale_factor": 1,
41
+ "mid_block_type": "UNetMidBlock2DCrossAttn",
42
+ "norm_eps": 1e-05,
43
+ "norm_num_groups": 32,
44
+ "num_attention_heads": null,
45
+ "num_class_embeds": null,
46
+ "only_cross_attention": false,
47
+ "out_channels": 4,
48
+ "projection_class_embeddings_input_dim": null,
49
+ "resnet_out_scale_factor": 1.0,
50
+ "resnet_skip_time_act": false,
51
+ "resnet_time_scale_shift": "default",
52
+ "reverse_transformer_layers_per_block": null,
53
+ "sample_size": 64,
54
+ "time_cond_proj_dim": null,
55
+ "time_embedding_act_fn": null,
56
+ "time_embedding_dim": null,
57
+ "time_embedding_type": "positional",
58
+ "timestep_post_act": null,
59
+ "transformer_layers_per_block": 1,
60
+ "up_block_types": [
61
+ "UpBlock2D",
62
+ "CrossAttnUpBlock2D",
63
+ "CrossAttnUpBlock2D",
64
+ "CrossAttnUpBlock2D"
65
+ ],
66
+ "upcast_attention": false,
67
+ "use_linear_projection": false
68
+ }
unet/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88bcc5e545bc5a0f6a552e8df5ea96370fc2e3d72c4e80c0897151aa235b2f3a
3
+ size 1719125304
vae/config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKL",
3
+ "_diffusers_version": "0.32.0.dev0",
4
+ "_name_or_path": "/media/aditya/OS/project_data/pattern_variations/pattern_analogies_wts/vae",
5
+ "act_fn": "silu",
6
+ "block_out_channels": [
7
+ 128,
8
+ 256,
9
+ 512,
10
+ 512
11
+ ],
12
+ "down_block_types": [
13
+ "DownEncoderBlock2D",
14
+ "DownEncoderBlock2D",
15
+ "DownEncoderBlock2D",
16
+ "DownEncoderBlock2D"
17
+ ],
18
+ "force_upcast": true,
19
+ "in_channels": 3,
20
+ "latent_channels": 4,
21
+ "latents_mean": null,
22
+ "latents_std": null,
23
+ "layers_per_block": 2,
24
+ "mid_block_add_attention": true,
25
+ "norm_num_groups": 32,
26
+ "out_channels": 3,
27
+ "sample_size": 256,
28
+ "scaling_factor": 0.18215,
29
+ "shift_factor": null,
30
+ "up_block_types": [
31
+ "UpDecoderBlock2D",
32
+ "UpDecoderBlock2D",
33
+ "UpDecoderBlock2D",
34
+ "UpDecoderBlock2D"
35
+ ],
36
+ "use_post_quant_conv": true,
37
+ "use_quant_conv": true
38
+ }
vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fbcf0ebe55a0984f5a5e00d8c4521d52359af7229bb4d81890039d2aa16dd7c
3
+ size 167335342