File size: 961 Bytes
8d1ad8a
 
 
 
 
 
 
 
 
ce91eea
8d1ad8a
ce91eea
29d4b00
ce91eea
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os
from subprocess import getoutput

gpu_info = getoutput('nvidia-smi')
if("A10G" in gpu_info):
    os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.16/xformers-0.0.16+814314d.d20230118-cp38-cp38-linux_x86_64.whl")
elif("T4" in gpu_info):
    os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.16/xformers-0.0.16+814314d.d20230118-cp38-cp38-linux_x86_64.whl")

# os.system(f"git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git /home/user/app/stable-diffusion-webui")

# os.chdir("/home/user/app/stable-diffusion-webui")

os.system(f"conda create -n dsd python=3.10 -y")
os.system(f"conda activate dsd")
os.system(f"git clone https://github.com/deforum-art/deforum-stable-diffusion.git")
os.system(f"cd deforum-stable-diffusion")
os.system(f"python install_requirements.py")
os.system(f"python Deforum_Stable_Diffusion.py")