Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.git/
.gitignore
.gitmodules
Dockerfile
.dockerignore
*.md
LICENSE
*.gif
57 changes: 57 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# enable cuda support
FROM nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04

# install native dependencies
RUN apt-get update && apt-get -y install \
# general
sudo \
curl \
git \
cmake \
build-essential \
ffmpeg \
# opencv dependencies
libsm6 \
libxext6 \
libxrender-dev \
libglib2.0-0 \
# colmap dependencies
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

# install miniconda
RUN curl -OL https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN bash ./Miniconda3-latest-Linux-x86_64.sh -p /opt/miniconda -b && rm ./Miniconda3-latest-Linux-x86_64.sh
ENV PATH=/opt/miniconda/bin:${PATH}

# copy source
WORKDIR /opt/consistent_depth
COPY . .

# install python requirements
RUN conda create -n consistent_depth python=3.6
SHELL ["conda", "run", "-n", "consistent_depth", "bash", "-c"]
RUN bash ./scripts/install.sh

# install colmap
RUN bash ./scripts/install_colmap_ubuntu.sh

# download model
RUN bash ./scripts/download_model.sh

# make sure to run commands through conda to setup proper environment
ENTRYPOINT ["conda", "run", "-n", "consistent_depth"]