freQuensy23 commited on
Commit
efa1d1f
1 Parent(s): 49f2014

Upload StableDiffusionPipeline

Browse files
model_index.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "_class_name": "StableDiffusionPipeline",
3
  "_diffusers_version": "0.24.0",
4
- "_name_or_path": "CompVis/stable-diffusion-v1-4",
5
  "feature_extractor": [
6
  "transformers",
7
  "CLIPImageProcessor"
@@ -10,7 +10,7 @@
10
  null,
11
  null
12
  ],
13
- "requires_safety_checker": true,
14
  "safety_checker": [
15
  null,
16
  null
 
1
  {
2
  "_class_name": "StableDiffusionPipeline",
3
  "_diffusers_version": "0.24.0",
4
+ "_name_or_path": "stabilityai/stable-diffusion-2",
5
  "feature_extractor": [
6
  "transformers",
7
  "CLIPImageProcessor"
 
10
  null,
11
  null
12
  ],
13
+ "requires_safety_checker": false,
14
  "safety_checker": [
15
  null,
16
  null
scheduler/scheduler_config.json CHANGED
@@ -8,7 +8,7 @@
8
  "clip_sample_range": 1.0,
9
  "dynamic_thresholding_ratio": 0.995,
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,
 
8
  "clip_sample_range": 1.0,
9
  "dynamic_thresholding_ratio": 0.995,
10
  "num_train_timesteps": 1000,
11
+ "prediction_type": "v_prediction",
12
  "rescale_betas_zero_snr": false,
13
  "sample_max_value": 1.0,
14
  "set_alpha_to_one": false,
text_encoder/config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "CompVis/stable-diffusion-v1-4",
3
  "architectures": [
4
  "CLIPTextModel"
5
  ],
@@ -7,16 +7,16 @@
7
  "bos_token_id": 0,
8
  "dropout": 0.0,
9
  "eos_token_id": 2,
10
- "hidden_act": "quick_gelu",
11
- "hidden_size": 768,
12
  "initializer_factor": 1.0,
13
  "initializer_range": 0.02,
14
- "intermediate_size": 3072,
15
  "layer_norm_eps": 1e-05,
16
  "max_position_embeddings": 77,
17
  "model_type": "clip_text_model",
18
- "num_attention_heads": 12,
19
- "num_hidden_layers": 12,
20
  "pad_token_id": 1,
21
  "projection_dim": 512,
22
  "torch_dtype": "float32",
 
1
  {
2
+ "_name_or_path": "stabilityai/stable-diffusion-2",
3
  "architectures": [
4
  "CLIPTextModel"
5
  ],
 
7
  "bos_token_id": 0,
8
  "dropout": 0.0,
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
  "torch_dtype": "float32",
text_encoder/model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:778d02eb9e707c3fbaae0b67b79ea0d1399b52e624fb634f2f19375ae7c047c3
3
- size 492265168
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67e013543d4fac905c882e2993d86a2d454ee69dc9e8f37c0c23d33a48959d15
3
+ size 1361596304
tokenizer/special_tokens_map.json CHANGED
@@ -13,7 +13,7 @@
13
  "rstrip": false,
14
  "single_word": false
15
  },
16
- "pad_token": "<|endoftext|>",
17
  "unk_token": {
18
  "content": "<|endoftext|>",
19
  "lstrip": false,
 
13
  "rstrip": false,
14
  "single_word": false
15
  },
16
+ "pad_token": "!",
17
  "unk_token": {
18
  "content": "<|endoftext|>",
19
  "lstrip": false,
tokenizer/tokenizer_config.json CHANGED
@@ -1,6 +1,14 @@
1
  {
2
  "add_prefix_space": false,
3
  "added_tokens_decoder": {
 
 
 
 
 
 
 
 
4
  "49406": {
5
  "content": "<|startoftext|>",
6
  "lstrip": false,
@@ -24,7 +32,7 @@
24
  "eos_token": "<|endoftext|>",
25
  "errors": "replace",
26
  "model_max_length": 77,
27
- "pad_token": "<|endoftext|>",
28
  "tokenizer_class": "CLIPTokenizer",
29
  "unk_token": "<|endoftext|>"
30
  }
 
1
  {
2
  "add_prefix_space": false,
3
  "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "!",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
  "49406": {
13
  "content": "<|startoftext|>",
14
  "lstrip": false,
 
32
  "eos_token": "<|endoftext|>",
33
  "errors": "replace",
34
  "model_max_length": 77,
35
+ "pad_token": "!",
36
  "tokenizer_class": "CLIPTokenizer",
37
  "unk_token": "<|endoftext|>"
38
  }
unet/config.json CHANGED
@@ -1,12 +1,17 @@
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
  "_diffusers_version": "0.24.0",
4
- "_name_or_path": "CompVis/stable-diffusion-v1-4",
5
  "act_fn": "silu",
6
  "addition_embed_type": null,
7
  "addition_embed_type_num_heads": 64,
8
  "addition_time_embed_dim": null,
9
- "attention_head_dim": 8,
 
 
 
 
 
10
  "attention_type": "default",
11
  "block_out_channels": [
12
  320,
@@ -19,7 +24,7 @@
19
  "class_embeddings_concat": false,
20
  "conv_in_kernel": 3,
21
  "conv_out_kernel": 3,
22
- "cross_attention_dim": 768,
23
  "cross_attention_norm": null,
24
  "down_block_types": [
25
  "CrossAttnDownBlock2D",
@@ -50,7 +55,7 @@
50
  "resnet_skip_time_act": false,
51
  "resnet_time_scale_shift": "default",
52
  "reverse_transformer_layers_per_block": null,
53
- "sample_size": 64,
54
  "time_cond_proj_dim": null,
55
  "time_embedding_act_fn": null,
56
  "time_embedding_dim": null,
@@ -64,5 +69,5 @@
64
  "CrossAttnUpBlock2D"
65
  ],
66
  "upcast_attention": false,
67
- "use_linear_projection": false
68
  }
 
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
  "_diffusers_version": "0.24.0",
4
+ "_name_or_path": "stabilityai/stable-diffusion-2",
5
  "act_fn": "silu",
6
  "addition_embed_type": null,
7
  "addition_embed_type_num_heads": 64,
8
  "addition_time_embed_dim": null,
9
+ "attention_head_dim": [
10
+ 5,
11
+ 10,
12
+ 20,
13
+ 20
14
+ ],
15
  "attention_type": "default",
16
  "block_out_channels": [
17
  320,
 
24
  "class_embeddings_concat": false,
25
  "conv_in_kernel": 3,
26
  "conv_out_kernel": 3,
27
+ "cross_attention_dim": 1024,
28
  "cross_attention_norm": null,
29
  "down_block_types": [
30
  "CrossAttnDownBlock2D",
 
55
  "resnet_skip_time_act": false,
56
  "resnet_time_scale_shift": "default",
57
  "reverse_transformer_layers_per_block": null,
58
+ "sample_size": 96,
59
  "time_cond_proj_dim": null,
60
  "time_embedding_act_fn": null,
61
  "time_embedding_dim": null,
 
69
  "CrossAttnUpBlock2D"
70
  ],
71
  "upcast_attention": false,
72
+ "use_linear_projection": true
73
  }
unet/diffusion_pytorch_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:426a69fdd5fc9552c879707127964b65625fc7a61dfd0789aa6b7bbae990de83
3
- size 3438167536
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2bacfcc040106637ec334f46bc5514428c1080c4304dda8f1f0cce7937c4f553
3
+ size 3463726504
vae/config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "_class_name": "AutoencoderKL",
3
  "_diffusers_version": "0.24.0",
4
- "_name_or_path": "CompVis/stable-diffusion-v1-4",
5
  "act_fn": "silu",
6
  "block_out_channels": [
7
  128,
@@ -21,7 +21,7 @@
21
  "layers_per_block": 2,
22
  "norm_num_groups": 32,
23
  "out_channels": 3,
24
- "sample_size": 512,
25
  "scaling_factor": 0.18215,
26
  "up_block_types": [
27
  "UpDecoderBlock2D",
 
1
  {
2
  "_class_name": "AutoencoderKL",
3
  "_diffusers_version": "0.24.0",
4
+ "_name_or_path": "stabilityai/stable-diffusion-2",
5
  "act_fn": "silu",
6
  "block_out_channels": [
7
  128,
 
21
  "layers_per_block": 2,
22
  "norm_num_groups": 32,
23
  "out_channels": 3,
24
+ "sample_size": 768,
25
  "scaling_factor": 0.18215,
26
  "up_block_types": [
27
  "UpDecoderBlock2D",
vae/diffusion_pytorch_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b4d2b5932bb4151e54e694fd31ccf51fca908223c9485bd56cd0e1d83ad94c49
3
  size 334643268
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2aa1f43011b553a4cba7f37456465cdbd48aab7b54b9348b890e8058ea7683ec
3
  size 334643268