colmap / glomap

GLOMAP - Global Structured-from-Motion Revisited
BSD 3-Clause "New" or "Revised" License
1.3k stars 77 forks source link

[QUESTION] How to use GPU? #15

Closed ichsan2895 closed 1 month ago

ichsan2895 commented 1 month ago

Is it possible for using GPU acceleration when running this command?

glomap mapper --database_path DATABASE_PATH --output_path OUTPUT_PATH --image_path IMAGE_PATH

FYI, I have built from source colmap 3.9.1 and glomap with ceres-2.1.0 & CMake 3.28.4. Tested on Ubuntu 22.04.3 LTS.

>> root@ef11cce3e4ed:/workspace# colmap -h
COLMAP 3.9.1 -- Structure-from-Motion and Multi-View Stereo
(Commit e9903641 on 2024-01-08 with CUDA)
((and so on...))

>> root@ef11cce3e4ed:/workspace# glomap -h
GLOMAP -- Global Structure-from-Motion

Usage:
  glomap mapper --database_path DATABASE --output_path MODEL
  glomap mapper_resume --input_path MODEL_INPUT --output_path MODEL_OUTPUT
Available commands:
  help
  mapper
  mapper_resume

>> root@ef11cce3e4ed:/workspace# nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:33:58_PDT_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
lpanaf commented 1 month ago

Hi, so far, GLOMAP does not support GPU acceleration