forked from microsoft/computervision-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·29 lines (29 loc) · 843 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM tensorflow/tensorflow:1.12.0-rc2-gpu-py3
LABEL maintainer="[email protected]"
COPY . /crowd-counting
WORKDIR /crowd-counting
RUN apt-get update && \
apt-get install -y --no-install-recommends dialog apt-utils && \
apt-get install -y \
build-essential \
curl \
libopenmpi-dev \
libgtk2.0-dev \
libsm6 \
libxext6 \
libxrender-dev \
python3.5 \
python3-pip \
python3-tk \
python-dev \
git
RUN apt-get purge python-numpy
RUN pip3 install --upgrade pip setuptools
RUN pip3 uninstall numpy -y
RUN pip3 install numpy
RUN pip3 install cython
RUN pip3 install torch==1.1.0 torchvision==0.3.0
RUN pip3 install -r requirements.txt
RUN pip3 install -e .
ENTRYPOINT ["python3"]
CMD ["./crowdcounting/demo/app-advanced.py", "-p", "crowdcounting/data/models/mcnn_shtechA_660.h5"]