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 +14 -4
- text_encoder/config.json +2 -2
- text_encoder/model.safetensors +2 -2
- tokenizer/tokenizer_config.json +1 -1
- unet/config.json +28 -3
- unet/diffusion_pytorch_model.safetensors +2 -2
- vae/config.json +3 -2
- vae/diffusion_pytorch_model.safetensors +2 -2
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.21.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,24 @@
|
|
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.21.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 |
+
"dynamic_thresholding_ratio": 0.995,
|
10 |
+
"lambda_min_clipped": -Infinity,
|
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 |
+
"timestep_spacing": "linspace",
|
21 |
+
"trained_betas": null,
|
22 |
+
"use_karras_sigmas": false,
|
23 |
+
"variance_type": null
|
24 |
}
|
text_encoder/config.json
CHANGED
@@ -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 |
}
|
|
|
19 |
"num_hidden_layers": 23,
|
20 |
"pad_token_id": 1,
|
21 |
"projection_dim": 512,
|
22 |
+
"torch_dtype": "float16",
|
23 |
+
"transformers_version": "4.26.0",
|
24 |
"vocab_size": 49408
|
25 |
}
|
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:681c555376658c81dc273f2d737a2aeb23ddb6d1d8e5b3a7064636d359a22668
|
3 |
+
size 680821096
|
tokenizer/tokenizer_config.json
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
},
|
20 |
"errors": "replace",
|
21 |
"model_max_length": 77,
|
22 |
-
"name_or_path": "
|
23 |
"pad_token": "<|endoftext|>",
|
24 |
"special_tokens_map_file": "./special_tokens_map.json",
|
25 |
"tokenizer_class": "CLIPTokenizer",
|
|
|
19 |
},
|
20 |
"errors": "replace",
|
21 |
"model_max_length": 77,
|
22 |
+
"name_or_path": "stabilityai/stable-diffusion-2",
|
23 |
"pad_token": "<|endoftext|>",
|
24 |
"special_tokens_map_file": "./special_tokens_map.json",
|
25 |
"tokenizer_class": "CLIPTokenizer",
|
unet/config.json
CHANGED
@@ -1,13 +1,17 @@
|
|
1 |
{
|
2 |
"_class_name": "UNet2DConditionModel",
|
3 |
-
"_diffusers_version": "0.
|
4 |
"act_fn": "silu",
|
|
|
|
|
|
|
5 |
"attention_head_dim": [
|
6 |
5,
|
7 |
10,
|
8 |
20,
|
9 |
20
|
10 |
],
|
|
|
11 |
"block_out_channels": [
|
12 |
320,
|
13 |
640,
|
@@ -15,7 +19,12 @@
|
|
15 |
1280
|
16 |
],
|
17 |
"center_input_sample": false,
|
|
|
|
|
|
|
|
|
18 |
"cross_attention_dim": 1024,
|
|
|
19 |
"down_block_types": [
|
20 |
"CrossAttnDownBlock2D",
|
21 |
"CrossAttnDownBlock2D",
|
@@ -23,24 +32,40 @@
|
|
23 |
"DownBlock2D"
|
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.21.0.dev0",
|
4 |
"act_fn": "silu",
|
5 |
+
"addition_embed_type": null,
|
6 |
+
"addition_embed_type_num_heads": 64,
|
7 |
+
"addition_time_embed_dim": null,
|
8 |
"attention_head_dim": [
|
9 |
5,
|
10 |
10,
|
11 |
20,
|
12 |
20
|
13 |
],
|
14 |
+
"attention_type": "default",
|
15 |
"block_out_channels": [
|
16 |
320,
|
17 |
640,
|
|
|
19 |
1280
|
20 |
],
|
21 |
"center_input_sample": false,
|
22 |
+
"class_embed_type": null,
|
23 |
+
"class_embeddings_concat": false,
|
24 |
+
"conv_in_kernel": 3,
|
25 |
+
"conv_out_kernel": 3,
|
26 |
"cross_attention_dim": 1024,
|
27 |
+
"cross_attention_norm": null,
|
28 |
"down_block_types": [
|
29 |
"CrossAttnDownBlock2D",
|
30 |
"CrossAttnDownBlock2D",
|
|
|
32 |
"DownBlock2D"
|
33 |
],
|
34 |
"downsample_padding": 1,
|
35 |
+
"dropout": 0.0,
|
36 |
"dual_cross_attention": false,
|
37 |
+
"encoder_hid_dim": null,
|
38 |
+
"encoder_hid_dim_type": null,
|
39 |
"flip_sin_to_cos": true,
|
40 |
"freq_shift": 0,
|
41 |
"in_channels": 4,
|
42 |
"layers_per_block": 2,
|
43 |
+
"mid_block_only_cross_attention": null,
|
44 |
"mid_block_scale_factor": 1,
|
45 |
+
"mid_block_type": "UNetMidBlock2DCrossAttn",
|
46 |
"norm_eps": 1e-05,
|
47 |
"norm_num_groups": 32,
|
48 |
+
"num_attention_heads": null,
|
49 |
"num_class_embeds": null,
|
50 |
"only_cross_attention": false,
|
51 |
"out_channels": 4,
|
52 |
+
"projection_class_embeddings_input_dim": null,
|
53 |
+
"resnet_out_scale_factor": 1.0,
|
54 |
+
"resnet_skip_time_act": false,
|
55 |
+
"resnet_time_scale_shift": "default",
|
56 |
"sample_size": 96,
|
57 |
+
"time_cond_proj_dim": null,
|
58 |
+
"time_embedding_act_fn": null,
|
59 |
+
"time_embedding_dim": null,
|
60 |
+
"time_embedding_type": "positional",
|
61 |
+
"timestep_post_act": null,
|
62 |
+
"transformer_layers_per_block": 1,
|
63 |
"up_block_types": [
|
64 |
"UpBlock2D",
|
65 |
"CrossAttnUpBlock2D",
|
66 |
"CrossAttnUpBlock2D",
|
67 |
"CrossAttnUpBlock2D"
|
68 |
],
|
69 |
+
"upcast_attention": null,
|
70 |
+
"use_linear_projection": true
|
71 |
}
|
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,
|
@@ -15,12 +14,14 @@
|
|
15 |
"DownEncoderBlock2D",
|
16 |
"DownEncoderBlock2D"
|
17 |
],
|
|
|
18 |
"in_channels": 3,
|
19 |
"latent_channels": 4,
|
20 |
"layers_per_block": 2,
|
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.21.0.dev0",
|
|
|
4 |
"act_fn": "silu",
|
5 |
"block_out_channels": [
|
6 |
128,
|
|
|
14 |
"DownEncoderBlock2D",
|
15 |
"DownEncoderBlock2D"
|
16 |
],
|
17 |
+
"force_upcast": true,
|
18 |
"in_channels": 3,
|
19 |
"latent_channels": 4,
|
20 |
"layers_per_block": 2,
|
21 |
"norm_num_groups": 32,
|
22 |
"out_channels": 3,
|
23 |
"sample_size": 768,
|
24 |
+
"scaling_factor": 0.18215,
|
25 |
"up_block_types": [
|
26 |
"UpDecoderBlock2D",
|
27 |
"UpDecoderBlock2D",
|
vae/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:2aa1f43011b553a4cba7f37456465cdbd48aab7b54b9348b890e8058ea7683ec
|
3 |
+
size 334643268
|