CoolFace
Apppublic

facebook/CutLER

sourceHugging Facemitupdated 3y agoView on Hugging Face
35likes
Dockerfile63 linesDownload Raw Back to root
1FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.042ENV DEBIAN_FRONTEND=noninteractive3RUN apt-get update && \4    apt-get upgrade -y && \5    apt-get install -y --no-install-recommends \6    git \7    wget \8    curl \9    # python build dependencies \10    build-essential \11    libssl-dev \12    zlib1g-dev \13    libbz2-dev \14    libreadline-dev \15    libsqlite3-dev \16    libncursesw5-dev \17    xz-utils \18    tk-dev \19    libxml2-dev \20    libxmlsec1-dev \21    libffi-dev \22    liblzma-dev && \23    apt-get clean && \24    rm -rf /var/lib/apt/lists/*25 26RUN useradd -m -u 1000 user27USER user28ENV HOME=/home/user \29    PATH=/home/user/.local/bin:${PATH}30WORKDIR ${HOME}/app31 32RUN curl https://pyenv.run | bash33ENV PATH=${HOME}/.pyenv/shims:${HOME}/.pyenv/bin:${PATH}34ARG PYTHON_VERSION=3.10.1135RUN pyenv install ${PYTHON_VERSION} && \36    pyenv global ${PYTHON_VERSION} && \37    pyenv rehash && \38    pip install --no-cache-dir -U pip setuptools wheel39 40RUN pip install --no-cache-dir -U torch==1.13.1 torchvision==0.14.141RUN pip install --no-cache-dir \42    git+https://github.com/facebookresearch/detectron2.git@58e472e \43    git+https://github.com/cocodataset/panopticapi.git@7bb4655 \44    git+https://github.com/mcordts/cityscapesScripts.git@8da5dd045RUN pip install --no-cache-dir -U \46    numpy==1.23.5 \47    scikit-image==0.19.2 \48    opencv-python-headless==4.8.0.74 \49    Pillow==9.5.0 \50    colored==1.4.451RUN pip install --no-cache-dir -U gradio==3.36.152 53COPY --chown=1000 . ${HOME}/app54RUN cd CutLER && patch -p1 < ../patch55ENV PYTHONPATH=${HOME}/app \56    PYTHONUNBUFFERED=1 \57    GRADIO_ALLOW_FLAGGING=never \58    GRADIO_NUM_PORTS=1 \59    GRADIO_SERVER_NAME=0.0.0.0 \60    GRADIO_THEME=huggingface \61    SYSTEM=spaces62CMD ["python", "app.py"]63