Upload StableDiffusionPipeline
Browse files- README.md +5 -4
- feature_extractor/preprocessor_config.json +1 -2
- model_index.json +8 -4
- scheduler/scheduler_config.json +1 -1
- text_encoder/config.json +3 -2
- text_encoder/model.fp16.safetensors +3 -0
- tokenizer/tokenizer_config.json +20 -23
- unet/config.json +4 -1
- unet/diffusion_pytorch_model.fp16.safetensors +3 -0
- vae/config.json +8 -2
- vae/diffusion_pytorch_model.fp16.safetensors +3 -0
README.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
| 1 |
---
|
| 2 |
license: creativeml-openrail-m
|
| 3 |
tags:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
pinned: true
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
# Protogen x3.4111 API Inference
|
|
|
|
| 1 |
---
|
| 2 |
license: creativeml-openrail-m
|
| 3 |
tags:
|
| 4 |
+
- stablediffusionapi.com
|
| 5 |
+
- stable-diffusion-api
|
| 6 |
+
- text-to-image
|
| 7 |
+
- ultra-realistic
|
| 8 |
pinned: true
|
| 9 |
+
library_name: diffusers
|
| 10 |
---
|
| 11 |
|
| 12 |
# Protogen x3.4111 API Inference
|
feature_extractor/preprocessor_config.json
CHANGED
|
@@ -8,13 +8,12 @@
|
|
| 8 |
"do_normalize": true,
|
| 9 |
"do_rescale": true,
|
| 10 |
"do_resize": true,
|
| 11 |
-
"feature_extractor_type": "CLIPFeatureExtractor",
|
| 12 |
"image_mean": [
|
| 13 |
0.48145466,
|
| 14 |
0.4578275,
|
| 15 |
0.40821073
|
| 16 |
],
|
| 17 |
-
"image_processor_type": "
|
| 18 |
"image_std": [
|
| 19 |
0.26862954,
|
| 20 |
0.26130258,
|
|
|
|
| 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": "CLIPImageProcessor",
|
| 17 |
"image_std": [
|
| 18 |
0.26862954,
|
| 19 |
0.26130258,
|
model_index.json
CHANGED
|
@@ -1,14 +1,18 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "StableDiffusionPipeline",
|
| 3 |
-
"_diffusers_version": "0.
|
| 4 |
"feature_extractor": [
|
| 5 |
"transformers",
|
| 6 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
],
|
| 8 |
"requires_safety_checker": true,
|
| 9 |
"safety_checker": [
|
| 10 |
-
|
| 11 |
-
|
| 12 |
],
|
| 13 |
"scheduler": [
|
| 14 |
"diffusers",
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "StableDiffusionPipeline",
|
| 3 |
+
"_diffusers_version": "0.32.2",
|
| 4 |
"feature_extractor": [
|
| 5 |
"transformers",
|
| 6 |
+
"CLIPImageProcessor"
|
| 7 |
+
],
|
| 8 |
+
"image_encoder": [
|
| 9 |
+
null,
|
| 10 |
+
null
|
| 11 |
],
|
| 12 |
"requires_safety_checker": true,
|
| 13 |
"safety_checker": [
|
| 14 |
+
null,
|
| 15 |
+
null
|
| 16 |
],
|
| 17 |
"scheduler": [
|
| 18 |
"diffusers",
|
scheduler/scheduler_config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "PNDMScheduler",
|
| 3 |
-
"_diffusers_version": "0.
|
| 4 |
"beta_end": 0.012,
|
| 5 |
"beta_schedule": "scaled_linear",
|
| 6 |
"beta_start": 0.00085,
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "PNDMScheduler",
|
| 3 |
+
"_diffusers_version": "0.32.2",
|
| 4 |
"beta_end": 0.012,
|
| 5 |
"beta_schedule": "scaled_linear",
|
| 6 |
"beta_start": 0.00085,
|
text_encoder/config.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"CLIPTextModel"
|
| 4 |
],
|
|
@@ -18,7 +19,7 @@
|
|
| 18 |
"num_hidden_layers": 12,
|
| 19 |
"pad_token_id": 1,
|
| 20 |
"projection_dim": 768,
|
| 21 |
-
"torch_dtype": "
|
| 22 |
-
"transformers_version": "4.
|
| 23 |
"vocab_size": 49408
|
| 24 |
}
|
|
|
|
| 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.43.1",
|
| 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:b07af3ffad36071a91431dbd9a1259e511e0c333c0bb95dbda14b87c0ae4f68d
|
| 3 |
+
size 246144152
|
tokenizer/tokenizer_config.json
CHANGED
|
@@ -1,33 +1,30 @@
|
|
| 1 |
{
|
| 2 |
"add_prefix_space": false,
|
| 3 |
-
"
|
| 4 |
-
"
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
},
|
|
|
|
| 11 |
"clean_up_tokenization_spaces": true,
|
| 12 |
"do_lower_case": true,
|
| 13 |
-
"eos_token":
|
| 14 |
-
"__type": "AddedToken",
|
| 15 |
-
"content": "<|endoftext|>",
|
| 16 |
-
"lstrip": false,
|
| 17 |
-
"normalized": true,
|
| 18 |
-
"rstrip": false,
|
| 19 |
-
"single_word": false
|
| 20 |
-
},
|
| 21 |
"errors": "replace",
|
| 22 |
"model_max_length": 77,
|
| 23 |
"pad_token": "<|endoftext|>",
|
| 24 |
"tokenizer_class": "CLIPTokenizer",
|
| 25 |
-
"unk_token":
|
| 26 |
-
"__type": "AddedToken",
|
| 27 |
-
"content": "<|endoftext|>",
|
| 28 |
-
"lstrip": false,
|
| 29 |
-
"normalized": true,
|
| 30 |
-
"rstrip": false,
|
| 31 |
-
"single_word": false
|
| 32 |
-
}
|
| 33 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"add_prefix_space": false,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"49406": {
|
| 5 |
+
"content": "<|startoftext|>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": true,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"49407": {
|
| 13 |
+
"content": "<|endoftext|>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": true,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
}
|
| 20 |
},
|
| 21 |
+
"bos_token": "<|startoftext|>",
|
| 22 |
"clean_up_tokenization_spaces": true,
|
| 23 |
"do_lower_case": true,
|
| 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 |
}
|
unet/config.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "UNet2DConditionModel",
|
| 3 |
-
"_diffusers_version": "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": 8,
|
|
|
|
| 9 |
"block_out_channels": [
|
| 10 |
320,
|
| 11 |
640,
|
|
@@ -26,6 +27,7 @@
|
|
| 26 |
"DownBlock2D"
|
| 27 |
],
|
| 28 |
"downsample_padding": 1,
|
|
|
|
| 29 |
"dual_cross_attention": false,
|
| 30 |
"encoder_hid_dim": null,
|
| 31 |
"encoder_hid_dim_type": null,
|
|
@@ -46,6 +48,7 @@
|
|
| 46 |
"resnet_out_scale_factor": 1.0,
|
| 47 |
"resnet_skip_time_act": false,
|
| 48 |
"resnet_time_scale_shift": "default",
|
|
|
|
| 49 |
"sample_size": 64,
|
| 50 |
"time_cond_proj_dim": null,
|
| 51 |
"time_embedding_act_fn": null,
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "UNet2DConditionModel",
|
| 3 |
+
"_diffusers_version": "0.32.2",
|
| 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": 8,
|
| 9 |
+
"attention_type": "default",
|
| 10 |
"block_out_channels": [
|
| 11 |
320,
|
| 12 |
640,
|
|
|
|
| 27 |
"DownBlock2D"
|
| 28 |
],
|
| 29 |
"downsample_padding": 1,
|
| 30 |
+
"dropout": 0.0,
|
| 31 |
"dual_cross_attention": false,
|
| 32 |
"encoder_hid_dim": null,
|
| 33 |
"encoder_hid_dim_type": null,
|
|
|
|
| 48 |
"resnet_out_scale_factor": 1.0,
|
| 49 |
"resnet_skip_time_act": false,
|
| 50 |
"resnet_time_scale_shift": "default",
|
| 51 |
+
"reverse_transformer_layers_per_block": null,
|
| 52 |
"sample_size": 64,
|
| 53 |
"time_cond_proj_dim": null,
|
| 54 |
"time_embedding_act_fn": null,
|
unet/diffusion_pytorch_model.fp16.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a79d5d16e420b0ed3c337d17e0987023be1e7e3e21de99a39eaff0df5ddcaa3
|
| 3 |
+
size 1719125304
|
vae/config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "AutoencoderKL",
|
| 3 |
-
"_diffusers_version": "0.
|
| 4 |
"act_fn": "silu",
|
| 5 |
"block_out_channels": [
|
| 6 |
128,
|
|
@@ -17,15 +17,21 @@
|
|
| 17 |
"force_upcast": true,
|
| 18 |
"in_channels": 3,
|
| 19 |
"latent_channels": 4,
|
|
|
|
|
|
|
| 20 |
"layers_per_block": 2,
|
|
|
|
| 21 |
"norm_num_groups": 32,
|
| 22 |
"out_channels": 3,
|
| 23 |
"sample_size": 512,
|
| 24 |
"scaling_factor": 0.18215,
|
|
|
|
| 25 |
"up_block_types": [
|
| 26 |
"UpDecoderBlock2D",
|
| 27 |
"UpDecoderBlock2D",
|
| 28 |
"UpDecoderBlock2D",
|
| 29 |
"UpDecoderBlock2D"
|
| 30 |
-
]
|
|
|
|
|
|
|
| 31 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "AutoencoderKL",
|
| 3 |
+
"_diffusers_version": "0.32.2",
|
| 4 |
"act_fn": "silu",
|
| 5 |
"block_out_channels": [
|
| 6 |
128,
|
|
|
|
| 17 |
"force_upcast": true,
|
| 18 |
"in_channels": 3,
|
| 19 |
"latent_channels": 4,
|
| 20 |
+
"latents_mean": null,
|
| 21 |
+
"latents_std": null,
|
| 22 |
"layers_per_block": 2,
|
| 23 |
+
"mid_block_add_attention": true,
|
| 24 |
"norm_num_groups": 32,
|
| 25 |
"out_channels": 3,
|
| 26 |
"sample_size": 512,
|
| 27 |
"scaling_factor": 0.18215,
|
| 28 |
+
"shift_factor": null,
|
| 29 |
"up_block_types": [
|
| 30 |
"UpDecoderBlock2D",
|
| 31 |
"UpDecoderBlock2D",
|
| 32 |
"UpDecoderBlock2D",
|
| 33 |
"UpDecoderBlock2D"
|
| 34 |
+
],
|
| 35 |
+
"use_post_quant_conv": true,
|
| 36 |
+
"use_quant_conv": true
|
| 37 |
}
|
vae/diffusion_pytorch_model.fp16.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f8ff4aca72f0bb81f83115ac7a5df8af1fde43e4401fff9e7f32e8828b0550e
|
| 3 |
+
size 167335342
|