RSPMetaAdmin commited on
Commit
3216ae7
1 Parent(s): 8ffdac6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -3,8 +3,6 @@ import os
3
  os.chdir(f"/home/user/app")
4
  os.system(f"git clone -b v2.6 https://github.com/camenduru/stable-diffusion-webui /home/user/app/stable-diffusion-webui")
5
  os.chdir(f"/home/user/app/stable-diffusion-webui")
6
- os.chdir(f"/home/user/app/stable-diffusion-webui/extensions")
7
- os.system(f"git clone https://github.com/Mikubill/sd-webui-controlnet.git")
8
  os.system(f"git lfs install")
9
  os.system(f"git reset --hard")
10
  os.system(f"sed -i -e '/demo:/r /home/user/app/header_patch_v2.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
@@ -19,7 +17,8 @@ os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggin
19
  os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SG161222/Realistic_Vision_V5.1_noVAE/resolve/main/Realistic_Vision_V5.1.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o Realistic_Vision_V5.1.safetensors")
20
  os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SG161222/Realistic_Vision_V5.1_noVAE/resolve/main/Realistic_Vision_V5.1.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o Realistic_Vision_V5.1.safetensors")
21
  # Cloning the sd-webui-controlnet extension
22
-
 
23
 
24
  # Installing required dependencies (if any)
25
  os.chdir(f"/home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models")
 
3
  os.chdir(f"/home/user/app")
4
  os.system(f"git clone -b v2.6 https://github.com/camenduru/stable-diffusion-webui /home/user/app/stable-diffusion-webui")
5
  os.chdir(f"/home/user/app/stable-diffusion-webui")
 
 
6
  os.system(f"git lfs install")
7
  os.system(f"git reset --hard")
8
  os.system(f"sed -i -e '/demo:/r /home/user/app/header_patch_v2.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
 
17
  os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SG161222/Realistic_Vision_V5.1_noVAE/resolve/main/Realistic_Vision_V5.1.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o Realistic_Vision_V5.1.safetensors")
18
  os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SG161222/Realistic_Vision_V5.1_noVAE/resolve/main/Realistic_Vision_V5.1.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o Realistic_Vision_V5.1.safetensors")
19
  # Cloning the sd-webui-controlnet extension
20
+ os.chdir(f"/home/user/app/stable-diffusion-webui/extensions")
21
+ os.system(f"git clone https://github.com/Mikubill/sd-webui-controlnet.git")
22
 
23
  # Installing required dependencies (if any)
24
  os.chdir(f"/home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models")