Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,35 @@
|
|
1 |
-
|
|
|
2 |
|
3 |
-
|
4 |
-
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# - Dependencies - #
|
2 |
+
!pip install xformers pyngrok # Instalamos las dependencias necesarias
|
3 |
|
4 |
+
# - Stable Diffusion WebUI - #
|
5 |
+
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
|
6 |
|
7 |
+
# --- MODELS, LORAS, VAE --- #
|
8 |
+
!wget -O /content/stable-diffusion-webui/models/Stable-diffusion/absolutereality_v181.safetensors https://civitai.com/api/download/models/132760
|
9 |
+
!wget -O /content/stable-diffusion-webui/models/VAE/vae-ft-mse-840000-ema-pruned.safetensors https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.safetensors
|
10 |
+
!wget -O /content/stable-diffusion-webui/models/VAE/kl-f8-anime2.ckpt https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt
|
11 |
+
|
12 |
+
# --- UPSCALERS --- #
|
13 |
+
!wget -O /content/stable-diffusion-webui/models/ESRGAN/4x-UltraSharp.pth https://huggingface.co/Zabin/Resizers/resolve/main/4x-UltraSharp.pth
|
14 |
+
!wget -O /content/stable-diffusion-webui/models/ESRGAN/4x_foolhardy_Remacri.pth https://huggingface.co/Zabin/Resizers/resolve/main/4x_foolhardy_Remacri.pth
|
15 |
+
!wget -O /content/stable-diffusion-webui/models/ESRGAN/4x_NMKD-Superscale-SP_178000_G.pth https://huggingface.co/gemasai/4x_NMKD-Superscale-SP_178000_G/resolve/main/4x_NMKD-Superscale-SP_178000_G.pth
|
16 |
+
|
17 |
+
# --- EMBEDDINGS --- #
|
18 |
+
!wget -O /content/stable-diffusion-webui/embeddings/Negative/EasyNegative.pt https://huggingface.co/embed/negative/resolve/main/EasyNegative.pt
|
19 |
+
!wget -O /content/stable-diffusion-webui/embeddings/Negative/EasyNegativeV2.safetensors https://huggingface.co/gsdf/Counterfeit-V3.0/resolve/main/embedding/EasyNegativeV2.safetensors
|
20 |
+
# Descarga de otros archivos de embeddings...
|
21 |
+
|
22 |
+
# --- EXTENSIONS --- #
|
23 |
+
# Clonamos los repositorios de las extensiones...
|
24 |
+
# Descargamos los modelos necesarios...
|
25 |
+
|
26 |
+
# - UI Config - #
|
27 |
+
!wget -O /content/stable-diffusion-webui/ui-config.json https://huggingface.co/TNitro/ui-config/resolve/main/ui-config.json
|
28 |
+
!cp /content/stable-diffusion-webui/ui-config.json /content/stable-diffusion-webui/config.json
|
29 |
+
!sed -i -e 's/\["sd_model_checkpoint"\],/\["sd_model_checkpoint","sd_vae","CLIP_stop_at_last_layers"\],/g' /content/stable-diffusion-webui/modules/shared_options.py
|
30 |
+
!sed -i -e 's/"\[seed\]"/"\[model_name\],\[seed\]"/g' /content/stable-diffusion-webui/modules/images.py
|
31 |
+
# Otras modificaciones en la configuraci贸n de la interfaz de usuario...
|
32 |
+
|
33 |
+
# - Run - #
|
34 |
+
%cd /content/stable-diffusion-webui
|
35 |
+
!python launch.py --theme dark --enable-insecure-extension-access --disable-safe-unpickle --no-hashing --xformers &
|