IAmXenos21 commited on
Commit
003571d
1 Parent(s): 8a7b39f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +36 -7
app.py CHANGED
@@ -38,11 +38,29 @@ if "IS_SHARED_UI" in os.environ:
38
  else:
39
  # 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")
40
  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")
 
 
 
41
 
42
  # 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")
43
  os.system(f"git clone https://github.com/Mikubill/sd-webui-controlnet.git /home/user/app/stable-diffusion-webui/extensions/controlnet")
44
- #os.system(f"git clone https://huggingface.co/lllyasviel/ControlNet-v1-1 /home/user/app/stable-diffusion-webui/extensions/controlnet/models/tree")
45
- #os.system(f"mv -f /home/user/app/stable-diffusion-webui/extensions/controlnet/models/tree/* /home/user/app/stable-diffusion-webui/extensions/controlnet/models")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  #os.system(f"git clone https /home/user/app/stable-diffusion-webui/extensions/")
48
 
@@ -57,11 +75,22 @@ else:
57
  os.system(f"wget https://huggingface.co/Xenos14/Checkpoints/resolve/main/XenoGASM-MK2.safetensors --content-disposition -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/XenoGASM-MK2.safetensors")
58
  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")
59
  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")
60
- #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")
61
  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")
62
- #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")
63
 
64
-
 
 
 
 
 
 
 
 
 
 
 
65
 
66
 
67
  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")
@@ -85,5 +114,5 @@ else:
85
  #os.system(f"wget -q https://huggingface.co/stabilityai/stable-diffusion-2-1/resolve/main/v2-1_768-ema-pruned.ckpt -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.ckpt")
86
  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")
87
 
88
- os.system(f"python launch.py --ui-config-file /home/user/app/ui-config.json --ui-settings-file /home/user/app/config.json --disable-console-progressbars --enable-console-prompts --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding --api --skip-torch-cuda-test --disable-safe-unpickle --skip-torch-cuda-test --no-half --listen --enable-insecure-extension-access")
89
-
 
38
  else:
39
  # 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")
40
  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")
41
+
42
+ os.system(f"wget https://huggingface.co/Xenos14/Checkpoints/resolve/main/ui-config.json --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/ui-config.json")
43
+ os.system(f"wget https://huggingface.co/Xenos14/Checkpoints/resolve/main/config.json --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/config.json")
44
 
45
  # 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")
46
  os.system(f"git clone https://github.com/Mikubill/sd-webui-controlnet.git /home/user/app/stable-diffusion-webui/extensions/controlnet")
47
+ os.system(f"git clone https://github.com/etherealxx/batchlinks-webui /home/user/app/stable-diffusion-webui/extensions/batchlinks-webui")
48
+ os.system(f"git clone https://github.com/zanllp/sd-webui-infinite-image-browsing /home/user/app/stable-diffusion-webui/extensions/sd-webui-infinite-image-browsing")
49
+ os.system(f"git clone https://github.com/Bing-su/adetailer /home/user/app/stable-diffusion-webui/extensions/adetailer")
50
+ os.system(f"git clone https://github.com/hako-mikan/sd-webui-supermerger /home/user/app/stable-diffusion-webui/extensions/sd-webui-supermerger")
51
+ os.system(f"git clone https://github.com/aka7774/sd_filer /home/user/app/stable-diffusion-webui/extensions/sd_filer")
52
+ os.system(f"git clone https://github.com/arenasys/stable-diffusion-webui-model-toolkit /home/user/app/stable-diffusion-webui/extensions/stable-diffusion-webui-model-toolkit")
53
+ os.system(f"git clone https://github.com/civitai/sd_civitai_extension /home/user/app/stable-diffusion-webui/extensions/sd_civitai_extension")
54
+ os.system(f"git clone https://github.com/adieyal/sd-dynamic-prompts /home/user/app/stable-diffusion-webui/extensions/sd-dynamic-prompts")
55
+ os.system(f"git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /home/user/app/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface")
56
+ os.system(f"git clone https://github.com/BlafKing/sd-civitai-browser-plus /home/user/app/stable-diffusion-webui/extensions/sd-civitai-browser-plus")
57
+ os.system(f"git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git /home/user/app/stable-diffusion-webui/extensions/a1111-sd-webui-tagcomplete")
58
+ os.system(f"git clone https://github.com/continue-revolution/sd-webui-animatediff /home/user/app/stable-diffusion-webui/extensions/sd-webui-animatediff")
59
+ os.system(f"git clone https://github.com/klimaleksus/stable-diffusion-webui-embedding-merge /home/user/app/stable-diffusion-webui/extensions/stable-diffusion-webui-embedding-merge")
60
+ os.system(f"git clone https://github.com/kohya-ss/sd-webui-additional-networks /home/user/app/stable-diffusion-webui/extensions/sd-webui-additional-networks")
61
+ os.system(f"git clone https://github.com/some9000/StylePile /home/user/app/stable-diffusion-webui/extensions/StylePile")
62
+ os.system(f"git clone https://github.com/zixaphir/Stable-Diffusion-Webui-Civitai-Helper /home/user/app/stable-diffusion-webui/extensions/Stable-Diffusion-Webui-Civitai-Helper")
63
+ os.system(f"git clone https://github.com/mcmonkeyprojects/sd-dynamic-thresholding.git /home/user/app/stable-diffusion-webui/extensions/sd-dynamic-thresholding")
64
 
65
  #os.system(f"git clone https /home/user/app/stable-diffusion-webui/extensions/")
66
 
 
75
  os.system(f"wget https://huggingface.co/Xenos14/Checkpoints/resolve/main/XenoGASM-MK2.safetensors --content-disposition -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/XenoGASM-MK2.safetensors")
76
  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")
77
  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")
78
+ 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")
79
  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")
80
+ 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")
81
 
82
+ #cards
83
+ os.system(f"mkdir /home/user/app/stable-diffusion-webui/extensions/sd-dynamic-prompts/wildcards/")
84
+ os.system(f"git clone https://huggingface.co/Xenos14/wildcards /home/user/app/stable-diffusion-webui/extensions/sd-dynamic-prompts/wildcards/Xenos")
85
+ os.system(f"rm -r -f /home/user/app/stable-diffusion-webui/extensions/sd-dynamic-prompts/wildcards/Xenos/.git")
86
+ os.system(f"git clone https://github.com/vorstcavry/embeddings /home/user/app/stable-diffusion-webui/embeddings/negative")
87
+ os.system(f"rm -r -f /home/user/app/stable-diffusion-webui/embeddings/negative/.git")
88
+ os.system(f"git clone https://huggingface.co/Xenos14/embeddings /home/user/app/stable-diffusion-webui/embeddings/!Xenos")
89
+ os.system(f"rm -r -f /home/user/app/stable-diffusion-webui/embeddings/!Xenos/.git")
90
+
91
+ os.system(f"mkdir /stable-diffusion-webui/stable-diffusion-webui/models/Lora/")
92
+ os.system(f"git clone https://huggingface.co/Xenos14/Loras /home/user/app/stable-diffusion-webui/models/Lora/Xenos")
93
+ os.system(f"rm -r -f /home/user/app/stable-diffusion-webui/models/Lora/Xenos/.git")
94
 
95
 
96
  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")
 
114
  #os.system(f"wget -q https://huggingface.co/stabilityai/stable-diffusion-2-1/resolve/main/v2-1_768-ema-pruned.ckpt -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.ckpt")
115
  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")
116
 
117
+ os.system(f"python launch.py --ui-config-file --disable-console-progressbars --enable-console-prompts --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding --api --skip-torch-cuda-test --disable-safe-unpickle --skip-torch-cuda-test --no-half --listen --enable-insecure-extension-access")
118
+ #/home/user/app/ui-config.json --ui-settings-file /home/user/app/config.json