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

Cuda mismatch error when building module for ModuleNotFoundError: No module named 'MultiScaleDeformableAttention' #46

Open
zubairahmed-ai opened this issue Apr 12, 2023 · 4 comments

Comments

@zubairahmed-ai
Copy link

I am facing when running I faced ModuleNotFoundError: No module named 'MultiScaleDeformableAttention' error so I tried unicorn/models/ops/python setup.py build and python setup.py install but I am getting the error below

raise RuntimeError(CUDA_MISMATCH_MESSAGE.format(cuda_str_version, torch.version.cuda)) RuntimeError: The detected CUDA version (10.1) mismatches the version that was used to compile PyTorch (11.7). Please make sure to use the same CUDA versions.

I see that Deformable-DETR is only available until 10.1 or something below, how to fix it?

@zubairahmed-ai zubairahmed-ai changed the title Cuda mismatch error when building module for Cuda mismatch error when building module for ModuleNotFoundError: No module named 'MultiScaleDeformableAttention' Apr 12, 2023
@MasterBin-IIAU
Copy link
Owner

@zubairahmed-ai Hi, we use CUDA 11.3 + Pytorch 1.10.0 as shown in install.md. Could you please try this Pytorch and CUDA version?

@zubairahmed-ai
Copy link
Author

@zubairahmed-ai Hi, we use CUDA 11.3 + Pytorch 1.10.0 as shown in install.md. Could you please try this Pytorch and CUDA version?

This requires downgrading the entire CUDA version on my Windows machine, unfortunately I can't do that, what's the workaround?

Remember there were already too many things to fix before getting this far including finding the matching mmcv wheel package and changing mmcv.config to mmvengine.config, missing COCO Dataset, getting the required mmdect package and so on.

@zubairahmed-ai
Copy link
Author

@MasterBin-IIAU you're using CUDA 11.3 but Deformable-DETR uses CUDA 9.2 so I doubt it will still compile after downgrading to CUDA 11.3, any solution?

@aakash-sarin
Copy link

aakash-sarin commented Jun 29, 2023

Were you able to find a workaround or a solution, i have also encountered this issue? Kindly advise.

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