camenduru commited on
Commit
a33152d
1 Parent(s): 69987cf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -0
Dockerfile CHANGED
@@ -12,6 +12,7 @@ RUN pip install --pre triton
12
  RUN pip install numexpr
13
 
14
  RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui && cd stable-diffusion-webui && sed -i -e 's/ start()/ #start()/g' launch.py && python launch.py --skip-torch-cuda-test
 
15
 
16
  # ----------------------------Delete this block if you don't want to see the extra header----------------------------
17
  ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
 
12
  RUN pip install numexpr
13
 
14
  RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui && cd stable-diffusion-webui && sed -i -e 's/ start()/ #start()/g' launch.py && python launch.py --skip-torch-cuda-test
15
+ RUN sed -i -e '''/prepare_environment()/a\ os.system\(f\"""sed -i -e ''\"s/dict()))/dict())).cuda()/g\"'' /content/stable-diffusion-webui/repositories/stable-diffusion-stability-ai/ldm/util.py""")''' /content/stable-diffusion-webui/launch.py
16
 
17
  # ----------------------------Delete this block if you don't want to see the extra header----------------------------
18
  ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py