Spaces:
Runtime error
Runtime error
File size: 1,073 Bytes
cf89e54 ad7bc89 1ce0ef5 ad7bc89 cf89e54 ad7bc89 cf89e54 ad7bc89 cf89e54 ad7bc89 cf89e54 ad7bc89 cf89e54 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
FROM continuumio/miniconda3
WORKDIR /
RUN apt-get update && apt-get install --no-install-recommends -y \
build-essential \
libxml2 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Install dependencies
RUN conda create -n pose python=3.8
# Make RUN commands use the new environment:
SHELL ["conda", "run", "-n", "pose", "/bin/bash", "-c"]
RUN pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu118
RUN pip install -r requirements.txt
RUN conda install -c conda-forge cudatoolkit-dev -y
ENV CUDA_HOME=$CONDA_PREFIX/pkgs/cuda-toolkit/
RUN pip install "git+https://github.com/facebookresearch/pytorch3d.git@stable"
RUN wget https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors -P pretrained_models
RUN wget https://huggingface.co/stabilityai/sdxl-vae/resolve/main/sdxl_vae.safetensors -P pretrained_models
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "pose", "python", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
|