Download colmap/docker/Dockerfile from camenduru/ceres-solver-v1: direct link, hf CLI and curl.
- Browser
- Download file 1.54 kB
-
https://huggingface.co/camenduru/ceres-solver-v1/resolve/main/colmap/docker/Dockerfile
- Command line
-
hf download hf://camenduru/ceres-solver-v1/colmap/docker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/camenduru/ceres-solver-v1/resolve/main/colmap/docker/Dockerfile
1.54 kB
| FROM nvidia/cuda:11.6.0-devel-ubuntu20.04 | |
| # Prevent stop building ubuntu at time zone selection. | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Prepare and empty machine for building | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| cmake \ | |
| build-essential \ | |
| libboost-program-options-dev \ | |
| libboost-filesystem-dev \ | |
| libboost-graph-dev \ | |
| libboost-system-dev \ | |
| libboost-test-dev \ | |
| libeigen3-dev \ | |
| libsuitesparse-dev \ | |
| libfreeimage-dev \ | |
| libmetis-dev \ | |
| libgoogle-glog-dev \ | |
| libgflags-dev \ | |
| libglew-dev \ | |
| qtbase5-dev \ | |
| libqt5opengl5-dev \ | |
| libcgal-dev | |
| # Build and install ceres solver | |
| RUN apt-get -y install \ | |
| libatlas-base-dev \ | |
| libsuitesparse-dev | |
| ARG CERES_SOLVER_VERSION=2.1.0 | |
| RUN git clone https://github.com/ceres-solver/ceres-solver.git --branch ${CERES_SOLVER_VERSION} | |
| RUN cd ceres-solver && \ | |
| mkdir build && \ | |
| cd build && \ | |
| cmake .. -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF && \ | |
| make -j4 && \ | |
| make install | |
| # Build and install COLMAP | |
| # Note: This Dockerfile has been tested using COLMAP pre-release 3.7. | |
| # Later versions of COLMAP (which will be automatically cloned as default) may | |
| # have problems using the environment described thus far. If you encounter | |
| # problems and want to install the tested release, then uncomment the branch | |
| # specification in the line below | |
| RUN git clone https://github.com/colmap/colmap.git #--branch 3.7 | |
| RUN cd colmap && \ | |
| git checkout dev && \ | |
| mkdir build && \ | |
| cd build && \ | |
| cmake .. && \ | |
| make -j4 && \ | |
| make install | |