hannahl commited on
Commit
e912adf
1 Parent(s): 60c57a6

Adding `diffusers` weights of this model

Browse files

This PR adds fp32 and fp16 weights in PyTorch and safetensors format to SG161222/Realistic_Vision_V2.0

feature_extractor/preprocessor_config.json CHANGED
@@ -14,7 +14,7 @@
14
  0.4578275,
15
  0.40821073
16
  ],
17
- "image_processor_type": "CLIPImageProcessor",
18
  "image_std": [
19
  0.26862954,
20
  0.26130258,
 
14
  0.4578275,
15
  0.40821073
16
  ],
17
+ "image_processor_type": "CLIPFeatureExtractor",
18
  "image_std": [
19
  0.26862954,
20
  0.26130258,
model_index.json CHANGED
@@ -1,9 +1,9 @@
1
  {
2
  "_class_name": "StableDiffusionPipeline",
3
- "_diffusers_version": "0.10.2",
4
  "feature_extractor": [
5
  "transformers",
6
- "CLIPImageProcessor"
7
  ],
8
  "requires_safety_checker": true,
9
  "safety_checker": [
@@ -12,7 +12,7 @@
12
  ],
13
  "scheduler": [
14
  "diffusers",
15
- "PNDMScheduler"
16
  ],
17
  "text_encoder": [
18
  "transformers",
 
1
  {
2
  "_class_name": "StableDiffusionPipeline",
3
+ "_diffusers_version": "0.18.0.dev0",
4
  "feature_extractor": [
5
  "transformers",
6
+ "CLIPFeatureExtractor"
7
  ],
8
  "requires_safety_checker": true,
9
  "safety_checker": [
 
12
  ],
13
  "scheduler": [
14
  "diffusers",
15
+ "DDIMScheduler"
16
  ],
17
  "text_encoder": [
18
  "transformers",
safety_checker/config.json CHANGED
@@ -80,18 +80,12 @@
80
  "top_p": 1.0,
81
  "torch_dtype": null,
82
  "torchscript": false,
83
- "transformers_version": "4.25.1",
84
  "typical_p": 1.0,
85
  "use_bfloat16": false,
86
  "vocab_size": 49408
87
  },
88
- "text_config_dict": {
89
- "hidden_size": 768,
90
- "intermediate_size": 3072,
91
- "num_attention_heads": 12,
92
- "num_hidden_layers": 12
93
- },
94
- "torch_dtype": "float32",
95
  "transformers_version": null,
96
  "vision_config": {
97
  "_name_or_path": "",
@@ -167,15 +161,8 @@
167
  "top_p": 1.0,
168
  "torch_dtype": null,
169
  "torchscript": false,
170
- "transformers_version": "4.25.1",
171
  "typical_p": 1.0,
172
  "use_bfloat16": false
173
- },
174
- "vision_config_dict": {
175
- "hidden_size": 1024,
176
- "intermediate_size": 4096,
177
- "num_attention_heads": 16,
178
- "num_hidden_layers": 24,
179
- "patch_size": 14
180
  }
181
  }
 
80
  "top_p": 1.0,
81
  "torch_dtype": null,
82
  "torchscript": false,
83
+ "transformers_version": "4.30.2",
84
  "typical_p": 1.0,
85
  "use_bfloat16": false,
86
  "vocab_size": 49408
87
  },
88
+ "torch_dtype": "float16",
 
 
 
 
 
 
89
  "transformers_version": null,
90
  "vision_config": {
91
  "_name_or_path": "",
 
161
  "top_p": 1.0,
162
  "torch_dtype": null,
163
  "torchscript": false,
164
+ "transformers_version": "4.30.2",
165
  "typical_p": 1.0,
166
  "use_bfloat16": false
 
 
 
 
 
 
 
167
  }
168
  }
safety_checker/model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08902f19b1cfebd7c989f152fc0507bef6898c706a91d666509383122324b511
3
+ size 608018440
safety_checker/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11cfe53105625af8c00faac32a430626641cce686454f3c39d837f14397d858b
3
+ size 1215981832
safety_checker/pytorch_model.fp16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22ba87205445ad5def13e54919b038dcfb7321ec1c3f4b12487d4fba6036125f
3
+ size 608103564
scheduler/scheduler_config.json CHANGED
@@ -1,14 +1,19 @@
1
  {
2
- "_class_name": "PNDMScheduler",
3
- "_diffusers_version": "0.10.2",
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": "epsilon",
 
 
10
  "set_alpha_to_one": false,
11
- "skip_prk_steps": true,
12
  "steps_offset": 1,
 
 
13
  "trained_betas": null
14
  }
 
1
  {
2
+ "_class_name": "DDIMScheduler",
3
+ "_diffusers_version": "0.18.0.dev0",
4
  "beta_end": 0.012,
5
  "beta_schedule": "scaled_linear",
6
  "beta_start": 0.00085,
7
  "clip_sample": false,
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,
 
15
  "steps_offset": 1,
16
+ "thresholding": false,
17
+ "timestep_spacing": "leading",
18
  "trained_betas": null
19
  }
text_encoder/config.json CHANGED
@@ -19,7 +19,7 @@
19
  "num_hidden_layers": 12,
20
  "pad_token_id": 1,
21
  "projection_dim": 768,
22
- "torch_dtype": "float32",
23
- "transformers_version": "4.25.1",
24
  "vocab_size": 49408
25
  }
 
19
  "num_hidden_layers": 12,
20
  "pad_token_id": 1,
21
  "projection_dim": 768,
22
+ "torch_dtype": "float16",
23
+ "transformers_version": "4.30.2",
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:855a525f37dffd5908cc6fa8aeaa52e8400012ffc1d4874a0c55a5a8fb4cc475
3
+ size 246144864
text_encoder/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26ebca3c5d21095751d2af90647220762568bebf60f1a327dba655075143dce7
3
+ size 492265880
text_encoder/pytorch_model.fp16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c21e245dfacadc92fb4144d8764bd6b9f358ff736dd9ae382c738a6eebbaef81
3
+ size 246187076
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": "openai/clip-vit-large-patch14",
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.10.2",
4
  "act_fn": "silu",
 
 
5
  "attention_head_dim": 8,
6
  "block_out_channels": [
7
  320,
@@ -10,7 +12,12 @@
10
  1280
11
  ],
12
  "center_input_sample": false,
 
 
 
 
13
  "cross_attention_dim": 768,
 
14
  "down_block_types": [
15
  "CrossAttnDownBlock2D",
16
  "CrossAttnDownBlock2D",
@@ -19,23 +26,37 @@
19
  ],
20
  "downsample_padding": 1,
21
  "dual_cross_attention": false,
 
 
22
  "flip_sin_to_cos": true,
23
  "freq_shift": 0,
24
  "in_channels": 4,
25
  "layers_per_block": 2,
 
26
  "mid_block_scale_factor": 1,
 
27
  "norm_eps": 1e-05,
28
  "norm_num_groups": 32,
 
29
  "num_class_embeds": null,
30
  "only_cross_attention": false,
31
  "out_channels": 4,
 
 
 
 
32
  "sample_size": 64,
 
 
 
 
 
33
  "up_block_types": [
34
  "UpBlock2D",
35
  "CrossAttnUpBlock2D",
36
  "CrossAttnUpBlock2D",
37
  "CrossAttnUpBlock2D"
38
  ],
39
- "upcast_attention": false,
40
  "use_linear_projection": false
41
  }
 
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
+ "_diffusers_version": "0.18.0.dev0",
4
  "act_fn": "silu",
5
+ "addition_embed_type": null,
6
+ "addition_embed_type_num_heads": 64,
7
  "attention_head_dim": 8,
8
  "block_out_channels": [
9
  320,
 
12
  1280
13
  ],
14
  "center_input_sample": false,
15
+ "class_embed_type": null,
16
+ "class_embeddings_concat": false,
17
+ "conv_in_kernel": 3,
18
+ "conv_out_kernel": 3,
19
  "cross_attention_dim": 768,
20
+ "cross_attention_norm": null,
21
  "down_block_types": [
22
  "CrossAttnDownBlock2D",
23
  "CrossAttnDownBlock2D",
 
26
  ],
27
  "downsample_padding": 1,
28
  "dual_cross_attention": false,
29
+ "encoder_hid_dim": null,
30
+ "encoder_hid_dim_type": null,
31
  "flip_sin_to_cos": true,
32
  "freq_shift": 0,
33
  "in_channels": 4,
34
  "layers_per_block": 2,
35
+ "mid_block_only_cross_attention": null,
36
  "mid_block_scale_factor": 1,
37
+ "mid_block_type": "UNetMidBlock2DCrossAttn",
38
  "norm_eps": 1e-05,
39
  "norm_num_groups": 32,
40
+ "num_attention_heads": null,
41
  "num_class_embeds": null,
42
  "only_cross_attention": false,
43
  "out_channels": 4,
44
+ "projection_class_embeddings_input_dim": null,
45
+ "resnet_out_scale_factor": 1.0,
46
+ "resnet_skip_time_act": false,
47
+ "resnet_time_scale_shift": "default",
48
  "sample_size": 64,
49
+ "time_cond_proj_dim": null,
50
+ "time_embedding_act_fn": null,
51
+ "time_embedding_dim": null,
52
+ "time_embedding_type": "positional",
53
+ "timestep_post_act": null,
54
  "up_block_types": [
55
  "UpBlock2D",
56
  "CrossAttnUpBlock2D",
57
  "CrossAttnUpBlock2D",
58
  "CrossAttnUpBlock2D"
59
  ],
60
+ "upcast_attention": null,
61
  "use_linear_projection": false
62
  }
unet/diffusion_pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2a8bb56a8392e633984f33059f99e160b394f7966e03cf37efdf5f0210a2fb89
3
  size 3438366373
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2671608b8287ca9bf94d44baf4efd9e72a0820ab6643ebc94f3739500b6b52e
3
  size 3438366373
unet/diffusion_pytorch_model.fp16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95e433054b6230372a863b53ffb04f51ac95279d8b9f52d6049a094769833059
3
+ size 1719327893
unet/diffusion_pytorch_model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5eb162fac97689dc107ebe615d8be59e88193507d28903de4294e45a14a54d8e
3
+ size 1719125304
unet/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bd921ef63a276cfaed9d0c8830d9504e9f812a043ac81ac48626dd42544ff7c
3
+ size 3438167536
vae/config.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "_class_name": "AutoencoderKL",
3
- "_diffusers_version": "0.10.2",
4
  "act_fn": "silu",
5
  "block_out_channels": [
6
  128,
@@ -20,6 +20,7 @@
20
  "norm_num_groups": 32,
21
  "out_channels": 3,
22
  "sample_size": 512,
 
23
  "up_block_types": [
24
  "UpDecoderBlock2D",
25
  "UpDecoderBlock2D",
 
1
  {
2
  "_class_name": "AutoencoderKL",
3
+ "_diffusers_version": "0.18.0.dev0",
4
  "act_fn": "silu",
5
  "block_out_channels": [
6
  128,
 
20
  "norm_num_groups": 32,
21
  "out_channels": 3,
22
  "sample_size": 512,
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:37d127c71426902d41431070e74921a6c8e3917e9cff7c4da72eeb5a64ce1893
3
- size 334711857
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:251086e7c7793410070d11a421db3886a7b2a7ff27cdea006a67a4cd76a7a899
3
+ size 334712113
vae/diffusion_pytorch_model.fp16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6183e4464d298b5aa971849ea031f233aaf16b0a31b6ffbc3754605e85a1b8f1
3
+ size 167405651
vae/diffusion_pytorch_model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:249bd6adf5e03a78cfbc21c689b08f9e285fa49fa81f2cf9ff175c6272a2740a
3
+ size 167335342
vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86a6170968f284b6c0c111e2611c806a04102e2a48790ebd1d490ca78040d2bb
3
+ size 334643268