Spaces:
Runtime error
Runtime error
File size: 1,153 Bytes
ee3dbfc 3e8530d df68f30 ee3dbfc 3e8530d ee3dbfc 9e221bd 3e8530d ee3dbfc 3e8530d ee3dbfc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM nvidia/cuda:12.2.0-base-ubuntu22.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y && \
apt-get install -y aria2 libgl1 libglib2.0-0 wget git git-lfs python3-pip python-is-python3 && \
pip install -q torchtext==0.15.2 torchdata==0.6.1 --extra-index-url https://download.pytorch.org/whl/cu118 && \
pip install xformers==0.0.20 triton==2.0.0 packaging==23.1 && \
adduser --disabled-password --gecos '' user && \
mkdir /content && \
chown -R user:user /content
WORKDIR /content
USER user
RUN git clone -b v2.6 https://github.com/camenduru/stable-diffusion-webui /content/test && \
git clone https://github.com/etherealxx/batchlinks-webui /content/test/extensions/batchlinks-webui && \
sed -i -e 's/ start()/ #start()/g' /content/test/launch.py && \
cd /content/test && \
python launch.py --skip-torch-cuda-test && \
git reset --hard
# RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/sd15/resolve/main/v1-5-pruned-emaonly.ckpt -d /content/test/models/Stable-diffusion -o v1-5-pruned-emaonly.ckpt
CMD cd /content/test && python launch.py --xformers --cors-allow-origins=* --api |