-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
107 lines (79 loc) · 2.31 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
FROM nvidia/cuda:11.7.0-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 /
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN git clone --recursive https://github.com/mapillary/OpenSfM.git /OpenSfM
# set up OpenSfM
WORKDIR /OpenSfM
RUN pip install -r requirements.txt && \
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
WORKDIR /
RUN git clone https://github.com/cvlab-epfl/MVFlow.git /MVFlow
ENV HOME /
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