Upload StableDiffusionXLInpaintPipeline
Browse files- feature_extractor/preprocessor_config.json +27 -0
- model_index.json +7 -7
- scheduler/scheduler_config.json +7 -7
- text_encoder/config.json +1 -1
- unet/config.json +2 -10
- vae/config.json +1 -2
feature_extractor/preprocessor_config.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_size": {
|
3 |
+
"height": 224,
|
4 |
+
"width": 224
|
5 |
+
},
|
6 |
+
"do_center_crop": true,
|
7 |
+
"do_convert_rgb": true,
|
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": "CLIPFeatureExtractor",
|
17 |
+
"image_std": [
|
18 |
+
0.26862954,
|
19 |
+
0.26130258,
|
20 |
+
0.27577711
|
21 |
+
],
|
22 |
+
"resample": 3,
|
23 |
+
"rescale_factor": 0.00392156862745098,
|
24 |
+
"size": {
|
25 |
+
"shortest_edge": 224
|
26 |
+
}
|
27 |
+
}
|
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 |
+
"transformers",
|
6 |
+
"CLIPFeatureExtractor"
|
7 |
],
|
8 |
"force_zeros_for_empty_prompt": true,
|
9 |
"image_encoder": [
|
|
|
13 |
"requires_aesthetics_score": false,
|
14 |
"scheduler": [
|
15 |
"diffusers",
|
16 |
+
"DEISMultistepScheduler"
|
17 |
],
|
18 |
"text_encoder": [
|
19 |
"transformers",
|
20 |
"CLIPTextModel"
|
21 |
],
|
22 |
"text_encoder_2": [
|
23 |
+
null,
|
24 |
+
null
|
25 |
],
|
26 |
"tokenizer": [
|
27 |
"transformers",
|
28 |
"CLIPTokenizer"
|
29 |
],
|
30 |
"tokenizer_2": [
|
31 |
+
null,
|
32 |
+
null
|
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 |
"beta_end": 0.012,
|
5 |
"beta_schedule": "scaled_linear",
|
6 |
"beta_start": 0.00085,
|
7 |
"clip_sample": false,
|
8 |
-
"
|
9 |
-
"
|
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 |
}
|
|
|
1 |
{
|
2 |
+
"_class_name": "DEISMultistepScheduler",
|
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 |
+
"dynamic_thresholding_ratio": 0.995,
|
10 |
+
"lower_order_final": true,
|
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 |
}
|
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/patrick/.cache/huggingface/hub/models--lykon-models--dreamshaper-8-inpainting/snapshots/15dcb9dec91a39ee498e3917c9ef6174b103862d/text_encoder",
|
3 |
"architectures": [
|
4 |
"CLIPTextModel"
|
5 |
],
|
unet/config.json
CHANGED
@@ -1,7 +1,6 @@
|
|
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,7 +23,6 @@
|
|
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,26 +36,22 @@
|
|
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":
|
61 |
"time_cond_proj_dim": null,
|
62 |
"time_embedding_act_fn": null,
|
63 |
"time_embedding_dim": null,
|
@@ -73,8 +67,6 @@
|
|
73 |
"CrossAttnUpBlock2D",
|
74 |
"UpBlock2D"
|
75 |
],
|
76 |
-
"upcast_attention":
|
77 |
-
"update_after_step": 0,
|
78 |
-
"use_ema_warmup": false,
|
79 |
"use_linear_projection": true
|
80 |
}
|
|
|
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 |
"conv_out_kernel": 3,
|
24 |
"cross_attention_dim": 2048,
|
25 |
"cross_attention_norm": null,
|
|
|
26 |
"down_block_types": [
|
27 |
"DownBlock2D",
|
28 |
"CrossAttnDownBlock2D",
|
|
|
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": 64,
|
55 |
"time_cond_proj_dim": null,
|
56 |
"time_embedding_act_fn": null,
|
57 |
"time_embedding_dim": null,
|
|
|
67 |
"CrossAttnUpBlock2D",
|
68 |
"UpBlock2D"
|
69 |
],
|
70 |
+
"upcast_attention": false,
|
|
|
|
|
71 |
"use_linear_projection": true
|
72 |
}
|
vae/config.json
CHANGED
@@ -1,7 +1,6 @@
|
|
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,7 +14,7 @@
|
|
15 |
"DownEncoderBlock2D",
|
16 |
"DownEncoderBlock2D"
|
17 |
],
|
18 |
-
"force_upcast":
|
19 |
"in_channels": 3,
|
20 |
"latent_channels": 4,
|
21 |
"latents_mean": null,
|
|
|
1 |
{
|
2 |
"_class_name": "AutoencoderKL",
|
3 |
"_diffusers_version": "0.30.3",
|
|
|
4 |
"act_fn": "silu",
|
5 |
"block_out_channels": [
|
6 |
128,
|
|
|
14 |
"DownEncoderBlock2D",
|
15 |
"DownEncoderBlock2D"
|
16 |
],
|
17 |
+
"force_upcast": true,
|
18 |
"in_channels": 3,
|
19 |
"latent_channels": 4,
|
20 |
"latents_mean": null,
|