kitsuwaifune
commited on
Commit
•
78ad390
1
Parent(s):
845609e
Adding `diffusers` weights of this model
Browse filesThis PR adds fp32 and fp16 weights in PyTorch and safetensors format to stabilityai/stable-diffusion-2-1
- model_index.json +4 -4
- scheduler/scheduler_config.json +12 -4
- text_encoder/config.json +3 -3
- text_encoder/model.fp16.safetensors +3 -0
- text_encoder/model.safetensors +2 -2
- text_encoder/pytorch_model.bin +2 -2
- text_encoder/pytorch_model.fp16.bin +3 -0
- tokenizer/tokenizer_config.json +1 -2
- unet/config.json +22 -3
- unet/diffusion_pytorch_model.bin +1 -1
- unet/diffusion_pytorch_model.fp16.bin +3 -0
- unet/diffusion_pytorch_model.fp16.safetensors +3 -0
- unet/diffusion_pytorch_model.safetensors +2 -2
- vae/config.json +2 -2
- vae/diffusion_pytorch_model.bin +2 -2
- vae/diffusion_pytorch_model.fp16.bin +3 -0
- vae/diffusion_pytorch_model.fp16.safetensors +3 -0
model_index.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
{
|
2 |
"_class_name": "StableDiffusionPipeline",
|
3 |
-
"_diffusers_version": "0.
|
4 |
"feature_extractor": [
|
5 |
-
|
6 |
-
|
7 |
],
|
8 |
"requires_safety_checker": false,
|
9 |
"safety_checker": [
|
@@ -12,7 +12,7 @@
|
|
12 |
],
|
13 |
"scheduler": [
|
14 |
"diffusers",
|
15 |
-
"
|
16 |
],
|
17 |
"text_encoder": [
|
18 |
"transformers",
|
|
|
1 |
{
|
2 |
"_class_name": "StableDiffusionPipeline",
|
3 |
+
"_diffusers_version": "0.17.0.dev0",
|
4 |
"feature_extractor": [
|
5 |
+
null,
|
6 |
+
null
|
7 |
],
|
8 |
"requires_safety_checker": false,
|
9 |
"safety_checker": [
|
|
|
12 |
],
|
13 |
"scheduler": [
|
14 |
"diffusers",
|
15 |
+
"DPMSolverMultistepScheduler"
|
16 |
],
|
17 |
"text_encoder": [
|
18 |
"transformers",
|
scheduler/scheduler_config.json
CHANGED
@@ -1,14 +1,22 @@
|
|
1 |
{
|
2 |
-
"_class_name": "
|
3 |
-
"_diffusers_version": "0.
|
|
|
4 |
"beta_end": 0.012,
|
5 |
"beta_schedule": "scaled_linear",
|
6 |
"beta_start": 0.00085,
|
7 |
"clip_sample": false,
|
|
|
|
|
|
|
8 |
"num_train_timesteps": 1000,
|
9 |
"prediction_type": "v_prediction",
|
|
|
10 |
"set_alpha_to_one": false,
|
11 |
-
"
|
|
|
12 |
"steps_offset": 1,
|
13 |
-
"
|
|
|
|
|
14 |
}
|
|
|
1 |
{
|
2 |
+
"_class_name": "DPMSolverMultistepScheduler",
|
3 |
+
"_diffusers_version": "0.17.0.dev0",
|
4 |
+
"algorithm_type": "dpmsolver++",
|
5 |
"beta_end": 0.012,
|
6 |
"beta_schedule": "scaled_linear",
|
7 |
"beta_start": 0.00085,
|
8 |
"clip_sample": false,
|
9 |
+
"clip_sample_range": 1.0,
|
10 |
+
"dynamic_thresholding_ratio": 0.995,
|
11 |
+
"lower_order_final": true,
|
12 |
"num_train_timesteps": 1000,
|
13 |
"prediction_type": "v_prediction",
|
14 |
+
"sample_max_value": 1.0,
|
15 |
"set_alpha_to_one": false,
|
16 |
+
"solver_order": 2,
|
17 |
+
"solver_type": "midpoint",
|
18 |
"steps_offset": 1,
|
19 |
+
"thresholding": false,
|
20 |
+
"trained_betas": null,
|
21 |
+
"use_karras_sigmas": false
|
22 |
}
|
text_encoder/config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
"CLIPTextModel"
|
5 |
],
|
@@ -19,7 +19,7 @@
|
|
19 |
"num_hidden_layers": 23,
|
20 |
"pad_token_id": 1,
|
21 |
"projection_dim": 512,
|
22 |
-
"torch_dtype": "
|
23 |
-
"transformers_version": "4.
|
24 |
"vocab_size": 49408
|
25 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "stabilityai/stable-diffusion-2",
|
3 |
"architectures": [
|
4 |
"CLIPTextModel"
|
5 |
],
|
|
|
19 |
"num_hidden_layers": 23,
|
20 |
"pad_token_id": 1,
|
21 |
"projection_dim": 512,
|
22 |
+
"torch_dtype": "float16",
|
23 |
+
"transformers_version": "4.28.1",
|
24 |
"vocab_size": 49408
|
25 |
}
|
text_encoder/model.fp16.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:681c555376658c81dc273f2d737a2aeb23ddb6d1d8e5b3a7064636d359a22668
|
3 |
+
size 680821096
|
text_encoder/model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1e4aa519f64dc6386f88221a66c106a09fa027b47a20cc0e126687695f2a6669
|
3 |
+
size 1361597016
|
text_encoder/pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2188379b05015f531d61503e714234d00a64939792f3098b324e516547f0194f
|
3 |
+
size 1361674657
|
text_encoder/pytorch_model.fp16.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7bb11b1da63986aaaaefb5ef2100d34109c024ac640cacd9ed697150c1c57f01
|
3 |
+
size 680900852
|
tokenizer/tokenizer_config.json
CHANGED
@@ -8,6 +8,7 @@
|
|
8 |
"rstrip": false,
|
9 |
"single_word": false
|
10 |
},
|
|
|
11 |
"do_lower_case": true,
|
12 |
"eos_token": {
|
13 |
"__type": "AddedToken",
|
@@ -19,9 +20,7 @@
|
|
19 |
},
|
20 |
"errors": "replace",
|
21 |
"model_max_length": 77,
|
22 |
-
"name_or_path": "hf-models/stable-diffusion-v2-768x768/tokenizer",
|
23 |
"pad_token": "<|endoftext|>",
|
24 |
-
"special_tokens_map_file": "./special_tokens_map.json",
|
25 |
"tokenizer_class": "CLIPTokenizer",
|
26 |
"unk_token": {
|
27 |
"__type": "AddedToken",
|
|
|
8 |
"rstrip": false,
|
9 |
"single_word": false
|
10 |
},
|
11 |
+
"clean_up_tokenization_spaces": true,
|
12 |
"do_lower_case": true,
|
13 |
"eos_token": {
|
14 |
"__type": "AddedToken",
|
|
|
20 |
},
|
21 |
"errors": "replace",
|
22 |
"model_max_length": 77,
|
|
|
23 |
"pad_token": "<|endoftext|>",
|
|
|
24 |
"tokenizer_class": "CLIPTokenizer",
|
25 |
"unk_token": {
|
26 |
"__type": "AddedToken",
|
unet/config.json
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
{
|
2 |
"_class_name": "UNet2DConditionModel",
|
3 |
-
"_diffusers_version": "0.
|
4 |
"act_fn": "silu",
|
|
|
|
|
5 |
"attention_head_dim": [
|
6 |
5,
|
7 |
10,
|
@@ -15,7 +17,12 @@
|
|
15 |
1280
|
16 |
],
|
17 |
"center_input_sample": false,
|
|
|
|
|
|
|
|
|
18 |
"cross_attention_dim": 1024,
|
|
|
19 |
"down_block_types": [
|
20 |
"CrossAttnDownBlock2D",
|
21 |
"CrossAttnDownBlock2D",
|
@@ -24,23 +31,35 @@
|
|
24 |
],
|
25 |
"downsample_padding": 1,
|
26 |
"dual_cross_attention": false,
|
|
|
27 |
"flip_sin_to_cos": true,
|
28 |
"freq_shift": 0,
|
29 |
"in_channels": 4,
|
30 |
"layers_per_block": 2,
|
|
|
31 |
"mid_block_scale_factor": 1,
|
|
|
32 |
"norm_eps": 1e-05,
|
33 |
"norm_num_groups": 32,
|
34 |
"num_class_embeds": null,
|
35 |
"only_cross_attention": false,
|
36 |
"out_channels": 4,
|
|
|
|
|
|
|
|
|
37 |
"sample_size": 96,
|
|
|
|
|
|
|
|
|
|
|
38 |
"up_block_types": [
|
39 |
"UpBlock2D",
|
40 |
"CrossAttnUpBlock2D",
|
41 |
"CrossAttnUpBlock2D",
|
42 |
"CrossAttnUpBlock2D"
|
43 |
],
|
44 |
-
"
|
45 |
-
"
|
46 |
}
|
|
|
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": [
|
8 |
5,
|
9 |
10,
|
|
|
17 |
1280
|
18 |
],
|
19 |
"center_input_sample": false,
|
20 |
+
"class_embed_type": null,
|
21 |
+
"class_embeddings_concat": false,
|
22 |
+
"conv_in_kernel": 3,
|
23 |
+
"conv_out_kernel": 3,
|
24 |
"cross_attention_dim": 1024,
|
25 |
+
"cross_attention_norm": null,
|
26 |
"down_block_types": [
|
27 |
"CrossAttnDownBlock2D",
|
28 |
"CrossAttnDownBlock2D",
|
|
|
31 |
],
|
32 |
"downsample_padding": 1,
|
33 |
"dual_cross_attention": false,
|
34 |
+
"encoder_hid_dim": 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_class_embeds": null,
|
45 |
"only_cross_attention": false,
|
46 |
"out_channels": 4,
|
47 |
+
"projection_class_embeddings_input_dim": null,
|
48 |
+
"resnet_out_scale_factor": 1.0,
|
49 |
+
"resnet_skip_time_act": false,
|
50 |
+
"resnet_time_scale_shift": "default",
|
51 |
"sample_size": 96,
|
52 |
+
"time_cond_proj_dim": null,
|
53 |
+
"time_embedding_act_fn": null,
|
54 |
+
"time_embedding_dim": null,
|
55 |
+
"time_embedding_type": "positional",
|
56 |
+
"timestep_post_act": null,
|
57 |
"up_block_types": [
|
58 |
"UpBlock2D",
|
59 |
"CrossAttnUpBlock2D",
|
60 |
"CrossAttnUpBlock2D",
|
61 |
"CrossAttnUpBlock2D"
|
62 |
],
|
63 |
+
"upcast_attention": null,
|
64 |
+
"use_linear_projection": true
|
65 |
}
|
unet/diffusion_pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 3463925093
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f60dabe36d854f4952bc3f8a21a769aa132da2135b5cf13c0f75cbe5daa63de1
|
3 |
size 3463925093
|
unet/diffusion_pytorch_model.fp16.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a9377eed7dfd84a3522929555a575b97110ccd8c4a0e7270ac7d31cad1e28dd
|
3 |
+
size 1732107093
|
unet/diffusion_pytorch_model.fp16.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8a3a4d7978884c5e4ef00b62641b1b544b257be2f6715d984188610ad6475ad2
|
3 |
+
size 1731904736
|
unet/diffusion_pytorch_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:96ebf655f21d1d25caef2b054072e550fd2255cf297ab41ffe89faf8566fb090
|
3 |
+
size 3463726504
|
vae/config.json
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
{
|
2 |
"_class_name": "AutoencoderKL",
|
3 |
-
"_diffusers_version": "0.
|
4 |
-
"_name_or_path": "hf-models/stable-diffusion-v2-768x768/vae",
|
5 |
"act_fn": "silu",
|
6 |
"block_out_channels": [
|
7 |
128,
|
@@ -21,6 +20,7 @@
|
|
21 |
"norm_num_groups": 32,
|
22 |
"out_channels": 3,
|
23 |
"sample_size": 768,
|
|
|
24 |
"up_block_types": [
|
25 |
"UpDecoderBlock2D",
|
26 |
"UpDecoderBlock2D",
|
|
|
1 |
{
|
2 |
"_class_name": "AutoencoderKL",
|
3 |
+
"_diffusers_version": "0.17.0.dev0",
|
|
|
4 |
"act_fn": "silu",
|
5 |
"block_out_channels": [
|
6 |
128,
|
|
|
20 |
"norm_num_groups": 32,
|
21 |
"out_channels": 3,
|
22 |
"sample_size": 768,
|
23 |
+
"scaling_factor": 0.18215,
|
24 |
"up_block_types": [
|
25 |
"UpDecoderBlock2D",
|
26 |
"UpDecoderBlock2D",
|
vae/diffusion_pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:36bb8e1b54aba3a0914eb35fba13dcb107e9f18d379d1df2158732cd4bf56a94
|
3 |
+
size 334711857
|
vae/diffusion_pytorch_model.fp16.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c13979094c6566d9aa5936879055457022f34a747eeba12542504853385077c8
|
3 |
+
size 167405395
|
vae/diffusion_pytorch_model.fp16.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c8b011e5a18c53888d51a81aa28223ddec87b450c14dc9650d9c3ebbcd17624e
|
3 |
+
size 167335350
|