adding xformers back before launching WebUI
Browse files
app.py
CHANGED
|
@@ -90,6 +90,10 @@ else:
|
|
| 90 |
os.system(f'echo "Downloading Protogen X3.4 Stable Diffusion model..."')
|
| 91 |
os.system(f"wget -q https://huggingface.co/darkstorm2150/Protogen_x3.4_Official_Release/resolve/main/ProtoGen_X3.4.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/ProtoGen_X3.4.safetensors")
|
| 92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
# Launch WebUI with custom settings
|
| 94 |
os.system(f'echo "Starting WebUI with custom configurations..."')
|
| 95 |
os.system(f"python launch.py --force-enable-xformers --ui-config-file /home/user/app/shared-ui-config.json --ui-settings-file /home/user/app/shared-config.json --disable-console-progressbars --enable-console-prompts --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding --api --skip-torch-cuda-test")
|
|
|
|
| 90 |
os.system(f'echo "Downloading Protogen X3.4 Stable Diffusion model..."')
|
| 91 |
os.system(f"wget -q https://huggingface.co/darkstorm2150/Protogen_x3.4_Official_Release/resolve/main/ProtoGen_X3.4.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/ProtoGen_X3.4.safetensors")
|
| 92 |
|
| 93 |
+
# Install xformers for attention optimization
|
| 94 |
+
os.system(f'echo "Installing xformers for attention optimization..."')
|
| 95 |
+
os.system(f"pip install xformers==0.0.25")
|
| 96 |
+
|
| 97 |
# Launch WebUI with custom settings
|
| 98 |
os.system(f'echo "Starting WebUI with custom configurations..."')
|
| 99 |
os.system(f"python launch.py --force-enable-xformers --ui-config-file /home/user/app/shared-ui-config.json --ui-settings-file /home/user/app/shared-config.json --disable-console-progressbars --enable-console-prompts --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding --api --skip-torch-cuda-test")
|