-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
130 lines (101 loc) · 2.81 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
FROM nvidia/cuda:11.7.1-devel-ubuntu22.04
# FROM nvidia/cuda:12.0.1-devel-ubuntu22.04
LABEL maintainer="Your Name <[email protected]>"
ARG DEBIAN_FRONTEND=noninteractive
# Install apt-getable dependencies
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
build-essential \
cmake \
git \
libeigen3-dev \
libopencv-dev \
libceres-dev \
python3-dev \
python3-numpy \
python3-opencv \
python3-pip \
python3-pyproj \
python3-scipy \
python3-yaml \
python-is-python3 \
curl \
sudo \
htop \
wget \
tmux \
nano \
neovim \
sshfs \
locate \
mc \
less \
libgtk-3-dev \
libboost-all-dev \
libboost-python-dev \
expat \
libcgal-dev \
libsparsehash-dev \
unzip \
dos2unix \
exiftool \
libmagic-dev \
ffmpeg \
libzmq3-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN pip install --upgrade pip
# RUN pip install install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
WORKDIR /
RUN git clone --recursive https://github.com/mapillary/OpenSfM.git /OpenSfM
# set up OpenSfM
WORKDIR /OpenSfM
# RUN pip install "cython==0.29.35"
RUN git checkout 8887d336cdc305427d59d02a96ef9396aa197ad3
#RUN cat requirements.txt | sed -e '/^\s*#.*$/d' -e '/^\s*$/d' | xargs -n 1 pip install
RUN pip install cloudpickle==0.4.0 \
exifread==2.1.2 \
flask==2.3.2 \
fpdf2==2.4.6 \
joblib==0.14.1 \
matplotlib \
networkx==2.5 \
numpy>=1.19 \
Pillow>=8.1.1 \
pyproj>=1.9.5.1 \
pytest==3.0.7 \
python-dateutil>=2.7 \
pyyaml==6.0.1 \
scipy>=1.10.0 \
Sphinx==4.2.0 \
six \
xmltodict==0.10.2 \
wheel \
opencv-python
#RUN pip install -r requirements.txt && \
RUN python3 setup.py build
# install the viewer dependencies for OpenSfM
RUN bash /OpenSfM/viewer/node_modules.sh
ENV PYTHONPATH="/OpenSfM/viewer:$PYTHONPATH"
# OpenSfM setup is complete
WORKDIR /
# Install mot3d
RUN git clone https://github.com/cvlab-epfl/mot3d.git /mot3d
ENV PYTHONPATH="/mot3d:$PYTHONPATH"
# RUN echo 'export PYTHONPATH="/mot3d:$PYTHONPATH"' >> ~/.bashrc
WORKDIR /mot3d
RUN unzip mussp-master-6cf61b8.zip && \
rm mussp-master-6cf61b8.zip
WORKDIR /mot3d/mot3d/solvers/wrappers/muSSP/
RUN ./cmake_and_build.sh
# Start setting up the crowd tracking environment
RUN git clone https://github.com/cvlab-epfl/MVFlow.git /MVFlow
ENV HOME /
WORKDIR /
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
WORKDIR /root
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install scikit-spatial shapely pyransac3d imageio[ffmpeg]
RUN python3 -m pip install django-bootstrap-form
# RUN python setupenv.py