camenduru commited on
Commit
9d72894
1 Parent(s): d9bded5

Update Dockerfile.Public.Nightly.A10G

Browse files
Files changed (1) hide show
  1. Dockerfile.Public.Nightly.A10G +4 -1
Dockerfile.Public.Nightly.A10G CHANGED
@@ -11,7 +11,10 @@ RUN pip install https://github.com/camenduru/stable-diffusion-webui-colab/releas
11
  RUN pip install --pre triton
12
  RUN pip install numexpr
13
 
14
- RUN git clone 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
  ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
17
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
 
11
  RUN pip install --pre triton
12
  RUN pip install numexpr
13
 
14
+ RUN git clone https://github.com/camenduru/stable-diffusion-webui
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
+ RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
17
+ RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
18
 
19
  ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
20
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py