-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
53 lines (47 loc) · 1.2 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
FROM nvcr.io/nvidia/pytorch:19.06-py3
# Install COLMAP
RUN apt-get update && apt-get -y install \
git \
cmake \
build-essential \
libboost-program-options-dev \
libboost-filesystem-dev \
libboost-graph-dev \
libboost-regex-dev \
libboost-system-dev \
libboost-test-dev \
libeigen3-dev \
libsuitesparse-dev \
libfreeimage-dev \
libgoogle-glog-dev \
libgflags-dev \
libglew-dev \
qtbase5-dev \
libqt5opengl5-dev \
libcgal-dev \
libcgal-qt5-dev \
libatlas-base-dev \
libsuitesparse-dev \
libopenblas-dev
RUN git clone https://ceres-solver.googlesource.com/ceres-solver && \
cd ceres-solver && \
git checkout 1.14.0 && \
mkdir build && \
cd build && \
cmake .. -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF && \
make -j8 && \
make install
RUN git clone https://github.com/colmap/colmap.git && \
cd colmap && \
git checkout 3.5 && \
mkdir build && \
cd build && \
cmake .. -DCUDA_ARCHS="5.2 6.0 6.1 7.0 7.5+PTX" && \
make -j8 && \
make install
# Install xtreme-view dependencies
RUN pip install pydensecrf \
pyquaternion \
imageio
COPY xtreme-view xtreme-view
WORKDIR xtreme-view