Upload 14 files
Browse files- .gitattributes +1 -0
- model_index.json +28 -0
- scheduler/scheduler_config.json +16 -0
- text_encoder/config.json +12 -0
- text_encoder/pytorch_model.bin +3 -0
- text_proj/config.json +9 -0
- text_proj/diffusion_pytorch_model.bin +3 -0
- tokenizer/sentencepiece.bpe.model +3 -0
- tokenizer/special_tokens_map.json +15 -0
- tokenizer/tokenizer.json +3 -0
- tokenizer/tokenizer_config.json +19 -0
- unet/config.json +60 -0
- unet/diffusion_pytorch_model.bin +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
multiclip_tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
multiclip_tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
model_index.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "KandinskyPipeline",
|
3 |
+
"_diffusers_version": "0.17.0.dev0",
|
4 |
+
"text_encoder": [
|
5 |
+
"kandinsky",
|
6 |
+
"MultilingualCLIP"
|
7 |
+
],
|
8 |
+
"tokenizer": [
|
9 |
+
"transformers",
|
10 |
+
"XLMRobertaTokenizerFast"
|
11 |
+
],
|
12 |
+
"scheduler": [
|
13 |
+
"diffusers",
|
14 |
+
"UnCLIPScheduler"
|
15 |
+
],
|
16 |
+
"unet": [
|
17 |
+
"diffusers",
|
18 |
+
"UNet2DConditionModel"
|
19 |
+
],
|
20 |
+
"text_proj": [
|
21 |
+
"kandinsky",
|
22 |
+
"KandinskyTextProjModel"
|
23 |
+
],
|
24 |
+
"decoder": [
|
25 |
+
"diffusers",
|
26 |
+
"VQModel"
|
27 |
+
]
|
28 |
+
}
|
scheduler/scheduler_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "UnCLIPScheduler",
|
3 |
+
"_diffusers_version": "0.17.0.dev0",
|
4 |
+
"clip_sample": true,
|
5 |
+
"clip_sample_range": 2.0,
|
6 |
+
"sample_min_value": 1.0,
|
7 |
+
"sample_max_value": null,
|
8 |
+
"num_train_timesteps": 1000,
|
9 |
+
"prediction_type": "epsilon",
|
10 |
+
"variance_type": "learned_range",
|
11 |
+
"thresholding": true,
|
12 |
+
"beta_schedule": "linear",
|
13 |
+
"beta_start": 0.00085,
|
14 |
+
"beta_end":0.012
|
15 |
+
|
16 |
+
}
|
text_encoder/config.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "M-CLIP/XLM-Roberta-Large-Vit-L-14",
|
3 |
+
"architectures": [
|
4 |
+
"MultilingualCLIP"
|
5 |
+
],
|
6 |
+
"modelBase": "xlm-roberta-large",
|
7 |
+
"model_type": "M-CLIP",
|
8 |
+
"numDims": 768,
|
9 |
+
"torch_dtype": "float32",
|
10 |
+
"transformerDimensions": 1024,
|
11 |
+
"transformers_version": "4.28.1"
|
12 |
+
}
|
text_encoder/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:152bab8bc5813ec882ec634c7301978a0ef29340d4c17b3ae77b6468e017dfbe
|
3 |
+
size 2242843757
|
text_proj/config.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "KandinskyTextProjModel",
|
3 |
+
"_diffusers_version": "0.17.0.dev0",
|
4 |
+
"clip_embeddings_dim": 768,
|
5 |
+
"clip_extra_context_tokens": 10,
|
6 |
+
"clip_text_encoder_hidden_states_dim": 1024,
|
7 |
+
"cross_attention_dim": 768,
|
8 |
+
"time_embed_dim": 1536
|
9 |
+
}
|
text_proj/diffusion_pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a354d1a2b48e060baa48cac814d800540683392a88f3f39b884605e72feb1bcb
|
3 |
+
size 36237255
|
tokenizer/sentencepiece.bpe.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
|
3 |
+
size 5069051
|
tokenizer/special_tokens_map.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
tokenizer/tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:11f3aa31ab2b0fa69e0e7f941f6badc4efd31066fb5221669ba55c48f5e6752a
|
3 |
+
size 18082828
|
tokenizer/tokenizer_config.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"clean_up_tokenization_spaces": true,
|
4 |
+
"cls_token": "<s>",
|
5 |
+
"eos_token": "</s>",
|
6 |
+
"mask_token": {
|
7 |
+
"__type": "AddedToken",
|
8 |
+
"content": "<mask>",
|
9 |
+
"lstrip": true,
|
10 |
+
"normalized": true,
|
11 |
+
"rstrip": false,
|
12 |
+
"single_word": false
|
13 |
+
},
|
14 |
+
"model_max_length": 512,
|
15 |
+
"pad_token": "<pad>",
|
16 |
+
"sep_token": "</s>",
|
17 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
18 |
+
"unk_token": "<unk>"
|
19 |
+
}
|
unet/config.json
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "UNet2DConditionModel",
|
3 |
+
"_diffusers_version": "0.17.0.dev0",
|
4 |
+
"act_fn": "silu",
|
5 |
+
"addition_embed_type": null,
|
6 |
+
"addition_embed_type_num_heads": 64,
|
7 |
+
"attention_head_dim": 64,
|
8 |
+
"block_out_channels": [
|
9 |
+
384,
|
10 |
+
768,
|
11 |
+
1152,
|
12 |
+
1536
|
13 |
+
],
|
14 |
+
"center_input_sample": false,
|
15 |
+
"class_embed_type": "identity",
|
16 |
+
"class_embeddings_concat": false,
|
17 |
+
"conv_in_kernel": 3,
|
18 |
+
"conv_out_kernel": 3,
|
19 |
+
"cross_attention_dim": 768,
|
20 |
+
"cross_attention_norm": null,
|
21 |
+
"down_block_types": [
|
22 |
+
"ResnetDownsampleBlock2D",
|
23 |
+
"SimpleCrossAttnDownBlock2D",
|
24 |
+
"SimpleCrossAttnDownBlock2D",
|
25 |
+
"SimpleCrossAttnDownBlock2D"
|
26 |
+
],
|
27 |
+
"downsample_padding": 1,
|
28 |
+
"dual_cross_attention": false,
|
29 |
+
"encoder_hid_dim": null,
|
30 |
+
"flip_sin_to_cos": true,
|
31 |
+
"freq_shift": 0,
|
32 |
+
"in_channels": 4,
|
33 |
+
"layers_per_block": 3,
|
34 |
+
"mid_block_only_cross_attention": null,
|
35 |
+
"mid_block_scale_factor": 1,
|
36 |
+
"mid_block_type": "UNetMidBlock2DSimpleCrossAttn",
|
37 |
+
"norm_eps": 1e-05,
|
38 |
+
"norm_num_groups": 32,
|
39 |
+
"num_class_embeds": null,
|
40 |
+
"only_cross_attention": false,
|
41 |
+
"out_channels": 8,
|
42 |
+
"projection_class_embeddings_input_dim": null,
|
43 |
+
"resnet_out_scale_factor": 1.0,
|
44 |
+
"resnet_skip_time_act": false,
|
45 |
+
"resnet_time_scale_shift": "scale_shift",
|
46 |
+
"sample_size": 64,
|
47 |
+
"time_cond_proj_dim": null,
|
48 |
+
"time_embedding_act_fn": null,
|
49 |
+
"time_embedding_dim": null,
|
50 |
+
"time_embedding_type": "positional",
|
51 |
+
"timestep_post_act": null,
|
52 |
+
"up_block_types": [
|
53 |
+
"SimpleCrossAttnUpBlock2D",
|
54 |
+
"SimpleCrossAttnUpBlock2D",
|
55 |
+
"SimpleCrossAttnUpBlock2D",
|
56 |
+
"ResnetUpsampleBlock2D"
|
57 |
+
],
|
58 |
+
"upcast_attention": false,
|
59 |
+
"use_linear_projection": false
|
60 |
+
}
|
unet/diffusion_pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:26d7beb3feb041844df83c080c195bd45f2b6d7d992a6cbd0efbcd4aefadc696
|
3 |
+
size 4878670709
|