Upload StableDiffusionXLInpaintPipeline
Browse files- model_index.json +7 -7
- scheduler/scheduler_config.json +7 -7
- text_encoder/config.json +1 -1
- text_encoder_2/config.json +25 -0
- text_encoder_2/model.safetensors +3 -0
- tokenizer_2/merges.txt +0 -0
- tokenizer_2/special_tokens_map.json +24 -0
- tokenizer_2/tokenizer_config.json +38 -0
- tokenizer_2/vocab.json +0 -0
- unet/config.json +10 -2
- vae/config.json +2 -1
model_index.json
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
"_class_name": "StableDiffusionXLInpaintPipeline",
|
3 |
"_diffusers_version": "0.30.3",
|
4 |
"feature_extractor": [
|
5 |
-
|
6 |
-
|
7 |
],
|
8 |
"force_zeros_for_empty_prompt": true,
|
9 |
"image_encoder": [
|
@@ -13,23 +13,23 @@
|
|
13 |
"requires_aesthetics_score": false,
|
14 |
"scheduler": [
|
15 |
"diffusers",
|
16 |
-
"
|
17 |
],
|
18 |
"text_encoder": [
|
19 |
"transformers",
|
20 |
"CLIPTextModel"
|
21 |
],
|
22 |
"text_encoder_2": [
|
23 |
-
|
24 |
-
|
25 |
],
|
26 |
"tokenizer": [
|
27 |
"transformers",
|
28 |
"CLIPTokenizer"
|
29 |
],
|
30 |
"tokenizer_2": [
|
31 |
-
|
32 |
-
|
33 |
],
|
34 |
"unet": [
|
35 |
"diffusers",
|
|
|
2 |
"_class_name": "StableDiffusionXLInpaintPipeline",
|
3 |
"_diffusers_version": "0.30.3",
|
4 |
"feature_extractor": [
|
5 |
+
null,
|
6 |
+
null
|
7 |
],
|
8 |
"force_zeros_for_empty_prompt": true,
|
9 |
"image_encoder": [
|
|
|
13 |
"requires_aesthetics_score": false,
|
14 |
"scheduler": [
|
15 |
"diffusers",
|
16 |
+
"EulerDiscreteScheduler"
|
17 |
],
|
18 |
"text_encoder": [
|
19 |
"transformers",
|
20 |
"CLIPTextModel"
|
21 |
],
|
22 |
"text_encoder_2": [
|
23 |
+
"transformers",
|
24 |
+
"CLIPTextModelWithProjection"
|
25 |
],
|
26 |
"tokenizer": [
|
27 |
"transformers",
|
28 |
"CLIPTokenizer"
|
29 |
],
|
30 |
"tokenizer_2": [
|
31 |
+
"transformers",
|
32 |
+
"CLIPTokenizer"
|
33 |
],
|
34 |
"unet": [
|
35 |
"diffusers",
|
scheduler/scheduler_config.json
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
{
|
2 |
-
"_class_name": "
|
3 |
"_diffusers_version": "0.30.3",
|
4 |
-
"algorithm_type": "deis",
|
5 |
"beta_end": 0.012,
|
6 |
"beta_schedule": "scaled_linear",
|
7 |
"beta_start": 0.00085,
|
8 |
"clip_sample": false,
|
9 |
-
"
|
10 |
-
"
|
11 |
"num_train_timesteps": 1000,
|
12 |
"prediction_type": "epsilon",
|
|
|
13 |
"sample_max_value": 1.0,
|
14 |
"set_alpha_to_one": false,
|
|
|
|
|
15 |
"skip_prk_steps": true,
|
16 |
-
"solver_order": 2,
|
17 |
-
"solver_type": "logrho",
|
18 |
"steps_offset": 1,
|
19 |
-
"thresholding": false,
|
20 |
"timestep_spacing": "leading",
|
|
|
21 |
"trained_betas": null,
|
22 |
"use_karras_sigmas": false
|
23 |
}
|
|
|
1 |
{
|
2 |
+
"_class_name": "EulerDiscreteScheduler",
|
3 |
"_diffusers_version": "0.30.3",
|
|
|
4 |
"beta_end": 0.012,
|
5 |
"beta_schedule": "scaled_linear",
|
6 |
"beta_start": 0.00085,
|
7 |
"clip_sample": false,
|
8 |
+
"final_sigmas_type": "zero",
|
9 |
+
"interpolation_type": "linear",
|
10 |
"num_train_timesteps": 1000,
|
11 |
"prediction_type": "epsilon",
|
12 |
+
"rescale_betas_zero_snr": false,
|
13 |
"sample_max_value": 1.0,
|
14 |
"set_alpha_to_one": false,
|
15 |
+
"sigma_max": null,
|
16 |
+
"sigma_min": null,
|
17 |
"skip_prk_steps": true,
|
|
|
|
|
18 |
"steps_offset": 1,
|
|
|
19 |
"timestep_spacing": "leading",
|
20 |
+
"timestep_type": "discrete",
|
21 |
"trained_betas": null,
|
22 |
"use_karras_sigmas": false
|
23 |
}
|
text_encoder/config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "/home/
|
3 |
"architectures": [
|
4 |
"CLIPTextModel"
|
5 |
],
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "/home/suraj_huggingface_co/.cache/huggingface/hub/models--stabilityai--stable-diffusion-xl-base-1.0/snapshots/bf714989e22c57ddc1c453bf74dab4521acb81d8/text_encoder",
|
3 |
"architectures": [
|
4 |
"CLIPTextModel"
|
5 |
],
|
text_encoder_2/config.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/home/suraj_huggingface_co/.cache/huggingface/hub/models--stabilityai--stable-diffusion-xl-base-1.0/snapshots/bf714989e22c57ddc1c453bf74dab4521acb81d8/text_encoder_2",
|
3 |
+
"architectures": [
|
4 |
+
"CLIPTextModelWithProjection"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"dropout": 0.0,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_size": 1280,
|
12 |
+
"initializer_factor": 1.0,
|
13 |
+
"initializer_range": 0.02,
|
14 |
+
"intermediate_size": 5120,
|
15 |
+
"layer_norm_eps": 1e-05,
|
16 |
+
"max_position_embeddings": 77,
|
17 |
+
"model_type": "clip_text_model",
|
18 |
+
"num_attention_heads": 20,
|
19 |
+
"num_hidden_layers": 32,
|
20 |
+
"pad_token_id": 1,
|
21 |
+
"projection_dim": 1280,
|
22 |
+
"torch_dtype": "float16",
|
23 |
+
"transformers_version": "4.44.2",
|
24 |
+
"vocab_size": 49408
|
25 |
+
}
|
text_encoder_2/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f92221e08b6de7337c9ce2098716ecbbc02bac9feb5922ec0b5f6263888268a5
|
3 |
+
size 1389382176
|
tokenizer_2/merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_2/special_tokens_map.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<|startoftext|>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<|endoftext|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": "!",
|
17 |
+
"unk_token": {
|
18 |
+
"content": "<|endoftext|>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": true,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
}
|
24 |
+
}
|
tokenizer_2/tokenizer_config.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "!",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"49406": {
|
13 |
+
"content": "<|startoftext|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"49407": {
|
21 |
+
"content": "<|endoftext|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
}
|
28 |
+
},
|
29 |
+
"bos_token": "<|startoftext|>",
|
30 |
+
"clean_up_tokenization_spaces": true,
|
31 |
+
"do_lower_case": true,
|
32 |
+
"eos_token": "<|endoftext|>",
|
33 |
+
"errors": "replace",
|
34 |
+
"model_max_length": 77,
|
35 |
+
"pad_token": "!",
|
36 |
+
"tokenizer_class": "CLIPTokenizer",
|
37 |
+
"unk_token": "<|endoftext|>"
|
38 |
+
}
|
tokenizer_2/vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
unet/config.json
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
{
|
2 |
"_class_name": "UNet2DConditionModel",
|
3 |
"_diffusers_version": "0.30.3",
|
|
|
4 |
"act_fn": "silu",
|
5 |
"addition_embed_type": "text_time",
|
6 |
"addition_embed_type_num_heads": 64,
|
@@ -23,6 +24,7 @@
|
|
23 |
"conv_out_kernel": 3,
|
24 |
"cross_attention_dim": 2048,
|
25 |
"cross_attention_norm": null,
|
|
|
26 |
"down_block_types": [
|
27 |
"DownBlock2D",
|
28 |
"CrossAttnDownBlock2D",
|
@@ -36,22 +38,26 @@
|
|
36 |
"flip_sin_to_cos": true,
|
37 |
"freq_shift": 0,
|
38 |
"in_channels": 9,
|
|
|
39 |
"layers_per_block": 2,
|
40 |
"mid_block_only_cross_attention": null,
|
41 |
"mid_block_scale_factor": 1,
|
42 |
"mid_block_type": "UNetMidBlock2DCrossAttn",
|
|
|
43 |
"norm_eps": 1e-05,
|
44 |
"norm_num_groups": 32,
|
45 |
"num_attention_heads": null,
|
46 |
"num_class_embeds": null,
|
47 |
"only_cross_attention": false,
|
|
|
48 |
"out_channels": 4,
|
|
|
49 |
"projection_class_embeddings_input_dim": 2816,
|
50 |
"resnet_out_scale_factor": 1.0,
|
51 |
"resnet_skip_time_act": false,
|
52 |
"resnet_time_scale_shift": "default",
|
53 |
"reverse_transformer_layers_per_block": null,
|
54 |
-
"sample_size":
|
55 |
"time_cond_proj_dim": null,
|
56 |
"time_embedding_act_fn": null,
|
57 |
"time_embedding_dim": null,
|
@@ -67,6 +73,8 @@
|
|
67 |
"CrossAttnUpBlock2D",
|
68 |
"UpBlock2D"
|
69 |
],
|
70 |
-
"upcast_attention":
|
|
|
|
|
71 |
"use_linear_projection": true
|
72 |
}
|
|
|
1 |
{
|
2 |
"_class_name": "UNet2DConditionModel",
|
3 |
"_diffusers_version": "0.30.3",
|
4 |
+
"_name_or_path": "valhalla/sdxl-inpaint-ema",
|
5 |
"act_fn": "silu",
|
6 |
"addition_embed_type": "text_time",
|
7 |
"addition_embed_type_num_heads": 64,
|
|
|
24 |
"conv_out_kernel": 3,
|
25 |
"cross_attention_dim": 2048,
|
26 |
"cross_attention_norm": null,
|
27 |
+
"decay": 0.9999,
|
28 |
"down_block_types": [
|
29 |
"DownBlock2D",
|
30 |
"CrossAttnDownBlock2D",
|
|
|
38 |
"flip_sin_to_cos": true,
|
39 |
"freq_shift": 0,
|
40 |
"in_channels": 9,
|
41 |
+
"inv_gamma": 1.0,
|
42 |
"layers_per_block": 2,
|
43 |
"mid_block_only_cross_attention": null,
|
44 |
"mid_block_scale_factor": 1,
|
45 |
"mid_block_type": "UNetMidBlock2DCrossAttn",
|
46 |
+
"min_decay": 0.0,
|
47 |
"norm_eps": 1e-05,
|
48 |
"norm_num_groups": 32,
|
49 |
"num_attention_heads": null,
|
50 |
"num_class_embeds": null,
|
51 |
"only_cross_attention": false,
|
52 |
+
"optimization_step": 37000,
|
53 |
"out_channels": 4,
|
54 |
+
"power": 0.6666666666666666,
|
55 |
"projection_class_embeddings_input_dim": 2816,
|
56 |
"resnet_out_scale_factor": 1.0,
|
57 |
"resnet_skip_time_act": false,
|
58 |
"resnet_time_scale_shift": "default",
|
59 |
"reverse_transformer_layers_per_block": null,
|
60 |
+
"sample_size": 128,
|
61 |
"time_cond_proj_dim": null,
|
62 |
"time_embedding_act_fn": null,
|
63 |
"time_embedding_dim": null,
|
|
|
73 |
"CrossAttnUpBlock2D",
|
74 |
"UpBlock2D"
|
75 |
],
|
76 |
+
"upcast_attention": null,
|
77 |
+
"update_after_step": 0,
|
78 |
+
"use_ema_warmup": false,
|
79 |
"use_linear_projection": true
|
80 |
}
|
vae/config.json
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
{
|
2 |
"_class_name": "AutoencoderKL",
|
3 |
"_diffusers_version": "0.30.3",
|
|
|
4 |
"act_fn": "silu",
|
5 |
"block_out_channels": [
|
6 |
128,
|
@@ -14,7 +15,7 @@
|
|
14 |
"DownEncoderBlock2D",
|
15 |
"DownEncoderBlock2D"
|
16 |
],
|
17 |
-
"force_upcast":
|
18 |
"in_channels": 3,
|
19 |
"latent_channels": 4,
|
20 |
"latents_mean": null,
|
|
|
1 |
{
|
2 |
"_class_name": "AutoencoderKL",
|
3 |
"_diffusers_version": "0.30.3",
|
4 |
+
"_name_or_path": "madebyollin/sdxl-vae-fp16-fix",
|
5 |
"act_fn": "silu",
|
6 |
"block_out_channels": [
|
7 |
128,
|
|
|
15 |
"DownEncoderBlock2D",
|
16 |
"DownEncoderBlock2D"
|
17 |
],
|
18 |
+
"force_upcast": false,
|
19 |
"in_channels": 3,
|
20 |
"latent_channels": 4,
|
21 |
"latents_mean": null,
|