Shifting xformers installation, could bypass primary issue of downgrading
Browse files
app.py
CHANGED
|
@@ -1,11 +1,8 @@
|
|
| 1 |
import os
|
| 2 |
from subprocess import getoutput
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.15/xformers-0.0.15.dev0+4c06c79.d20221205-cp38-cp38-linux_x86_64.whl")
|
| 7 |
-
elif("T4" in gpu_info):
|
| 8 |
-
os.system(f"pip install xformers")
|
| 9 |
|
| 10 |
os.system(f"git clone https://github.com/camenduru/stable-diffusion-webui /home/user/app/stable-diffusion-webui")
|
| 11 |
os.chdir("/home/user/app/stable-diffusion-webui")
|
|
@@ -27,6 +24,7 @@ os.system(f"wget -q https://github.com/camenduru/webui/raw/main/header_patch.py
|
|
| 27 |
os.system(f"sed -i -e '/demo:/r /home/user/app/header_patch.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
| 28 |
# ---------------------------------------------------------------------------------------------------------------------------------------------------
|
| 29 |
|
|
|
|
| 30 |
|
| 31 |
|
| 32 |
if "IS_SHARED_UI" in os.environ:
|
|
|
|
| 1 |
import os
|
| 2 |
from subprocess import getoutput
|
| 3 |
|
| 4 |
+
|
| 5 |
+
# Welcome to the world of python madness!
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
os.system(f"git clone https://github.com/camenduru/stable-diffusion-webui /home/user/app/stable-diffusion-webui")
|
| 8 |
os.chdir("/home/user/app/stable-diffusion-webui")
|
|
|
|
| 24 |
os.system(f"sed -i -e '/demo:/r /home/user/app/header_patch.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
| 25 |
# ---------------------------------------------------------------------------------------------------------------------------------------------------
|
| 26 |
|
| 27 |
+
os.system(f"pip install xformers")
|
| 28 |
|
| 29 |
|
| 30 |
if "IS_SHARED_UI" in os.environ:
|