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

Error while installing MultiScaleDeformableAttention package #107

Open
nikeshdevkota opened this issue Aug 9, 2023 · 8 comments
Open

Error while installing MultiScaleDeformableAttention package #107

nikeshdevkota opened this issue Aug 9, 2023 · 8 comments

Comments

@nikeshdevkota
Copy link

nikeshdevkota commented Aug 9, 2023

I am trying to simply run the code for this repo, but I get a "RuntimeError: Error compiling objects for extension" whenever I try to install MultiScaleDeformableAttention package after installing the necessary pytorch version.

##Code that I ran

python src/trackformer/models/ops/setup.py build --build-base=src/trackformer/models/ops/ install

##Compilation Error
Trackformer Compile Error

Environment:

Trackformer Installation
I am using a Windows 10 PC with a NVIDIA GeForce RTX 2080

I also tried installing the package in Ubuntu 18.04 that has a NVIDIA GeForce RTX 3080 but found out it was incompatible with CUDA below 11.1. Is there any solution for this scenario? Can we use a CUDA version after 11.1 with appropriate pytorch version for this repository ?

@timmeinhardt
Copy link
Owner

Your compilation throws a filename longer than 260 characters error which only happens on Windows (10) systems. I do not know how to resolve this and generally do not have any experience running code on Windows.

@nikeshdevkota
Copy link
Author

I also tried installing the package in Ubuntu 18.04 that has a NVIDIA GeForce RTX 3080 but found out it was incompatible with CUDA below 11.1. Is there any solution for this scenario? Can we use a CUDA version after 11.1 with appropriate pytorch version for this repository ?

@timmeinhardt
Copy link
Owner

You can try running a different CUDA version and install the PyTorch version closest to 1.5 working with that CUDA version. There is a good chance this will work. Check out this #60 pull request which is supposed to make the repo work for more recent PyTorch versions.

@nikeshdevkota
Copy link
Author

Thank you @timmeinhardt , I will check the repo.

@satbina
Copy link

satbina commented Sep 12, 2023

@nikeshdevkota Have U got your problem sorted bcoz i'm getting a similar kind of error

@nikeshdevkota
Copy link
Author

nikeshdevkota commented Sep 13, 2023

I couldn't solve the error in Windows and the GPU I had in Linux was not compatible with the original repository. So, as @timmeinhardt suggested I used the pytorch version as suggested in #60 and it worked.

@Big-Smart
Copy link

@nikeshdevkota How about the corresponding cuda version?

@nikeshdevkota
Copy link
Author

The original version of CUDA is not compatible with the GPU I am using in Linux , so it doesn't work in my case.

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

4 participants