Commit
·
decbd0a
1
Parent(s):
cec8e79
Convert model to Safetensors format and optimize structure
Browse files- model_index.json +6 -2
- scheduler/scheduler_config.json +11 -1
- text_encoder/config.json +2 -3
- text_encoder/model.safetensors +3 -0
- tokenizer/tokenizer_config.json +21 -23
- unet/config.json +64 -32
- unet/diffusion_pytorch_model.safetensors +3 -0
- vae/config.json +9 -3
- vae/diffusion_pytorch_model.safetensors +3 -0
model_index.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "StableDiffusionPipeline",
|
| 3 |
-
"_diffusers_version": "0.
|
| 4 |
-
"_name_or_path": "
|
| 5 |
"feature_extractor": [
|
| 6 |
null,
|
| 7 |
null
|
| 8 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
"requires_safety_checker": false,
|
| 10 |
"safety_checker": [
|
| 11 |
null,
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "StableDiffusionPipeline",
|
| 3 |
+
"_diffusers_version": "0.35.2",
|
| 4 |
+
"_name_or_path": "HyHorX/realistic-diffusion-v1",
|
| 5 |
"feature_extractor": [
|
| 6 |
null,
|
| 7 |
null
|
| 8 |
],
|
| 9 |
+
"image_encoder": [
|
| 10 |
+
null,
|
| 11 |
+
null
|
| 12 |
+
],
|
| 13 |
"requires_safety_checker": false,
|
| 14 |
"safety_checker": [
|
| 15 |
null,
|
scheduler/scheduler_config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "DPMSolverMultistepScheduler",
|
| 3 |
-
"_diffusers_version": "0.
|
| 4 |
"algorithm_type": "dpmsolver++",
|
| 5 |
"beta_end": 0.012,
|
| 6 |
"beta_schedule": "scaled_linear",
|
|
@@ -8,18 +8,28 @@
|
|
| 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 |
"sample_max_value": 1.0,
|
| 16 |
"set_alpha_to_one": false,
|
| 17 |
"solver_order": 2,
|
| 18 |
"solver_type": "midpoint",
|
| 19 |
"steps_offset": 1,
|
| 20 |
"thresholding": false,
|
|
|
|
| 21 |
"timestep_spacing": "linspace",
|
| 22 |
"trained_betas": null,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
"use_karras_sigmas": false,
|
|
|
|
| 24 |
"variance_type": null
|
| 25 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "DPMSolverMultistepScheduler",
|
| 3 |
+
"_diffusers_version": "0.35.2",
|
| 4 |
"algorithm_type": "dpmsolver++",
|
| 5 |
"beta_end": 0.012,
|
| 6 |
"beta_schedule": "scaled_linear",
|
|
|
|
| 8 |
"clip_sample": false,
|
| 9 |
"clip_sample_range": 1.0,
|
| 10 |
"dynamic_thresholding_ratio": 0.995,
|
| 11 |
+
"euler_at_final": false,
|
| 12 |
+
"final_sigmas_type": "zero",
|
| 13 |
+
"flow_shift": 1.0,
|
| 14 |
"lambda_min_clipped": -Infinity,
|
| 15 |
"lower_order_final": true,
|
| 16 |
"num_train_timesteps": 1000,
|
| 17 |
"prediction_type": "epsilon",
|
| 18 |
+
"rescale_betas_zero_snr": false,
|
| 19 |
"sample_max_value": 1.0,
|
| 20 |
"set_alpha_to_one": false,
|
| 21 |
"solver_order": 2,
|
| 22 |
"solver_type": "midpoint",
|
| 23 |
"steps_offset": 1,
|
| 24 |
"thresholding": false,
|
| 25 |
+
"time_shift_type": "exponential",
|
| 26 |
"timestep_spacing": "linspace",
|
| 27 |
"trained_betas": null,
|
| 28 |
+
"use_beta_sigmas": false,
|
| 29 |
+
"use_dynamic_shifting": false,
|
| 30 |
+
"use_exponential_sigmas": false,
|
| 31 |
+
"use_flow_sigmas": false,
|
| 32 |
"use_karras_sigmas": false,
|
| 33 |
+
"use_lu_lambdas": false,
|
| 34 |
"variance_type": null
|
| 35 |
}
|
text_encoder/config.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "/home/ubuntu/.cache/huggingface/hub/models--SG161222--Realistic_Vision_V4.0/snapshots/c2ce281f57e54220379e82482708ea925f10770f/text_encoder",
|
| 3 |
"architectures": [
|
| 4 |
"CLIPTextModel"
|
| 5 |
],
|
| 6 |
"attention_dropout": 0.0,
|
| 7 |
"bos_token_id": 0,
|
| 8 |
"dropout": 0.0,
|
|
|
|
| 9 |
"eos_token_id": 2,
|
| 10 |
"hidden_act": "quick_gelu",
|
| 11 |
"hidden_size": 768,
|
|
@@ -19,7 +19,6 @@
|
|
| 19 |
"num_hidden_layers": 12,
|
| 20 |
"pad_token_id": 1,
|
| 21 |
"projection_dim": 768,
|
| 22 |
-
"
|
| 23 |
-
"transformers_version": "4.31.0",
|
| 24 |
"vocab_size": 49408
|
| 25 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"CLIPTextModel"
|
| 4 |
],
|
| 5 |
"attention_dropout": 0.0,
|
| 6 |
"bos_token_id": 0,
|
| 7 |
"dropout": 0.0,
|
| 8 |
+
"dtype": "float16",
|
| 9 |
"eos_token_id": 2,
|
| 10 |
"hidden_act": "quick_gelu",
|
| 11 |
"hidden_size": 768,
|
|
|
|
| 19 |
"num_hidden_layers": 12,
|
| 20 |
"pad_token_id": 1,
|
| 21 |
"projection_dim": 768,
|
| 22 |
+
"transformers_version": "4.57.1",
|
|
|
|
| 23 |
"vocab_size": 49408
|
| 24 |
}
|
text_encoder/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd56d54a36ac54c1de9a247a681059d19751e3706817a09e8b7a75c67ae93584
|
| 3 |
+
size 246144152
|
tokenizer/tokenizer_config.json
CHANGED
|
@@ -1,33 +1,31 @@
|
|
| 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 |
+
"extra_special_tokens": {},
|
| 27 |
"model_max_length": 77,
|
| 28 |
"pad_token": "<|endoftext|>",
|
| 29 |
"tokenizer_class": "CLIPTokenizer",
|
| 30 |
+
"unk_token": "<|endoftext|>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
}
|
unet/config.json
CHANGED
|
@@ -1,33 +1,65 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
"
|
| 25 |
-
"
|
| 26 |
-
"
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
{
|
| 2 |
+
"_class_name": "UNet2DConditionModel",
|
| 3 |
+
"_diffusers_version": "0.35.2",
|
| 4 |
+
"_name_or_path": "/root/.cache/huggingface/hub/models--HyHorX--realistic-diffusion-v1/snapshots/b67ee59f81f4bbfc2ea7587b244e98b16d40f2dd/unet",
|
| 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,
|
| 13 |
+
640,
|
| 14 |
+
1280
|
| 15 |
+
],
|
| 16 |
+
"center_input_sample": false,
|
| 17 |
+
"class_embed_type": null,
|
| 18 |
+
"class_embeddings_concat": false,
|
| 19 |
+
"conv_in_kernel": 3,
|
| 20 |
+
"conv_out_kernel": 3,
|
| 21 |
+
"cross_attention_dim": 768,
|
| 22 |
+
"cross_attention_norm": null,
|
| 23 |
+
"down_block_types": [
|
| 24 |
+
"CrossAttnDownBlock2D",
|
| 25 |
+
"CrossAttnDownBlock2D",
|
| 26 |
+
"CrossAttnDownBlock2D"
|
| 27 |
+
],
|
| 28 |
+
"downsample_padding": 1,
|
| 29 |
+
"dropout": 0.0,
|
| 30 |
+
"dual_cross_attention": false,
|
| 31 |
+
"encoder_hid_dim": null,
|
| 32 |
+
"encoder_hid_dim_type": null,
|
| 33 |
+
"flip_sin_to_cos": true,
|
| 34 |
+
"freq_shift": 0,
|
| 35 |
+
"in_channels": 4,
|
| 36 |
+
"layers_per_block": 1,
|
| 37 |
+
"mid_block_only_cross_attention": null,
|
| 38 |
+
"mid_block_scale_factor": 1,
|
| 39 |
+
"mid_block_type": null,
|
| 40 |
+
"norm_eps": 1e-05,
|
| 41 |
+
"norm_num_groups": 32,
|
| 42 |
+
"num_attention_heads": null,
|
| 43 |
+
"num_class_embeds": null,
|
| 44 |
+
"only_cross_attention": false,
|
| 45 |
+
"out_channels": 4,
|
| 46 |
+
"projection_class_embeddings_input_dim": null,
|
| 47 |
+
"resnet_out_scale_factor": 1.0,
|
| 48 |
+
"resnet_skip_time_act": false,
|
| 49 |
+
"resnet_time_scale_shift": "default",
|
| 50 |
+
"reverse_transformer_layers_per_block": null,
|
| 51 |
+
"sample_size": 64,
|
| 52 |
+
"time_cond_proj_dim": null,
|
| 53 |
+
"time_embedding_act_fn": null,
|
| 54 |
+
"time_embedding_dim": null,
|
| 55 |
+
"time_embedding_type": "positional",
|
| 56 |
+
"timestep_post_act": null,
|
| 57 |
+
"transformer_layers_per_block": 1,
|
| 58 |
+
"up_block_types": [
|
| 59 |
+
"CrossAttnUpBlock2D",
|
| 60 |
+
"CrossAttnUpBlock2D",
|
| 61 |
+
"CrossAttnUpBlock2D"
|
| 62 |
+
],
|
| 63 |
+
"upcast_attention": false,
|
| 64 |
+
"use_linear_projection": false
|
| 65 |
+
}
|
unet/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a42d33f11664e625855aa437dd5aa5dabed711b54d55eb92d5e027db1c04196
|
| 3 |
+
size 646813304
|
vae/config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "AutoencoderKL",
|
| 3 |
-
"_diffusers_version": "0.
|
| 4 |
-
"_name_or_path": "/
|
| 5 |
"act_fn": "silu",
|
| 6 |
"block_out_channels": [
|
| 7 |
128,
|
|
@@ -18,15 +18,21 @@
|
|
| 18 |
"force_upcast": true,
|
| 19 |
"in_channels": 3,
|
| 20 |
"latent_channels": 4,
|
|
|
|
|
|
|
| 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",
|
| 28 |
"UpDecoderBlock2D",
|
| 29 |
"UpDecoderBlock2D",
|
| 30 |
"UpDecoderBlock2D"
|
| 31 |
-
]
|
|
|
|
|
|
|
| 32 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "AutoencoderKL",
|
| 3 |
+
"_diffusers_version": "0.35.2",
|
| 4 |
+
"_name_or_path": "/root/.cache/huggingface/hub/models--HyHorX--realistic-diffusion-v1/snapshots/b67ee59f81f4bbfc2ea7587b244e98b16d40f2dd/vae",
|
| 5 |
"act_fn": "silu",
|
| 6 |
"block_out_channels": [
|
| 7 |
128,
|
|
|
|
| 18 |
"force_upcast": true,
|
| 19 |
"in_channels": 3,
|
| 20 |
"latent_channels": 4,
|
| 21 |
+
"latents_mean": null,
|
| 22 |
+
"latents_std": null,
|
| 23 |
"layers_per_block": 2,
|
| 24 |
+
"mid_block_add_attention": true,
|
| 25 |
"norm_num_groups": 32,
|
| 26 |
"out_channels": 3,
|
| 27 |
"sample_size": 512,
|
| 28 |
"scaling_factor": 0.18215,
|
| 29 |
+
"shift_factor": null,
|
| 30 |
"up_block_types": [
|
| 31 |
"UpDecoderBlock2D",
|
| 32 |
"UpDecoderBlock2D",
|
| 33 |
"UpDecoderBlock2D",
|
| 34 |
"UpDecoderBlock2D"
|
| 35 |
+
],
|
| 36 |
+
"use_post_quant_conv": true,
|
| 37 |
+
"use_quant_conv": true
|
| 38 |
}
|
vae/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:249bd6adf5e03a78cfbc21c689b08f9e285fa49fa81f2cf9ff175c6272a2740a
|
| 3 |
+
size 167335342
|