Skip to content

Commit 3ffcebc

Browse files
Roshrinimvsusp
authored andcommitted
Installing tochvision from official pip wheel (#127)
1 parent 1542523 commit 3ffcebc

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

docker/1.2.0/py2/Dockerfile.gpu

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ RUN conda install -c pytorch magma-cuda100==2.5.1 && \
7575
requests==2.22.0 && \
7676
conda clean -ya
7777

78-
ARG PYTORCH_VERSION=1.2.0
7978
ARG TORCHVISION_VERSION=0.4.0
8079
WORKDIR /opt/pytorch
8180

@@ -84,7 +83,7 @@ ENV TORCH_NVCC_FLAGS="-Xfatbin -compress-all"
8483
ENV CMAKE_PREFIX_PATH="$(dirname $(which conda))/../"
8584

8685
RUN pip install --no-cache-dir https://pytorch-deep-learning-container.s3.amazonaws.com/torch-1.2.0-cp27-cp27mu-linux_x86_64.whl
87-
RUN pip install --no-cache-dir https://pytorch-deep-learning-container.s3.amazonaws.com/torchvision-0.4.0-cp27-cp27mu-linux_x86_64.whl
86+
RUN pip install torchvision==$TORCHVISION_VERSION
8887

8988
WORKDIR /root
9089

docker/1.2.0/py3/Dockerfile.gpu

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ RUN conda install -c pytorch magma-cuda100==2.5.1 && \
7575
requests==2.22.0 && \
7676
conda clean -ya
7777

78-
79-
ARG PYTORCH_VERSION=1.2.0
8078
ARG TORCHVISION_VERSION=0.4.0
8179
WORKDIR /opt/pytorch
8280

@@ -85,7 +83,7 @@ ENV TORCH_NVCC_FLAGS="-Xfatbin -compress-all"
8583
ENV CMAKE_PREFIX_PATH="$(dirname $(which conda))/../"
8684

8785
RUN pip install --no-cache-dir https://pytorch-deep-learning-container.s3.amazonaws.com/torch-1.2.0-cp36-cp36m-linux_x86_64.whl
88-
RUN pip install --no-cache-dir https://pytorch-deep-learning-container.s3.amazonaws.com/torchvision-0.4.0-cp36-cp36m-linux_x86_64.whl
86+
RUN pip install torchvision==$TORCHVISION_VERSION
8987

9088
WORKDIR /root
9189

0 commit comments

Comments
 (0)