Diff of /ViTPose/docker/Dockerfile [000000] .. [c1b1c5]

Switch to unified view

a b/ViTPose/docker/Dockerfile
1
ARG PYTORCH="1.6.0"
2
ARG CUDA="10.1"
3
ARG CUDNN="7"
4
5
FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel
6
7
ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0+PTX"
8
ENV TORCH_NVCC_FLAGS="-Xfatbin -compress-all"
9
ENV CMAKE_PREFIX_PATH="$(dirname $(which conda))/../"
10
11
RUN apt-get update && apt-get install -y git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 libgl1-mesa-glx\
12
    && apt-get clean \
13
    && rm -rf /var/lib/apt/lists/*
14
15
# Install xtcocotools
16
RUN pip install cython
17
RUN pip install xtcocotools
18
19
# Install MMCV
20
RUN pip install mmcv-full==latest+torch1.6.0+cu101 -f https://download.openmmlab.com/mmcv/dist/index.html
21
22
# Install MMPose
23
RUN conda clean --all
24
RUN git clone https://github.com/open-mmlab/mmpose.git /mmpose
25
WORKDIR /mmpose
26
RUN mkdir -p /mmpose/data
27
ENV FORCE_CUDA="1"
28
RUN pip install -r requirements/build.txt
29
RUN pip install --no-cache-dir -e .