Commit
·
685f2e6
1
Parent(s):
461283b
First model version
Browse files- ema_unet/config.json +61 -0
- ema_unet/diffusion_pytorch_model.safetensors +3 -0
- model_index.json +2 -2
- scheduler/scheduler_config.json +10 -3
- text_encoder/config.json +2 -2
- vae/diffusion_pytorch_model.bin → text_encoder/model.safetensors +2 -2
- tokenizer/tokenizer_config.json +1 -2
- unet/config.json +22 -2
- unet/diffusion_pytorch_model.safetensors +3 -0
- vae/config.json +4 -2
- vae/diffusion_pytorch_model.safetensors +3 -0
ema_unet/config.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "UNet2DConditionModel",
|
| 3 |
+
"_diffusers_version": "0.16.1",
|
| 4 |
+
"_name_or_path": "/workspace/stable-diffusion-webui/models/dreambooth/test/working",
|
| 5 |
+
"act_fn": "silu",
|
| 6 |
+
"addition_embed_type": null,
|
| 7 |
+
"addition_embed_type_num_heads": 64,
|
| 8 |
+
"attention_head_dim": 8,
|
| 9 |
+
"block_out_channels": [
|
| 10 |
+
320,
|
| 11 |
+
640,
|
| 12 |
+
1280,
|
| 13 |
+
1280
|
| 14 |
+
],
|
| 15 |
+
"center_input_sample": false,
|
| 16 |
+
"class_embed_type": null,
|
| 17 |
+
"class_embeddings_concat": false,
|
| 18 |
+
"conv_in_kernel": 3,
|
| 19 |
+
"conv_out_kernel": 3,
|
| 20 |
+
"cross_attention_dim": 768,
|
| 21 |
+
"cross_attention_norm": null,
|
| 22 |
+
"down_block_types": [
|
| 23 |
+
"CrossAttnDownBlock2D",
|
| 24 |
+
"CrossAttnDownBlock2D",
|
| 25 |
+
"CrossAttnDownBlock2D",
|
| 26 |
+
"DownBlock2D"
|
| 27 |
+
],
|
| 28 |
+
"downsample_padding": 1,
|
| 29 |
+
"dual_cross_attention": false,
|
| 30 |
+
"encoder_hid_dim": 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_class_embeds": null,
|
| 41 |
+
"only_cross_attention": false,
|
| 42 |
+
"out_channels": 4,
|
| 43 |
+
"projection_class_embeddings_input_dim": null,
|
| 44 |
+
"resnet_out_scale_factor": 1.0,
|
| 45 |
+
"resnet_skip_time_act": false,
|
| 46 |
+
"resnet_time_scale_shift": "default",
|
| 47 |
+
"sample_size": 96,
|
| 48 |
+
"time_cond_proj_dim": null,
|
| 49 |
+
"time_embedding_act_fn": null,
|
| 50 |
+
"time_embedding_dim": null,
|
| 51 |
+
"time_embedding_type": "positional",
|
| 52 |
+
"timestep_post_act": null,
|
| 53 |
+
"up_block_types": [
|
| 54 |
+
"UpBlock2D",
|
| 55 |
+
"CrossAttnUpBlock2D",
|
| 56 |
+
"CrossAttnUpBlock2D",
|
| 57 |
+
"CrossAttnUpBlock2D"
|
| 58 |
+
],
|
| 59 |
+
"upcast_attention": false,
|
| 60 |
+
"use_linear_projection": false
|
| 61 |
+
}
|
ema_unet/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc827caae77ad16410c1d5d4d378a25cf889409be4996ed32b1654b43e050a07
|
| 3 |
+
size 1719125992
|
model_index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "StableDiffusionPipeline",
|
| 3 |
-
"_diffusers_version": "0.
|
| 4 |
"feature_extractor": [
|
| 5 |
null,
|
| 6 |
null
|
|
@@ -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.16.1",
|
| 4 |
"feature_extractor": [
|
| 5 |
null,
|
| 6 |
null
|
|
|
|
| 12 |
],
|
| 13 |
"scheduler": [
|
| 14 |
"diffusers",
|
| 15 |
+
"DEISMultistepScheduler"
|
| 16 |
],
|
| 17 |
"text_encoder": [
|
| 18 |
"transformers",
|
scheduler/scheduler_config.json
CHANGED
|
@@ -1,14 +1,21 @@
|
|
| 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 |
"num_train_timesteps": 1000,
|
| 9 |
"prediction_type": "epsilon",
|
|
|
|
| 10 |
"set_alpha_to_one": false,
|
| 11 |
-
"
|
|
|
|
| 12 |
"steps_offset": 1,
|
|
|
|
| 13 |
"trained_betas": null
|
| 14 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_class_name": "DEISMultistepScheduler",
|
| 3 |
+
"_diffusers_version": "0.16.1",
|
| 4 |
+
"algorithm_type": "deis",
|
| 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 |
+
"lower_order_final": true,
|
| 12 |
"num_train_timesteps": 1000,
|
| 13 |
"prediction_type": "epsilon",
|
| 14 |
+
"sample_max_value": 1.0,
|
| 15 |
"set_alpha_to_one": false,
|
| 16 |
+
"solver_order": 2,
|
| 17 |
+
"solver_type": "logrho",
|
| 18 |
"steps_offset": 1,
|
| 19 |
+
"thresholding": false,
|
| 20 |
"trained_betas": null
|
| 21 |
}
|
text_encoder/config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"CLIPTextModel"
|
| 5 |
],
|
|
@@ -20,6 +20,6 @@
|
|
| 20 |
"pad_token_id": 1,
|
| 21 |
"projection_dim": 768,
|
| 22 |
"torch_dtype": "float32",
|
| 23 |
-
"transformers_version": "4.
|
| 24 |
"vocab_size": 49408
|
| 25 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "/workspace/stable-diffusion-webui/models/dreambooth/test/working",
|
| 3 |
"architectures": [
|
| 4 |
"CLIPTextModel"
|
| 5 |
],
|
|
|
|
| 20 |
"pad_token_id": 1,
|
| 21 |
"projection_dim": 768,
|
| 22 |
"torch_dtype": "float32",
|
| 23 |
+
"transformers_version": "4.29.2",
|
| 24 |
"vocab_size": 49408
|
| 25 |
}
|
vae/diffusion_pytorch_model.bin → text_encoder/model.safetensors
RENAMED
|
@@ -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:4319e140d9462670beb1281c7b04809d411aa155109b93c88655f2da6a5e8d3c
|
| 3 |
+
size 492265880
|
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": "runwayml/stable-diffusion-v1-5",
|
| 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,10 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "UNet2DConditionModel",
|
| 3 |
-
"_diffusers_version": "0.
|
|
|
|
| 4 |
"act_fn": "silu",
|
|
|
|
|
|
|
| 5 |
"attention_head_dim": 8,
|
| 6 |
"block_out_channels": [
|
| 7 |
320,
|
|
@@ -10,7 +13,12 @@
|
|
| 10 |
1280
|
| 11 |
],
|
| 12 |
"center_input_sample": false,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
"cross_attention_dim": 768,
|
|
|
|
| 14 |
"down_block_types": [
|
| 15 |
"CrossAttnDownBlock2D",
|
| 16 |
"CrossAttnDownBlock2D",
|
|
@@ -19,17 +27,29 @@
|
|
| 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 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
"up_block_types": [
|
| 34 |
"UpBlock2D",
|
| 35 |
"CrossAttnUpBlock2D",
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "UNet2DConditionModel",
|
| 3 |
+
"_diffusers_version": "0.16.1",
|
| 4 |
+
"_name_or_path": "/workspace/stable-diffusion-webui/models/dreambooth/test/working",
|
| 5 |
"act_fn": "silu",
|
| 6 |
+
"addition_embed_type": null,
|
| 7 |
+
"addition_embed_type_num_heads": 64,
|
| 8 |
"attention_head_dim": 8,
|
| 9 |
"block_out_channels": [
|
| 10 |
320,
|
|
|
|
| 13 |
1280
|
| 14 |
],
|
| 15 |
"center_input_sample": false,
|
| 16 |
+
"class_embed_type": null,
|
| 17 |
+
"class_embeddings_concat": false,
|
| 18 |
+
"conv_in_kernel": 3,
|
| 19 |
+
"conv_out_kernel": 3,
|
| 20 |
"cross_attention_dim": 768,
|
| 21 |
+
"cross_attention_norm": null,
|
| 22 |
"down_block_types": [
|
| 23 |
"CrossAttnDownBlock2D",
|
| 24 |
"CrossAttnDownBlock2D",
|
|
|
|
| 27 |
],
|
| 28 |
"downsample_padding": 1,
|
| 29 |
"dual_cross_attention": false,
|
| 30 |
+
"encoder_hid_dim": 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_class_embeds": null,
|
| 41 |
"only_cross_attention": false,
|
| 42 |
"out_channels": 4,
|
| 43 |
+
"projection_class_embeddings_input_dim": null,
|
| 44 |
+
"resnet_out_scale_factor": 1.0,
|
| 45 |
+
"resnet_skip_time_act": false,
|
| 46 |
+
"resnet_time_scale_shift": "default",
|
| 47 |
+
"sample_size": 96,
|
| 48 |
+
"time_cond_proj_dim": null,
|
| 49 |
+
"time_embedding_act_fn": null,
|
| 50 |
+
"time_embedding_dim": null,
|
| 51 |
+
"time_embedding_type": "positional",
|
| 52 |
+
"timestep_post_act": null,
|
| 53 |
"up_block_types": [
|
| 54 |
"UpBlock2D",
|
| 55 |
"CrossAttnUpBlock2D",
|
unet/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:49165cecd6fa1a88870c686748563aaa25c99adc06aae89d90487fbd598a3a1a
|
| 3 |
+
size 3438167536
|
vae/config.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "AutoencoderKL",
|
| 3 |
-
"_diffusers_version": "0.
|
|
|
|
| 4 |
"act_fn": "silu",
|
| 5 |
"block_out_channels": [
|
| 6 |
128,
|
|
@@ -19,7 +20,8 @@
|
|
| 19 |
"layers_per_block": 2,
|
| 20 |
"norm_num_groups": 32,
|
| 21 |
"out_channels": 3,
|
| 22 |
-
"sample_size":
|
|
|
|
| 23 |
"up_block_types": [
|
| 24 |
"UpDecoderBlock2D",
|
| 25 |
"UpDecoderBlock2D",
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "AutoencoderKL",
|
| 3 |
+
"_diffusers_version": "0.16.1",
|
| 4 |
+
"_name_or_path": "/workspace/stable-diffusion-webui/models/dreambooth/test/working",
|
| 5 |
"act_fn": "silu",
|
| 6 |
"block_out_channels": [
|
| 7 |
128,
|
|
|
|
| 20 |
"layers_per_block": 2,
|
| 21 |
"norm_num_groups": 32,
|
| 22 |
"out_channels": 3,
|
| 23 |
+
"sample_size": 768,
|
| 24 |
+
"scaling_factor": 0.18215,
|
| 25 |
"up_block_types": [
|
| 26 |
"UpDecoderBlock2D",
|
| 27 |
"UpDecoderBlock2D",
|
vae/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:794220001bb42c5e3a9ea21062abdc9772f3a1050a326ce7a88eba920f0736a4
|
| 3 |
+
size 167335598
|