Debian Codegraph @

docker/README.md

raw
1 # How to build COLMAP using Docker
2
3 ## Requirements
4
5 - Host machine with at least one NVIDIA GPU/CUDA support and installed drivers
6 (to support dense reconstruction).
7 - Docker (for CUDA support 19.03+).
8
9 ## Quick Start
10
11 1. Check that Docker >=19.03 installed on your host machine:
12
13 ```bash
14 docker --version
15 ```
16
17 2. Setup the NVIDIA driver and nvidia-toolkit on your host machine:
18
19 For Ubuntu host machines: `./setup-ubuntu.sh`
20 For CentOS host machines: `./setup-centos.sh`
21
22 3. Run the *run* script, using the *full local path* to your preferred local
23 working directory (a folder with your input files/images, etc.):
24
25 ```bash
26 ./run.sh /path/where/your/working/folder/is
27 ```
28
29 This will put you in a directory (inside the Docker container) mounted to
30 the local path you specified. Now you can run COLMAP binaries on your own
31 inputs like this:
32
33 ```bash
34 colmap automatic_reconstructor --image_path ./images --workspace_path .
35 ```
36
37 Alternatively, you can run the *run-gui* script, which will start the graphical user interface of COLMAP:
38
39 ```bash
40 ./run-gui.sh /path/where/your/working/folder/is
41 ```
42
43 ## Build from Scratch
44
45 After completing steps 1-2, you can build the Docker image from scratch using the **Dockerfile**.
46 First, update the CUDA and Ubuntu versions in Dockerfile lines 1-2 to match your system, then:
47
48 ```bash
49 ./build.sh
50 ./run.sh /path/where/your/working/folder/is
51 ```