Skip to content

Commit cac7837

Browse files
committed
Initial commit
0 parents  commit cac7837

13 files changed

+2213
-0
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
util/__pycache__
2+
logs/
3+
model/
4+
example_images/
5+
101_ObjectCategories.tar.gz
6+
upload.sh

Dockerfile

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
FROM nvidia/cuda:9.2-cudnn7-devel-ubuntu18.04
2+
3+
ARG PYTHON_VERSION=3.7
4+
RUN apt-get update && apt-get install -y --no-install-recommends \
5+
build-essential \
6+
cmake \
7+
git \
8+
curl \
9+
vim \
10+
ca-certificates \
11+
libjpeg-dev \
12+
libpng-dev &&\
13+
rm -rf /var/lib/apt/lists/*
14+
15+
RUN curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
16+
chmod +x ~/miniconda.sh && \
17+
~/miniconda.sh -b -p /opt/conda && \
18+
rm ~/miniconda.sh && \
19+
/opt/conda/bin/conda install -y python=$PYTHON_VERSION numpy pyyaml scipy ipython mkl mkl-include cython typing && \
20+
/opt/conda/bin/conda install -y -c pytorch magma-cuda92 torchvision && \
21+
/opt/conda/bin/conda install -y -c intel ipp-devel && \
22+
/opt/conda/bin/conda install -y -c conda-forge libjpeg-turbo && \
23+
/opt/conda/bin/conda clean -ya
24+
ENV PATH /opt/conda/bin:$PATH
25+
26+
RUN pip install \
27+
cnn_finetune \
28+
logzero \
29+
munch \
30+
pretrainedmodels \
31+
protobuf \
32+
scikit-learn \
33+
tensorboardX &&\
34+
pip uninstall -y pillow &&\
35+
CC="cc -mavx2" pip install -U --force-reinstall pillow-simd
36+
37+
RUN git clone https://github.com/pytorch/accimage.git /accimage
38+
COPY setup_conda.py /accimage
39+
RUN cd /accimage && \
40+
python setup_conda.py install --user

0 commit comments

Comments
 (0)