Kalmuroth
commited on
Commit
·
e8001bc
1
Parent(s):
1a68e0a
update config and safetensor
Browse files- app.py +3 -11
- config.json +40 -115
app.py
CHANGED
@@ -41,20 +41,14 @@ if "IS_SHARED_UI" in os.environ:
|
|
41 |
else:
|
42 |
# Please duplicate this space and delete # character in front of the custom script you want to use or add here more custom scripts with same structure os.system(f"wget -q https://CUSTOM_SCRIPT_URL -O /home/user/app/stable-diffusion-webui/scripts/CUSTOM_SCRIPT_NAME.py")
|
43 |
os.system(f"wget -q https://gist.github.com/camenduru/9ec5f8141db9902e375967e93250860f/raw/d0bcf01786f20107c329c03f8968584ee67be12a/run_n_times.py -O /home/user/app/stable-diffusion-webui/scripts/run_n_times.py")
|
44 |
-
|
45 |
os.system(f"wget https://huggingface.co/Xenos14/Checkpoints/resolve/main/ui-config.json --content-disposition -O /home/user/app/stable-diffusion-webui/ui-config.json")
|
46 |
os.system(f"wget https://huggingface.co/Xenos14/Checkpoints/resolve/main/config.json --content-disposition -O /home/user/app/stable-diffusion-webui/config.json")
|
47 |
|
48 |
# Please duplicate this space and delete # character in front of the extension you want to use or add here more extensions with same structure os.system(f"git clone https://EXTENSION_GIT_URL /home/user/app/stable-diffusion-webui/extensions/EXTENSION_NAME")
|
49 |
os.system(f"git clone https://github.com/Mikubill/sd-webui-controlnet.git /home/user/app/stable-diffusion-webui/extensions/controlnet")
|
50 |
|
51 |
-
os.system(f"wget -q https://
|
52 |
-
os.system(f"wget https://huggingface.co/
|
53 |
-
os.system(f"wget https://huggingface.co/Xenos14/TestBed/resolve/main/2024-Real/XenoGRAPH.safetensors --content-disposition -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/XenoGRAPH.safetensors")
|
54 |
-
os.system(f"wget https://huggingface.co/Xenos14/TestBed/resolve/main/2024-Morph/XenoMORPH-v2.safetensors --content-disposition -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/XenoMORPH-v2.safetensors")
|
55 |
-
os.system(f"wget https://huggingface.co/Xenos14/XenoREALITY/resolve/main/XenTAI_v1.safetensors --content-disposition -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/XenTAI_v1.safetensors")
|
56 |
-
os.system(f"wget https://huggingface.co/Xenos14/TestBed/resolve/main/2024-Real/XenoREALITY-V3.safetensors --content-disposition -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/XenoREALITY-V3.safetensors")
|
57 |
-
os.system(f"wget https://huggingface.co/Xenos14/TestBed/resolve/main/2024-Gen9/XenoENGINE-ArtStyle-v5.safetensors --content-disposition -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/XenoENGINE-ArtStyle-v5.safetensors")
|
58 |
|
59 |
#cards
|
60 |
os.system(f"mkdir /home/user/app/stable-diffusion-webui/extensions/sd-dynamic-prompts/wildcards/")
|
@@ -64,12 +58,10 @@ else:
|
|
64 |
os.system(f"rm -r -f /home/user/app/stable-diffusion-webui/embeddings/negative/.git")
|
65 |
os.system(f"git clone https://huggingface.co/Xenos14/embeddings /home/user/app/stable-diffusion-webui/embeddings/!Xenos")
|
66 |
os.system(f"rm -r -f /home/user/app/stable-diffusion-webui/embeddings/!Xenos/.git")
|
67 |
-
|
68 |
os.system(f"mkdir /home/user/app/stable-diffusion-webui/models/Lora/")
|
69 |
os.system(f"git clone https://huggingface.co/Xenos14/Loras /home/user/app/stable-diffusion-webui/models/Lora/Xenos")
|
70 |
os.system(f"rm -r -f /home/user/app/stable-diffusion-webui/models/Lora/Xenos/.git")
|
71 |
-
|
72 |
-
|
73 |
os.system(f"wget -q https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt -O /home/user/app/stable-diffusion-webui/models/VAE/vae-ft-mse-840000-ema-pruned.ckpt")
|
74 |
os.system(f"wget -q https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.yaml")
|
75 |
|
|
|
41 |
else:
|
42 |
# Please duplicate this space and delete # character in front of the custom script you want to use or add here more custom scripts with same structure os.system(f"wget -q https://CUSTOM_SCRIPT_URL -O /home/user/app/stable-diffusion-webui/scripts/CUSTOM_SCRIPT_NAME.py")
|
43 |
os.system(f"wget -q https://gist.github.com/camenduru/9ec5f8141db9902e375967e93250860f/raw/d0bcf01786f20107c329c03f8968584ee67be12a/run_n_times.py -O /home/user/app/stable-diffusion-webui/scripts/run_n_times.py")
|
|
|
44 |
os.system(f"wget https://huggingface.co/Xenos14/Checkpoints/resolve/main/ui-config.json --content-disposition -O /home/user/app/stable-diffusion-webui/ui-config.json")
|
45 |
os.system(f"wget https://huggingface.co/Xenos14/Checkpoints/resolve/main/config.json --content-disposition -O /home/user/app/stable-diffusion-webui/config.json")
|
46 |
|
47 |
# Please duplicate this space and delete # character in front of the extension you want to use or add here more extensions with same structure os.system(f"git clone https://EXTENSION_GIT_URL /home/user/app/stable-diffusion-webui/extensions/EXTENSION_NAME")
|
48 |
os.system(f"git clone https://github.com/Mikubill/sd-webui-controlnet.git /home/user/app/stable-diffusion-webui/extensions/controlnet")
|
49 |
|
50 |
+
# Please duplicate this space and delete # character in front of the model you want to use or add here more ckpts with same structure os.system(f"wget -q https://CKPT_URL -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/CKPT_NAME.ckpt")
|
51 |
+
os.system(f"wget -q https://huggingface.co/monster-labs/control_v1p_sd15_qrcode_monster/resolve/main/v2/control_v1p_sd15_qrcode_monster_v2.safetensors?download=true -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/control_v1p_sd15_qrcode_monster_v2.safetensors")
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
#cards
|
54 |
os.system(f"mkdir /home/user/app/stable-diffusion-webui/extensions/sd-dynamic-prompts/wildcards/")
|
|
|
58 |
os.system(f"rm -r -f /home/user/app/stable-diffusion-webui/embeddings/negative/.git")
|
59 |
os.system(f"git clone https://huggingface.co/Xenos14/embeddings /home/user/app/stable-diffusion-webui/embeddings/!Xenos")
|
60 |
os.system(f"rm -r -f /home/user/app/stable-diffusion-webui/embeddings/!Xenos/.git")
|
|
|
61 |
os.system(f"mkdir /home/user/app/stable-diffusion-webui/models/Lora/")
|
62 |
os.system(f"git clone https://huggingface.co/Xenos14/Loras /home/user/app/stable-diffusion-webui/models/Lora/Xenos")
|
63 |
os.system(f"rm -r -f /home/user/app/stable-diffusion-webui/models/Lora/Xenos/.git")
|
64 |
+
|
|
|
65 |
os.system(f"wget -q https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt -O /home/user/app/stable-diffusion-webui/models/VAE/vae-ft-mse-840000-ema-pruned.ckpt")
|
66 |
os.system(f"wget -q https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.yaml")
|
67 |
|
config.json
CHANGED
@@ -1,118 +1,43 @@
|
|
1 |
{
|
2 |
-
"
|
3 |
-
"
|
4 |
-
"
|
5 |
-
"
|
6 |
-
"
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
"n_rows": -1,
|
12 |
-
"enable_pnginfo": true,
|
13 |
-
"save_txt": false,
|
14 |
-
"save_images_before_face_restoration": false,
|
15 |
-
"save_images_before_highres_fix": false,
|
16 |
-
"save_images_before_color_correction": false,
|
17 |
-
"jpeg_quality": 80,
|
18 |
-
"export_for_4chan": true,
|
19 |
-
"use_original_name_batch": false,
|
20 |
-
"save_selected_only": true,
|
21 |
-
"do_not_add_watermark": false,
|
22 |
-
"temp_dir": "",
|
23 |
-
"clean_temp_dir_at_start": false,
|
24 |
-
"outdir_samples": "",
|
25 |
-
"outdir_txt2img_samples": "outputs/txt2img-images",
|
26 |
-
"outdir_img2img_samples": "outputs/img2img-images",
|
27 |
-
"outdir_extras_samples": "outputs/extras-images",
|
28 |
-
"outdir_grids": "",
|
29 |
-
"outdir_txt2img_grids": "outputs/txt2img-grids",
|
30 |
-
"outdir_img2img_grids": "outputs/img2img-grids",
|
31 |
-
"outdir_save": "log/images",
|
32 |
-
"save_to_dirs": false,
|
33 |
-
"grid_save_to_dirs": false,
|
34 |
-
"use_save_to_dirs_for_ui": false,
|
35 |
-
"directories_filename_pattern": "",
|
36 |
-
"directories_max_prompt_words": 8,
|
37 |
-
"ESRGAN_tile": 192,
|
38 |
-
"ESRGAN_tile_overlap": 8,
|
39 |
-
"realesrgan_enabled_models": [
|
40 |
-
"R-ESRGAN 4x+",
|
41 |
-
"R-ESRGAN 4x+ Anime6B"
|
42 |
],
|
43 |
-
"
|
44 |
-
"
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
"samples_log_stdout": false,
|
50 |
-
"multiple_tqdm": true,
|
51 |
-
"unload_models_when_training": false,
|
52 |
-
"pin_memory": false,
|
53 |
-
"save_optimizer_state": false,
|
54 |
-
"dataset_filename_word_regex": "",
|
55 |
-
"dataset_filename_join_string": " ",
|
56 |
-
"training_image_repeats_per_epoch": 1,
|
57 |
-
"training_write_csv_every": 500,
|
58 |
-
"training_xattention_optimizations": false,
|
59 |
-
"sd_model_checkpoint": null,
|
60 |
-
"sd_checkpoint_cache": 0,
|
61 |
-
"sd_vae": "auto",
|
62 |
-
"sd_vae_as_default": false,
|
63 |
-
"sd_hypernetwork": "None",
|
64 |
-
"sd_hypernetwork_strength": 1.0,
|
65 |
-
"inpainting_mask_weight": 1.0,
|
66 |
-
"img2img_color_correction": false,
|
67 |
-
"img2img_fix_steps": false,
|
68 |
-
"enable_quantization": false,
|
69 |
-
"enable_emphasis": true,
|
70 |
-
"use_old_emphasis_implementation": false,
|
71 |
-
"enable_batch_seeds": true,
|
72 |
-
"comma_padding_backtrack": 20,
|
73 |
-
"filter_nsfw": false,
|
74 |
-
"CLIP_stop_at_last_layers": 1,
|
75 |
-
"random_artist_categories": [],
|
76 |
-
"interrogate_keep_models_in_memory": false,
|
77 |
-
"interrogate_use_builtin_artists": true,
|
78 |
-
"interrogate_return_ranks": false,
|
79 |
-
"interrogate_clip_num_beams": 1,
|
80 |
-
"interrogate_clip_min_length": 24,
|
81 |
-
"interrogate_clip_max_length": 48,
|
82 |
-
"interrogate_clip_dict_limit": 1500,
|
83 |
-
"interrogate_deepbooru_score_threshold": 0.5,
|
84 |
-
"deepbooru_sort_alpha": true,
|
85 |
-
"deepbooru_use_spaces": false,
|
86 |
-
"deepbooru_escape": true,
|
87 |
-
"show_progressbar": true,
|
88 |
-
"show_progress_every_n_steps": 0,
|
89 |
-
"show_progress_grid": true,
|
90 |
-
"return_grid": true,
|
91 |
-
"do_not_show_images": false,
|
92 |
-
"add_model_hash_to_info": true,
|
93 |
-
"add_model_name_to_info": false,
|
94 |
-
"disable_weights_auto_swap": false,
|
95 |
-
"send_seed": true,
|
96 |
-
"font": "",
|
97 |
-
"js_modal_lightbox": true,
|
98 |
-
"js_modal_lightbox_initially_zoomed": true,
|
99 |
-
"show_progress_in_title": true,
|
100 |
-
"quicksettings_list": [
|
101 |
-
"sd_model_checkpoint",
|
102 |
-
"sd_vae",
|
103 |
-
"CLIP_stop_at_last_layers"
|
104 |
],
|
105 |
-
"
|
106 |
-
"
|
107 |
-
"
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
"
|
114 |
-
"
|
115 |
-
"
|
116 |
-
"
|
117 |
-
"
|
118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
{
|
2 |
+
"_class_name": "ControlNetModel",
|
3 |
+
"_diffusers_version": "0.17.0.dev0",
|
4 |
+
"act_fn": "silu",
|
5 |
+
"attention_head_dim": 8,
|
6 |
+
"block_out_channels": [
|
7 |
+
320,
|
8 |
+
640,
|
9 |
+
1280,
|
10 |
+
1280
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
],
|
12 |
+
"class_embed_type": null,
|
13 |
+
"conditioning_embedding_out_channels": [
|
14 |
+
16,
|
15 |
+
32,
|
16 |
+
96,
|
17 |
+
256
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
],
|
19 |
+
"controlnet_conditioning_channel_order": "rgb",
|
20 |
+
"cross_attention_dim": 768,
|
21 |
+
"down_block_types": [
|
22 |
+
"CrossAttnDownBlock2D",
|
23 |
+
"CrossAttnDownBlock2D",
|
24 |
+
"CrossAttnDownBlock2D",
|
25 |
+
"DownBlock2D"
|
26 |
+
],
|
27 |
+
"downsample_padding": 1,
|
28 |
+
"flip_sin_to_cos": true,
|
29 |
+
"freq_shift": 0,
|
30 |
+
"global_pool_conditions": false,
|
31 |
+
"in_channels": 4,
|
32 |
+
"layers_per_block": 2,
|
33 |
+
"mid_block_scale_factor": 1,
|
34 |
+
"norm_eps": 1e-05,
|
35 |
+
"norm_num_groups": 32,
|
36 |
+
"num_class_embeds": null,
|
37 |
+
"only_cross_attention": false,
|
38 |
+
"projection_class_embeddings_input_dim": null,
|
39 |
+
"resnet_time_scale_shift": "default",
|
40 |
+
"upcast_attention": false,
|
41 |
+
"use_linear_projection": false
|
42 |
+
}
|
43 |
+
|