zju3dv / DetectorFreeSfM

Code for "Detector-Free Structure from Motion", CVPR 2024
Apache License 2.0
597 stars 34 forks source link

Install Environment Question #17

Open yoowy90 opened 5 months ago

yoowy90 commented 5 months ago

I try to install this but there are a lot of issues during install other libraries ex. torch and cuda version dependency, colmap, multi-view evaluation tool I think that is because versions of ubuntu, cuda, etc... are different. Can you tell me detail install environments??

hxy-123 commented 5 months ago

Our code is tested on the machine with ubuntu 18.04, and CUDA version is 11.7. We have tested it on other machines such as ubuntu 20.04 and CUDA 11.3, 10.2, etc., and the code also works well.

VerseWei commented 5 months ago

CMake Error at ~/local/cmake-3.25.2-linux-x86_64/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find CUDAToolkit: Found unsuitable version "11.7.64", but required is at least "11.8.89" (found /usr/local/cuda-11.7/include) Call Stack (most recent call first): ~/local/cmake-3.25.2-linux-x86_64/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:598 (_FPHSA_FAILURE_MESSAGE) ~/local/cmake-3.25.2-linux-x86_64/share/cmake-3.25/Modules/FindCUDAToolkit.cmake:869 (find_package_handle_standard_args) ~/local/cmake-3.25.2-linux-x86_64/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package) /usr/local/lib/cmake/Ceres/CeresConfig.cmake:182 (find_dependency) CMakeLists.txt:90 (find_package)

I used the same version (11.7),but your modified colmap seemingly requires 11.8 at least. Can you help me? Thanks! @hxy-123

VerseWei commented 5 months ago
  1. I uninstalled gcc11.4 and used gcc 9.4 to replace it, this issue has been fixed. @hypochlorous
Coronal-Halo commented 5 months ago

Can I use a different pytorch version from 1.8.0? 1.8.0 does not have precompiled binary with CUDA=11.7. Or do I have to compile pytorch myself?

hxy-123 commented 5 months ago

Can I use a different pytorch version from 1.8.0? 1.8.0 does not have precompiled binary with CUDA=11.7. Or do I have to compile pytorch myself?

The overall repo doesn't have specific dependencies of pytorch version. I think you can feel free to try to use other pytorch versions.