MasterBin-IIAU / Unicorn

[ECCV'22 Oral] Towards Grand Unification of Object Tracking
MIT License
950 stars 87 forks source link

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

Open zubairahmed-ai opened 1 year ago

zubairahmed-ai commented 1 year ago

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?

MasterBin-IIAU commented 1 year ago

@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 commented 1 year ago

@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 commented 1 year ago

@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 commented 1 year ago

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