File tree Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Original file line number Diff line number Diff line change 1
1
FROM nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04
2
- # Set anaconda path
3
- ENV ANACONDA /opt/anaconda
2
+ ENV ANACONDA /opt/anaconda2
4
3
ENV CUDA_PATH /usr/local/cuda
5
4
ENV PATH ${ANACONDA}/bin:${CUDA_PATH}/bin:$PATH
6
5
ENV LD_LIBRARY_PATH ${ANACONDA}/lib:${CUDA_PATH}/bin64:$LD_LIBRARY_PATH
7
- # Download anaconda and install it
8
- RUN apt-get update && apt-get install -y wget build-essential
9
- RUN apt-get update && apt-get install -y libopencv-dev python-opencv
10
- RUN apt-get update && apt-get install -y --no-install-recommends \
11
- build-essential \
12
- cmake \
13
- git \
14
- curl \
15
- ca-certificates \
16
- libjpeg-dev \
17
- libpng-dev
6
+ ENV C_INCLUDE_PATH ${CUDA_PATH}/include
7
+ RUN apt-get update && apt-get install -y wget build-essential axel imagemagick python-opencv
18
8
RUN wget https://repo.continuum.io/archive/Anaconda2-5.0.1-Linux-x86_64.sh -P /tmp
19
9
RUN bash /tmp/Anaconda2-5.0.1-Linux-x86_64.sh -b -p $ANACONDA
20
10
RUN rm /tmp/Anaconda2-5.0.1-Linux-x86_64.sh -rf
21
11
RUN conda install -y pytorch torchvision cuda90 -c pytorch
22
12
RUN conda install -y -c menpo opencv3
23
- # RUN conda install -y -c anaconda pip
24
13
RUN pip install scikit-umfpack
25
- RUN pip install -U setuptools
26
14
RUN pip install cupy
27
15
RUN pip install pynvrtc
28
- RUN apt-get install -y axel
29
- RUN apt-get install -y imagemagick
30
- ENV C_INCLUDE_PATH ${CUDA_PATH}/include
16
+
Original file line number Diff line number Diff line change
1
+ rm images -rf;
2
+ rm results -rf;
1
3
mkdir images && mkdir results;
2
4
cd images;
3
5
axel -n 1 http://freebigpictures.com/wp-content/uploads/shady-forest.jpg --output=content1.png;
You can’t perform that action at this time.
0 commit comments