Add img2img model
Browse files- .gitattributes +1 -0
- model_index.json +28 -0
- movq/config.json +34 -0
- movq/diffusion_pytorch_model.bin +3 -0
- scheduler/scheduler_config.json +16 -0
- text_encoder/config.json +30 -0
- text_encoder/pytorch_model.bin +3 -0
- text_proj/config.json +10 -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 +61 -0
- unet/diffusion_pytorch_model.bin +3 -0
.gitattributes
CHANGED
@@ -32,3 +32,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip 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
|
|
|
|
32 |
*.zip 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 |
+
tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
model_index.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "KandinskyImg2ImgPipeline",
|
3 |
+
"_diffusers_version": "0.17.0.dev0",
|
4 |
+
"movq": [
|
5 |
+
"diffusers",
|
6 |
+
"VQModel"
|
7 |
+
],
|
8 |
+
"scheduler": [
|
9 |
+
"diffusers",
|
10 |
+
"DDPMScheduler"
|
11 |
+
],
|
12 |
+
"text_encoder": [
|
13 |
+
"kandinsky",
|
14 |
+
"MultilingualCLIP"
|
15 |
+
],
|
16 |
+
"text_proj": [
|
17 |
+
"kandinsky",
|
18 |
+
"KandinskyTextProjModel"
|
19 |
+
],
|
20 |
+
"tokenizer": [
|
21 |
+
"transformers",
|
22 |
+
"XLMRobertaTokenizerFast"
|
23 |
+
],
|
24 |
+
"unet": [
|
25 |
+
"diffusers",
|
26 |
+
"UNet2DConditionModel"
|
27 |
+
]
|
28 |
+
}
|
movq/config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "VQModel",
|
3 |
+
"_diffusers_version": "0.17.0.dev0",
|
4 |
+
"_name_or_path": "E:\\Kandinksy\\models--YiYiXu--Kandinsky\\snapshots\\c040bbdee2e718caa2c94566b36c8e34413f9f77\\movq",
|
5 |
+
"act_fn": "silu",
|
6 |
+
"block_out_channels": [
|
7 |
+
128,
|
8 |
+
256,
|
9 |
+
256,
|
10 |
+
512
|
11 |
+
],
|
12 |
+
"down_block_types": [
|
13 |
+
"DownEncoderBlock2D",
|
14 |
+
"DownEncoderBlock2D",
|
15 |
+
"DownEncoderBlock2D",
|
16 |
+
"AttnDownEncoderBlock2D"
|
17 |
+
],
|
18 |
+
"in_channels": 3,
|
19 |
+
"latent_channels": 4,
|
20 |
+
"layers_per_block": 2,
|
21 |
+
"norm_num_groups": 32,
|
22 |
+
"norm_type": "spatial",
|
23 |
+
"num_vq_embeddings": 16384,
|
24 |
+
"out_channels": 3,
|
25 |
+
"sample_size": 32,
|
26 |
+
"scaling_factor": 0.18215,
|
27 |
+
"up_block_types": [
|
28 |
+
"AttnUpDecoderBlock2D",
|
29 |
+
"UpDecoderBlock2D",
|
30 |
+
"UpDecoderBlock2D",
|
31 |
+
"UpDecoderBlock2D"
|
32 |
+
],
|
33 |
+
"vq_embed_dim": 4
|
34 |
+
}
|
movq/diffusion_pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8ce923fc147d30510b4625a70f66b534602b7311a74405778a96efeceedf5212
|
3 |
+
size 271499699
|
scheduler/scheduler_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "DDPMScheduler",
|
3 |
+
"_diffusers_version": "0.17.0.dev0",
|
4 |
+
"beta_end": 0.012,
|
5 |
+
"beta_schedule": "linear",
|
6 |
+
"beta_start": 0.00085,
|
7 |
+
"clip_sample": true,
|
8 |
+
"clip_sample_range": 2.0,
|
9 |
+
"dynamic_thresholding_ratio": 0.995,
|
10 |
+
"num_train_timesteps": 1000,
|
11 |
+
"prediction_type": "epsilon",
|
12 |
+
"sample_max_value": null,
|
13 |
+
"thresholding": true,
|
14 |
+
"trained_betas": null,
|
15 |
+
"variance_type": "learned_range"
|
16 |
+
}
|
text_encoder/config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "E:\\Kandinksy\\models--YiYiXu--Kandinsky\\snapshots\\c040bbdee2e718caa2c94566b36c8e34413f9f77\\text_encoder",
|
3 |
+
"architectures": [
|
4 |
+
"MultilingualCLIP"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 1024,
|
13 |
+
"initializer_range": 0.02,
|
14 |
+
"intermediate_size": 4096,
|
15 |
+
"layer_norm_eps": 1e-05,
|
16 |
+
"max_position_embeddings": 514,
|
17 |
+
"model_type": "M-CLIP",
|
18 |
+
"numDims": 768,
|
19 |
+
"num_attention_heads": 16,
|
20 |
+
"num_hidden_layers": 24,
|
21 |
+
"output_past": true,
|
22 |
+
"pad_token_id": 1,
|
23 |
+
"position_embedding_type": "absolute",
|
24 |
+
"torch_dtype": "float32",
|
25 |
+
"transformerDimensions": 1024,
|
26 |
+
"transformers_version": "4.29.1",
|
27 |
+
"type_vocab_size": 1,
|
28 |
+
"use_cache": true,
|
29 |
+
"vocab_size": 250002
|
30 |
+
}
|
text_encoder/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:91eecf22fea2a52a3e86ec3ea25f6f6b766a7c979e0456623d1126609842f7f6
|
3 |
+
size 2242846645
|
text_proj/config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "KandinskyTextProjModel",
|
3 |
+
"_diffusers_version": "0.17.0.dev0",
|
4 |
+
"_name_or_path": "E:\\Kandinksy\\models--YiYiXu--Kandinsky\\snapshots\\c040bbdee2e718caa2c94566b36c8e34413f9f77\\text_proj",
|
5 |
+
"clip_embeddings_dim": 768,
|
6 |
+
"clip_extra_context_tokens": 10,
|
7 |
+
"clip_text_encoder_hidden_states_dim": 1024,
|
8 |
+
"cross_attention_dim": 768,
|
9 |
+
"time_embed_dim": 1536
|
10 |
+
}
|
text_proj/diffusion_pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:90f67079bad6df9b6f1b697e7ddbfa2f629d980b2569063732e2ec30f453431d
|
3 |
+
size 36238087
|
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:62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626
|
3 |
+
size 17082660
|
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,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "UNet2DConditionModel",
|
3 |
+
"_diffusers_version": "0.17.0.dev0",
|
4 |
+
"_name_or_path": "E:\\Kandinksy\\models--YiYiXu--Kandinsky\\snapshots\\c040bbdee2e718caa2c94566b36c8e34413f9f77\\unet",
|
5 |
+
"act_fn": "silu",
|
6 |
+
"addition_embed_type": null,
|
7 |
+
"addition_embed_type_num_heads": 64,
|
8 |
+
"attention_head_dim": 64,
|
9 |
+
"block_out_channels": [
|
10 |
+
384,
|
11 |
+
768,
|
12 |
+
1152,
|
13 |
+
1536
|
14 |
+
],
|
15 |
+
"center_input_sample": false,
|
16 |
+
"class_embed_type": "identity",
|
17 |
+
"class_embeddings_concat": false,
|
18 |
+
"conv_in_kernel": 3,
|
19 |
+
"conv_out_kernel": 3,
|
20 |
+
"cross_attention_dim": 768,
|
21 |
+
"cross_attention_norm": null,
|
22 |
+
"down_block_types": [
|
23 |
+
"ResnetDownsampleBlock2D",
|
24 |
+
"SimpleCrossAttnDownBlock2D",
|
25 |
+
"SimpleCrossAttnDownBlock2D",
|
26 |
+
"SimpleCrossAttnDownBlock2D"
|
27 |
+
],
|
28 |
+
"downsample_padding": 1,
|
29 |
+
"dual_cross_attention": false,
|
30 |
+
"encoder_hid_dim": null,
|
31 |
+
"flip_sin_to_cos": true,
|
32 |
+
"freq_shift": 0,
|
33 |
+
"in_channels": 4,
|
34 |
+
"layers_per_block": 3,
|
35 |
+
"mid_block_only_cross_attention": null,
|
36 |
+
"mid_block_scale_factor": 1,
|
37 |
+
"mid_block_type": "UNetMidBlock2DSimpleCrossAttn",
|
38 |
+
"norm_eps": 1e-05,
|
39 |
+
"norm_num_groups": 32,
|
40 |
+
"num_class_embeds": null,
|
41 |
+
"only_cross_attention": false,
|
42 |
+
"out_channels": 8,
|
43 |
+
"projection_class_embeddings_input_dim": null,
|
44 |
+
"resnet_out_scale_factor": 1.0,
|
45 |
+
"resnet_skip_time_act": false,
|
46 |
+
"resnet_time_scale_shift": "scale_shift",
|
47 |
+
"sample_size": 64,
|
48 |
+
"time_cond_proj_dim": null,
|
49 |
+
"time_embedding_act_fn": null,
|
50 |
+
"time_embedding_dim": null,
|
51 |
+
"time_embedding_type": "positional",
|
52 |
+
"timestep_post_act": null,
|
53 |
+
"up_block_types": [
|
54 |
+
"SimpleCrossAttnUpBlock2D",
|
55 |
+
"SimpleCrossAttnUpBlock2D",
|
56 |
+
"SimpleCrossAttnUpBlock2D",
|
57 |
+
"ResnetUpsampleBlock2D"
|
58 |
+
],
|
59 |
+
"upcast_attention": false,
|
60 |
+
"use_linear_projection": false
|
61 |
+
}
|
unet/diffusion_pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:41c11f4bfbfc86b78546a9b397b556dd242c59fd07bb51ea876bcc9a574114db
|
3 |
+
size 4878682709
|