Skip to content

Commit

Permalink
ADD Docker (zhanghang1989#305)
Browse files Browse the repository at this point in the history
* add docker
  • Loading branch information
zhanghang1989 committed Aug 2, 2020
1 parent e219aa7 commit deec6de
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM nvcr.io/nvidia/pytorch:19.05-py3

# Set working directory # Set working directory
WORKDIR /workspace

#ENV PYTHONPATH "${PYTHONPATH}:/workspace"

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y python3-tk python-pip git tmux htop tree

RUN python -m pip install --upgrade pip
RUN python -m pip install torch==1.4.0
RUN python -m pip install torchvision==0.5.0
RUN python -m pip install pycocotools==2.0.0

#RUN chmod a+rwx -R /opt/conda/

COPY ./setup.py .
COPY ./encoding ./encoding
RUN python setup.py develop

COPY ./experiments ./experiments
1 change: 1 addition & 0 deletions scripts/build_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker build -t encoding .
1 change: 1 addition & 0 deletions scripts/run_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker run --rm -it --ulimit memlock=-1 --ulimit stack=67108864 -v $COCO_DIR:/coco --ipc=host --gpus=all encoding

0 comments on commit deec6de

Please sign in to comment.