Adding `diffusers` weights of this model
Browse filesThis PR adds fp32 and fp16 weights in PyTorch and safetensors format to prompthero/openjourney-v4
- .gitattributes +8 -0
- model_index.json +3 -3
- safety_checker/config.json +5 -5
- safety_checker/model.fp16.safetensors +3 -0
- safety_checker/model.safetensors +2 -2
- safety_checker/pytorch_model.fp16.bin +3 -0
- scheduler/scheduler_config.json +12 -4
- text_encoder/config.json +3 -3
- text_encoder/model.fp16.safetensors +3 -0
- text_encoder/model.safetensors +2 -2
- text_encoder/pytorch_model.fp16.bin +3 -0
- tokenizer/tokenizer_config.json +1 -1
- unet/config.json +14 -3
- unet/diffusion_pytorch_model.bin +1 -1
- unet/diffusion_pytorch_model.fp16.bin +3 -0
- unet/diffusion_pytorch_model.fp16.safetensors +3 -0
- unet/diffusion_pytorch_model.safetensors +2 -2
- vae/config.json +1 -2
- vae/diffusion_pytorch_model.bin +2 -2
- vae/diffusion_pytorch_model.fp16.bin +3 -0
- vae/diffusion_pytorch_model.fp16.safetensors +3 -0
- vae/diffusion_pytorch_model.safetensors +2 -2
.gitattributes
CHANGED
@@ -7,3 +7,11 @@ unet/diffusion_pytorch_model.bin filter=lfs diff=lfs merge=lfs -text
|
|
7 |
unet/diffusion_pytorch_model.safetensors filter=lfs diff=lfs merge=lfs -text
|
8 |
vae/diffusion_pytorch_model.bin filter=lfs diff=lfs merge=lfs -text
|
9 |
vae/diffusion_pytorch_model.safetensors filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
unet/diffusion_pytorch_model.safetensors filter=lfs diff=lfs merge=lfs -text
|
8 |
vae/diffusion_pytorch_model.bin filter=lfs diff=lfs merge=lfs -text
|
9 |
vae/diffusion_pytorch_model.safetensors filter=lfs diff=lfs merge=lfs -text
|
10 |
+
safety_checker/model.fp16.safetensors filter=lfs diff=lfs merge=lfs -text
|
11 |
+
safety_checker/pytorch_model.fp16.bin filter=lfs diff=lfs merge=lfs -text
|
12 |
+
text_encoder/model.fp16.safetensors filter=lfs diff=lfs merge=lfs -text
|
13 |
+
text_encoder/pytorch_model.fp16.bin filter=lfs diff=lfs merge=lfs -text
|
14 |
+
unet/diffusion_pytorch_model.fp16.bin filter=lfs diff=lfs merge=lfs -text
|
15 |
+
unet/diffusion_pytorch_model.fp16.safetensors filter=lfs diff=lfs merge=lfs -text
|
16 |
+
vae/diffusion_pytorch_model.fp16.bin filter=lfs diff=lfs merge=lfs -text
|
17 |
+
vae/diffusion_pytorch_model.fp16.safetensors filter=lfs diff=lfs merge=lfs -text
|
model_index.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
{
|
2 |
"_class_name": "StableDiffusionPipeline",
|
3 |
-
"_diffusers_version": "0.
|
4 |
"feature_extractor": [
|
5 |
"transformers",
|
6 |
-
"
|
7 |
],
|
8 |
"requires_safety_checker": true,
|
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.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 |
+
"DPMSolverMultistepScheduler"
|
16 |
],
|
17 |
"text_encoder": [
|
18 |
"transformers",
|
safety_checker/config.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
-
"_commit_hash":
|
3 |
-
"_name_or_path": "
|
4 |
"architectures": [
|
5 |
"StableDiffusionSafetyChecker"
|
6 |
],
|
@@ -80,12 +80,12 @@
|
|
80 |
"top_p": 1.0,
|
81 |
"torch_dtype": null,
|
82 |
"torchscript": false,
|
83 |
-
"transformers_version": "4.
|
84 |
"typical_p": 1.0,
|
85 |
"use_bfloat16": false,
|
86 |
"vocab_size": 49408
|
87 |
},
|
88 |
-
"torch_dtype": "
|
89 |
"transformers_version": null,
|
90 |
"vision_config": {
|
91 |
"_name_or_path": "",
|
@@ -161,7 +161,7 @@
|
|
161 |
"top_p": 1.0,
|
162 |
"torch_dtype": null,
|
163 |
"torchscript": false,
|
164 |
-
"transformers_version": "4.
|
165 |
"typical_p": 1.0,
|
166 |
"use_bfloat16": false
|
167 |
}
|
|
|
1 |
{
|
2 |
+
"_commit_hash": "cb41f3a270d63d454d385fc2e4f571c487c253c5",
|
3 |
+
"_name_or_path": "CompVis/stable-diffusion-safety-checker",
|
4 |
"architectures": [
|
5 |
"StableDiffusionSafetyChecker"
|
6 |
],
|
|
|
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 |
}
|
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
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: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,18 +1,26 @@
|
|
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 |
"clip_sample_range": 1.0,
|
9 |
"dynamic_thresholding_ratio": 0.995,
|
|
|
|
|
10 |
"num_train_timesteps": 1000,
|
11 |
"prediction_type": "epsilon",
|
|
|
12 |
"sample_max_value": 1.0,
|
13 |
"set_alpha_to_one": false,
|
14 |
-
"
|
|
|
15 |
"steps_offset": 1,
|
16 |
"thresholding": false,
|
17 |
-
"
|
|
|
|
|
|
|
18 |
}
|
|
|
1 |
{
|
2 |
+
"_class_name": "DPMSolverMultistepScheduler",
|
3 |
+
"_diffusers_version": "0.18.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 |
"clip_sample_range": 1.0,
|
10 |
"dynamic_thresholding_ratio": 0.995,
|
11 |
+
"lambda_min_clipped": -Infinity,
|
12 |
+
"lower_order_final": true,
|
13 |
"num_train_timesteps": 1000,
|
14 |
"prediction_type": "epsilon",
|
15 |
+
"rescale_betas_zero_snr": false,
|
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": "leading",
|
23 |
+
"trained_betas": null,
|
24 |
+
"use_karras_sigmas": false,
|
25 |
+
"variance_type": null
|
26 |
}
|
text_encoder/config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
"CLIPTextModel"
|
5 |
],
|
@@ -19,7 +19,7 @@
|
|
19 |
"num_hidden_layers": 12,
|
20 |
"pad_token_id": 1,
|
21 |
"projection_dim": 768,
|
22 |
-
"torch_dtype": "
|
23 |
-
"transformers_version": "4.
|
24 |
"vocab_size": 49408
|
25 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "openai/clip-vit-large-patch14",
|
3 |
"architectures": [
|
4 |
"CLIPTextModel"
|
5 |
],
|
|
|
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:5a1b94d92f0d6da3d45d7cfc317f2c252796367aa2c1c4cb9528268f3be410ea
|
3 |
+
size 246144864
|
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:b3f579ed48d6177587290abd4badf28419bee4454cb268d4ed082456edd5e406
|
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:a2e45a4e300be16ba7a143850ce247b5a8e06e6d30479ba5b1dc184d3e927bd5
|
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",
|
@@ -20,7 +21,6 @@
|
|
20 |
"errors": "replace",
|
21 |
"model_max_length": 77,
|
22 |
"pad_token": "<|endoftext|>",
|
23 |
-
"special_tokens_map_file": "./special_tokens_map.json",
|
24 |
"tokenizer_class": "CLIPTokenizer",
|
25 |
"unk_token": {
|
26 |
"__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",
|
|
|
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,8 +1,9 @@
|
|
1 |
{
|
2 |
"_class_name": "UNet2DConditionModel",
|
3 |
-
"_diffusers_version": "0.
|
4 |
-
"_name_or_path": "./unet",
|
5 |
"act_fn": "silu",
|
|
|
|
|
6 |
"attention_head_dim": 8,
|
7 |
"block_out_channels": [
|
8 |
320,
|
@@ -12,9 +13,11 @@
|
|
12 |
],
|
13 |
"center_input_sample": false,
|
14 |
"class_embed_type": null,
|
|
|
15 |
"conv_in_kernel": 3,
|
16 |
"conv_out_kernel": 3,
|
17 |
"cross_attention_dim": 768,
|
|
|
18 |
"down_block_types": [
|
19 |
"CrossAttnDownBlock2D",
|
20 |
"CrossAttnDownBlock2D",
|
@@ -23,21 +26,29 @@
|
|
23 |
],
|
24 |
"downsample_padding": 1,
|
25 |
"dual_cross_attention": false,
|
|
|
|
|
26 |
"flip_sin_to_cos": true,
|
27 |
"freq_shift": 0,
|
28 |
"in_channels": 4,
|
29 |
"layers_per_block": 2,
|
|
|
30 |
"mid_block_scale_factor": 1,
|
31 |
"mid_block_type": "UNetMidBlock2DCrossAttn",
|
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 |
"projection_class_embeddings_input_dim": null,
|
|
|
|
|
38 |
"resnet_time_scale_shift": "default",
|
39 |
"sample_size": 64,
|
40 |
"time_cond_proj_dim": null,
|
|
|
|
|
41 |
"time_embedding_type": "positional",
|
42 |
"timestep_post_act": null,
|
43 |
"up_block_types": [
|
@@ -46,6 +57,6 @@
|
|
46 |
"CrossAttnUpBlock2D",
|
47 |
"CrossAttnUpBlock2D"
|
48 |
],
|
49 |
-
"upcast_attention":
|
50 |
"use_linear_projection": false
|
51 |
}
|
|
|
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,
|
|
|
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": [
|
|
|
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:
|
3 |
size 3438366373
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f664fbf988a8e0ee7ef5712897d101b0b00aeffa1f9e244273aff41ea930e40d
|
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:7bf54630c9d9e616a19012aecad20041a6537260de073947100a3c39d5bf1c25
|
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:0154f5f038b291b7d545f9a68345760c20191f669fc5d7f1a04b3983b9a8a610
|
3 |
+
size 1719125304
|
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:4a1f57b91e0037d9f17fcea80ab1edb7fdfc1edc5e5380b93dbdc8acd87a8339
|
3 |
+
size 3438167536
|
vae/config.json
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
{
|
2 |
"_class_name": "AutoencoderKL",
|
3 |
-
"_diffusers_version": "0.
|
4 |
-
"_name_or_path": "./vae",
|
5 |
"act_fn": "silu",
|
6 |
"block_out_channels": [
|
7 |
128,
|
|
|
1 |
{
|
2 |
"_class_name": "AutoencoderKL",
|
3 |
+
"_diffusers_version": "0.18.0.dev0",
|
|
|
4 |
"act_fn": "silu",
|
5 |
"block_out_channels": [
|
6 |
128,
|
vae/diffusion_pytorch_model.bin
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:bcffe54944f45ffa9e338e8ad2515e3a8d8584dcedab4b043fb96138074fd249
|
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:44915add42092106e70bffac475aae4283b5e8167a8a0c5f55ccc667ee4ebeb5
|
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:3e4c08995484ee61270175e9e7a072b66a6e4eeb5f0c266667fe1f45b90daf9a
|
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
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fc436097e5cbb105c44df4403ae84acf7e81de1f64acfedc334888e9a8eea223
|
3 |
+
size 334643268
|