ChenHe727 commited on
Commit
5f5012c
·
verified ·
1 Parent(s): a2c7f41

Upload StableDiffusionPipeline

Browse files
model_index.json CHANGED
@@ -1,38 +1,38 @@
1
- {
2
- "_class_name": "StableDiffusionPipeline",
3
- "_diffusers_version": "0.36.0",
4
- "_name_or_path": "models/sd-turbo",
5
- "feature_extractor": [
6
- null,
7
- null
8
- ],
9
- "image_encoder": [
10
- null,
11
- null
12
- ],
13
- "requires_safety_checker": true,
14
- "safety_checker": [
15
- null,
16
- null
17
- ],
18
- "scheduler": [
19
- "diffusers",
20
- "EulerDiscreteScheduler"
21
- ],
22
- "text_encoder": [
23
- "transformers",
24
- "CLIPTextModel"
25
- ],
26
- "tokenizer": [
27
- "transformers",
28
- "CLIPTokenizer"
29
- ],
30
- "unet": [
31
- "diffusers",
32
- "UNet2DConditionModel"
33
- ],
34
- "vae": [
35
- "diffusers",
36
- "AutoencoderKL"
37
- ]
38
- }
 
1
+ {
2
+ "_class_name": "StableDiffusionPipeline",
3
+ "_diffusers_version": "0.36.0",
4
+ "_name_or_path": "stabilityai/sd-turbo",
5
+ "feature_extractor": [
6
+ null,
7
+ null
8
+ ],
9
+ "image_encoder": [
10
+ null,
11
+ null
12
+ ],
13
+ "requires_safety_checker": false,
14
+ "safety_checker": [
15
+ null,
16
+ null
17
+ ],
18
+ "scheduler": [
19
+ "diffusers",
20
+ "EulerDiscreteScheduler"
21
+ ],
22
+ "text_encoder": [
23
+ "transformers",
24
+ "CLIPTextModel"
25
+ ],
26
+ "tokenizer": [
27
+ "transformers",
28
+ "CLIPTokenizer"
29
+ ],
30
+ "unet": [
31
+ "diffusers",
32
+ "UNet2DConditionModel"
33
+ ],
34
+ "vae": [
35
+ "diffusers",
36
+ "AutoencoderKL"
37
+ ]
38
+ }
scheduler/scheduler_config.json CHANGED
@@ -1,25 +1,25 @@
1
- {
2
- "_class_name": "EulerDiscreteScheduler",
3
- "_diffusers_version": "0.36.0",
4
- "beta_end": 0.012,
5
- "beta_schedule": "scaled_linear",
6
- "beta_start": 0.00085,
7
- "clip_sample": false,
8
- "final_sigmas_type": "zero",
9
- "interpolation_type": "linear",
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
- "sigma_max": null,
16
- "sigma_min": null,
17
- "skip_prk_steps": true,
18
- "steps_offset": 1,
19
- "timestep_spacing": "trailing",
20
- "timestep_type": "discrete",
21
- "trained_betas": null,
22
- "use_beta_sigmas": false,
23
- "use_exponential_sigmas": false,
24
- "use_karras_sigmas": false
25
- }
 
1
+ {
2
+ "_class_name": "EulerDiscreteScheduler",
3
+ "_diffusers_version": "0.36.0",
4
+ "beta_end": 0.012,
5
+ "beta_schedule": "scaled_linear",
6
+ "beta_start": 0.00085,
7
+ "clip_sample": false,
8
+ "final_sigmas_type": "zero",
9
+ "interpolation_type": "linear",
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
+ "sigma_max": null,
16
+ "sigma_min": null,
17
+ "skip_prk_steps": true,
18
+ "steps_offset": 1,
19
+ "timestep_spacing": "trailing",
20
+ "timestep_type": "discrete",
21
+ "trained_betas": null,
22
+ "use_beta_sigmas": false,
23
+ "use_exponential_sigmas": false,
24
+ "use_karras_sigmas": false
25
+ }
text_encoder/config.json CHANGED
@@ -1,24 +1,24 @@
1
- {
2
- "architectures": [
3
- "CLIPTextModel"
4
- ],
5
- "attention_dropout": 0.0,
6
- "bos_token_id": 0,
7
- "dropout": 0.0,
8
- "dtype": "float16",
9
- "eos_token_id": 2,
10
- "hidden_act": "gelu",
11
- "hidden_size": 1024,
12
- "initializer_factor": 1.0,
13
- "initializer_range": 0.02,
14
- "intermediate_size": 4096,
15
- "layer_norm_eps": 1e-05,
16
- "max_position_embeddings": 77,
17
- "model_type": "clip_text_model",
18
- "num_attention_heads": 16,
19
- "num_hidden_layers": 23,
20
- "pad_token_id": 1,
21
- "projection_dim": 512,
22
- "transformers_version": "5.1.0",
23
- "vocab_size": 49408
24
- }
 
1
+ {
2
+ "architectures": [
3
+ "CLIPTextModel"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 0,
7
+ "dropout": 0.0,
8
+ "dtype": "float16",
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_size": 1024,
12
+ "initializer_factor": 1.0,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 4096,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 77,
17
+ "model_type": "clip_text_model",
18
+ "num_attention_heads": 16,
19
+ "num_hidden_layers": 23,
20
+ "pad_token_id": 1,
21
+ "projection_dim": 512,
22
+ "transformers_version": "5.1.0",
23
+ "vocab_size": 49408
24
+ }
tokenizer/tokenizer.json CHANGED
@@ -1,7 +1,21 @@
1
  {
2
  "version": "1.0",
3
- "truncation": null,
4
- "padding": null,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  "added_tokens": [
6
  {
7
  "id": 0,
 
1
  {
2
  "version": "1.0",
3
+ "truncation": {
4
+ "direction": "Right",
5
+ "max_length": 77,
6
+ "strategy": "LongestFirst",
7
+ "stride": 0
8
+ },
9
+ "padding": {
10
+ "strategy": {
11
+ "Fixed": 77
12
+ },
13
+ "direction": "Right",
14
+ "pad_to_multiple_of": null,
15
+ "pad_id": 0,
16
+ "pad_type_id": 0,
17
+ "pad_token": "!"
18
+ },
19
  "added_tokens": [
20
  {
21
  "id": 0,
tokenizer/tokenizer_config.json CHANGED
@@ -1,14 +1,14 @@
1
- {
2
- "add_prefix_space": false,
3
- "backend": "tokenizers",
4
- "bos_token": "<|startoftext|>",
5
- "clean_up_tokenization_spaces": true,
6
- "do_lower_case": true,
7
- "eos_token": "<|endoftext|>",
8
- "errors": "replace",
9
- "is_local": true,
10
- "model_max_length": 77,
11
- "pad_token": "!",
12
- "tokenizer_class": "CLIPTokenizer",
13
- "unk_token": "<|endoftext|>"
14
- }
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|startoftext|>",
5
+ "clean_up_tokenization_spaces": true,
6
+ "do_lower_case": true,
7
+ "eos_token": "<|endoftext|>",
8
+ "errors": "replace",
9
+ "is_local": true,
10
+ "model_max_length": 77,
11
+ "pad_token": "!",
12
+ "tokenizer_class": "CLIPTokenizer",
13
+ "unk_token": "<|endoftext|>"
14
+ }
unet/config.json CHANGED
@@ -1,72 +1,72 @@
1
- {
2
- "_class_name": "UNet2DConditionModel",
3
- "_diffusers_version": "0.36.0",
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,
18
- 1280,
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",
31
- "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
- "reverse_transformer_layers_per_block": null,
57
- "sample_size": 64,
58
- "time_cond_proj_dim": null,
59
- "time_embedding_act_fn": null,
60
- "time_embedding_dim": null,
61
- "time_embedding_type": "positional",
62
- "timestep_post_act": null,
63
- "transformer_layers_per_block": 1,
64
- "up_block_types": [
65
- "UpBlock2D",
66
- "CrossAttnUpBlock2D",
67
- "CrossAttnUpBlock2D",
68
- "CrossAttnUpBlock2D"
69
- ],
70
- "upcast_attention": null,
71
- "use_linear_projection": true
72
- }
 
1
+ {
2
+ "_class_name": "UNet2DConditionModel",
3
+ "_diffusers_version": "0.36.0",
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,
18
+ 1280,
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",
31
+ "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
+ "reverse_transformer_layers_per_block": null,
57
+ "sample_size": 64,
58
+ "time_cond_proj_dim": null,
59
+ "time_embedding_act_fn": null,
60
+ "time_embedding_dim": null,
61
+ "time_embedding_type": "positional",
62
+ "timestep_post_act": null,
63
+ "transformer_layers_per_block": 1,
64
+ "up_block_types": [
65
+ "UpBlock2D",
66
+ "CrossAttnUpBlock2D",
67
+ "CrossAttnUpBlock2D",
68
+ "CrossAttnUpBlock2D"
69
+ ],
70
+ "upcast_attention": null,
71
+ "use_linear_projection": true
72
+ }
vae/config.json CHANGED
@@ -1,38 +1,38 @@
1
- {
2
- "_class_name": "AutoencoderKL",
3
- "_diffusers_version": "0.36.0",
4
- "_name_or_path": "models/sd-turbo/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": 768,
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
- }
 
1
+ {
2
+ "_class_name": "AutoencoderKL",
3
+ "_diffusers_version": "0.36.0",
4
+ "_name_or_path": "C:\\Users\\Administrator\\.cache\\huggingface\\hub\\models--stabilityai--sd-turbo\\snapshots\\b261bac6fd2cf515557d5d0707481eafa0485ec2\\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": 768,
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
+ }