Adding `diffusers` weights of this model (#2)
Browse files- Adding `diffusers` weights of this model (afdebcd18629588af6cb548646f1f21fe6f38dd7)
- feature_extractor/preprocessor_config.json +27 -0
- model_index.json +5 -5
- safety_checker/config.json +28 -0
- safety_checker/model.fp16.safetensors +3 -0
- safety_checker/model.safetensors +3 -0
- scheduler/scheduler_config.json +14 -7
- vae/diffusion_pytorch_model.fp16.safetensors +1 -1
- vae/diffusion_pytorch_model.safetensors +1 -1
feature_extractor/preprocessor_config.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_size": {
|
3 |
+
"height": 224,
|
4 |
+
"width": 224
|
5 |
+
},
|
6 |
+
"do_center_crop": true,
|
7 |
+
"do_convert_rgb": true,
|
8 |
+
"do_normalize": true,
|
9 |
+
"do_rescale": true,
|
10 |
+
"do_resize": true,
|
11 |
+
"image_mean": [
|
12 |
+
0.48145466,
|
13 |
+
0.4578275,
|
14 |
+
0.40821073
|
15 |
+
],
|
16 |
+
"image_processor_type": "CLIPFeatureExtractor",
|
17 |
+
"image_std": [
|
18 |
+
0.26862954,
|
19 |
+
0.26130258,
|
20 |
+
0.27577711
|
21 |
+
],
|
22 |
+
"resample": 3,
|
23 |
+
"rescale_factor": 0.00392156862745098,
|
24 |
+
"size": {
|
25 |
+
"shortest_edge": 224
|
26 |
+
}
|
27 |
+
}
|
model_index.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"_class_name": "StableDiffusionPipeline",
|
3 |
-
"_diffusers_version": "0.
|
4 |
"feature_extractor": [
|
5 |
"transformers",
|
6 |
"CLIPFeatureExtractor"
|
@@ -9,14 +9,14 @@
|
|
9 |
null,
|
10 |
null
|
11 |
],
|
12 |
-
"requires_safety_checker":
|
13 |
"safety_checker": [
|
14 |
-
|
15 |
-
|
16 |
],
|
17 |
"scheduler": [
|
18 |
"diffusers",
|
19 |
-
"
|
20 |
],
|
21 |
"text_encoder": [
|
22 |
"transformers",
|
|
|
1 |
{
|
2 |
"_class_name": "StableDiffusionPipeline",
|
3 |
+
"_diffusers_version": "0.26.0.dev0",
|
4 |
"feature_extractor": [
|
5 |
"transformers",
|
6 |
"CLIPFeatureExtractor"
|
|
|
9 |
null,
|
10 |
null
|
11 |
],
|
12 |
+
"requires_safety_checker": true,
|
13 |
"safety_checker": [
|
14 |
+
"stable_diffusion",
|
15 |
+
"StableDiffusionSafetyChecker"
|
16 |
],
|
17 |
"scheduler": [
|
18 |
"diffusers",
|
19 |
+
"DPMSolverMultistepScheduler"
|
20 |
],
|
21 |
"text_encoder": [
|
22 |
"transformers",
|
safety_checker/config.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "CompVis/stable-diffusion-safety-checker",
|
3 |
+
"architectures": [
|
4 |
+
"StableDiffusionSafetyChecker"
|
5 |
+
],
|
6 |
+
"initializer_factor": 1.0,
|
7 |
+
"logit_scale_init_value": 2.6592,
|
8 |
+
"model_type": "clip",
|
9 |
+
"projection_dim": 768,
|
10 |
+
"text_config": {
|
11 |
+
"dropout": 0.0,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"intermediate_size": 3072,
|
14 |
+
"model_type": "clip_text_model",
|
15 |
+
"num_attention_heads": 12
|
16 |
+
},
|
17 |
+
"torch_dtype": "float16",
|
18 |
+
"transformers_version": "4.37.2",
|
19 |
+
"vision_config": {
|
20 |
+
"dropout": 0.0,
|
21 |
+
"hidden_size": 1024,
|
22 |
+
"intermediate_size": 4096,
|
23 |
+
"model_type": "clip_vision_model",
|
24 |
+
"num_attention_heads": 16,
|
25 |
+
"num_hidden_layers": 24,
|
26 |
+
"patch_size": 14
|
27 |
+
}
|
28 |
+
}
|
safety_checker/model.fp16.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:57ecdfa243b170f9b4cb3eefaf0f64552ef78fc0bf0eb1c5b9675308447184f6
|
3 |
+
size 608016280
|
safety_checker/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb351a5ded815c3ff744968ad9c6b218d071b9d313d04f35e813b84b4c0ffde8
|
3 |
+
size 1215979664
|
scheduler/scheduler_config.json
CHANGED
@@ -1,20 +1,27 @@
|
|
1 |
{
|
2 |
-
"_class_name": "
|
3 |
"_diffusers_version": "0.26.0.dev0",
|
|
|
4 |
"beta_end": 0.012,
|
5 |
"beta_schedule": "scaled_linear",
|
6 |
"beta_start": 0.00085,
|
7 |
"clip_sample": false,
|
8 |
-
"
|
|
|
|
|
|
|
|
|
9 |
"num_train_timesteps": 1000,
|
10 |
"prediction_type": "epsilon",
|
11 |
-
"
|
12 |
"set_alpha_to_one": false,
|
13 |
-
"
|
14 |
-
"
|
15 |
"steps_offset": 1,
|
|
|
16 |
"timestep_spacing": "linspace",
|
17 |
-
"timestep_type": "discrete",
|
18 |
"trained_betas": null,
|
19 |
-
"use_karras_sigmas": false
|
|
|
|
|
20 |
}
|
|
|
1 |
{
|
2 |
+
"_class_name": "DPMSolverMultistepScheduler",
|
3 |
"_diffusers_version": "0.26.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 |
+
"euler_at_final": false,
|
11 |
+
"final_sigmas_type": "zero",
|
12 |
+
"lambda_min_clipped": -Infinity,
|
13 |
+
"lower_order_final": true,
|
14 |
"num_train_timesteps": 1000,
|
15 |
"prediction_type": "epsilon",
|
16 |
+
"sample_max_value": 1.0,
|
17 |
"set_alpha_to_one": false,
|
18 |
+
"solver_order": 2,
|
19 |
+
"solver_type": "midpoint",
|
20 |
"steps_offset": 1,
|
21 |
+
"thresholding": false,
|
22 |
"timestep_spacing": "linspace",
|
|
|
23 |
"trained_betas": null,
|
24 |
+
"use_karras_sigmas": false,
|
25 |
+
"use_lu_lambdas": false,
|
26 |
+
"variance_type": null
|
27 |
}
|
vae/diffusion_pytorch_model.fp16.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 167335342
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7b7693298fa9d267155741d871b857c02d652e532248644236b714d6a9559dfd
|
3 |
size 167335342
|
vae/diffusion_pytorch_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 334643268
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:34c05beb36caa802c13ae0cab83c8bc08db7a4b649cecbcecab3801c21b90f80
|
3 |
size 334643268
|