DensePose Docker & Self-Hosted Deployment

GitHub

A real-time approach for mapping all human pixels of 2D RGB images to a 3D surface-based model of the body

7,260 stars Jupyter Notebook 1 file ยท ~5,485 tokens
1. Pull Image (DOCKERHUB) docker pull facebookresearch/DensePose:latest
2. Docker Run (1-Click Launch) docker run -d --name densepose --restart always facebookresearch/densepose:latest
3. Podman Run podman run -d --name densepose --restart always facebookresearch/densepose:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/facebookresearch/densepose:latest
5. ORAS Pull (OCI Artifact) oras pull facebookresearch/densepose:latest
docker/Dockerfile
# Use Caffe2 image as parent image
FROM caffe2/caffe2:snapshot-py2-cuda9.0-cudnn7-ubuntu16.04

RUN mv /usr/local/caffe2 /usr/local/caffe2_build
ENV Caffe2_DIR /usr/local/caffe2_build

ENV PYTHONPATH /usr/local/caffe2_build:${PYTHONPATH}
ENV LD_LIBRARY_PATH /usr/local/caffe2_build/lib:${LD_LIBRARY_PATH}

# Clone the Detectron repository
RUN git clone https://github.com/facebookresearch/densepose /densepose

# Install Python dependencies
RUN pip install -r /densepose/requirements.txt

# Install the COCO API
RUN git clone https://github.com/cocodataset/cocoapi.git /cocoapi
WORKDIR /cocoapi/PythonAPI
RUN make install

# Go to Densepose root
WORKDIR /densepose

# Set up Python modules
RUN make

# [Optional] Build custom ops
RUN make ops