Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to install on Windows? #23

Open
haruhix opened this issue Sep 22, 2024 · 3 comments
Open

Is it possible to install on Windows? #23

haruhix opened this issue Sep 22, 2024 · 3 comments

Comments

@haruhix
Copy link

haruhix commented Sep 22, 2024

Is it possible to install on Windows?

@massinissa2021
Copy link

message(1).txt

@dorukcandan
Copy link

I'm encountering errors like these while installing DPVO:

''fatal error C1189: #error: -- unsupported Microsoft Visual Studio version!''
Command '['ninja', '-v']' returned non-zero exit status 1.

I currently have Visual Studio 2022 and CUDA 12.1 installed which is what's suggested for this repo. Were you able to install
DPVO?

@massinissa2021
Copy link

here is a guide from Carlosedubarreto

— 09/23/2024 6:32 PM
yeah, that is best, since installgin DPVO probably will be more complicated than installgin GVHMR
[6:39 PM]
the isntructions I have to install DPVO that I had for WHAM. probably it will need some adjustements to work on this cuda version (since, for example, I'm not sure that the pytorch-scatter will be the same as the one I have in my instrctions.

the one in my instructions was made with cuda 11.7 I think.
[6:39 PM]
Install DPVO
The commands below are for linux, you'll have to adapt to do the same manually, in this case it is the download of eigen file, the unzip and moving the files to the right place, I explain it a little bit later in the text.
cd third-party/DPVO
wget https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.zip
unzip eigen-3.4.0.zip -d thirdparty && rm -rf eigen-3.4.0.zip

cd third-party/DPVO

put eigen-3.4.0 in the folder thirdparty

I'm not sure that pytorchscatter 2.0.9 is compatible with cuda 12.1
conda install pytorch-scatter=2.0.9 -c rusty1s

Enable the vstudio variables using the command bellow if you have vstudio 2019
%comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
set DISTUTILS_USE_SDK=1

pip install .

after installing DPVO
pip install torch_scatter

try this colution
In resume, it is needed to change from long to int64_t in the filedpvo/altcorr/correlation_kernel.cu

i changed in the files:
correlation_kernel.cu
ba.cpp
ba_cuda.cu

in lietorch_gpu.cu remove all the "const" keywords

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants