|
a |
|
b/docker/Dockerfile |
|
|
1 |
ARG PYTORCH="1.7.1" |
|
|
2 |
ARG CUDA="11.0" |
|
|
3 |
ARG CUDNN="8" |
|
|
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 ffmpeg \ |
|
|
12 |
&& apt-get clean \ |
|
|
13 |
&& rm -rf /var/lib/apt/lists/* |
|
|
14 |
|
|
|
15 |
# Install mmcv-full |
|
|
16 |
RUN pip install mmcv-full==1.4.3 -f https://download.openmmlab.com/mmcv/dist/cu110/torch1.7.0/index.html |
|
|
17 |
|
|
|
18 |
# Install MMAction2 |
|
|
19 |
RUN conda clean --all |
|
|
20 |
RUN git clone https://github.com/open-mmlab/mmaction2.git /mmaction2 |
|
|
21 |
WORKDIR /mmaction2 |
|
|
22 |
RUN mkdir -p /mmaction2/data |
|
|
23 |
ENV FORCE_CUDA="1" |
|
|
24 |
RUN pip install cython --no-cache-dir |
|
|
25 |
RUN pip install --no-cache-dir -e . |