Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
update dockerfile according to the new INSTALL.md (#883)
Browse files Browse the repository at this point in the history
From https://github.com/facebookresearch/maskrcnn-benchmark/blob/master/INSTALL.md:
1. additionally install tqdm, cudatoolkit, apex
2. add FORCE_CUDA argument
  • Loading branch information
keineahnung2345 authored and fmassa committed Jun 12, 2019
1 parent 7ee52a4 commit d173a85
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions docker/docker-jupyter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ ENV PATH=$CONDA_PREFIX/bin:$PATH
ENV CONDA_AUTO_UPDATE_CONDA=false

RUN conda install -y ipython
RUN pip install requests ninja yacs cython matplotlib jupyter
RUN pip install requests ninja yacs cython matplotlib jupyter tqdm

# Install PyTorch 1.0 Nightly and OpenCV
RUN conda install -y pytorch-nightly -c pytorch \
&& conda install -y opencv -c menpo \
# Install PyTorch Nightly
ARG CUDA
RUN conda install -y pytorch-nightly cudatoolkit=${CUDA} -c pytorch

# Install OpenCV
RUN conda install -y opencv -c menpo \
&& conda clean -ya

WORKDIR /root
Expand All @@ -53,7 +56,14 @@ RUN git clone https://github.com/cocodataset/cocoapi.git \
&& cd cocoapi/PythonAPI \
&& python setup.py build_ext install

# install apex
RUN git clone https://github.com/NVIDIA/apex.git \
&& cd apex \
&& python setup.py install --cuda_ext --cpp_ext

# install PyTorch Detection
ARG FORCE_CUDA="1"
ENV FORCE_CUDA=${FORCE_CUDA}
RUN git clone https://github.com/facebookresearch/maskrcnn-benchmark.git \
&& cd maskrcnn-benchmark \
&& python setup.py build develop
Expand Down

0 comments on commit d173a85

Please sign in to comment.