Spaces:
Runtime error
Runtime error
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"] | |