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

ModuleNotFoundError: No module named 'MultiScaleDeformableAttention' #7

Open
WesLee88524 opened this issue Aug 19, 2022 · 1 comment

Comments

@WesLee88524
Copy link

Hi,Zelin!
I get some problems when I run the "sh configs/standard/v100_mot17_coco.sh " which remind me "ModuleNotFoundError: No module named 'MultiScaleDeformableAttention'".
Then I find the answer at fundamentalvision/Deformable-DETR#68.
I change my directory to "models/ops/" and run "sh make.sh",it accurs some error:

.conda/envs/torch1.9/lib/python3.8/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: CUDA driver initialization failed, you might not have a CUDA gpu. (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:115.) return torch._C._cuda_getDeviceCount() > 0 No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda' Traceback (most recent call last): File "setup.py", line 69, in <module> ext_modules=get_extensions(), File "setup.py", line 47, in get_extensions raise NotImplementedError('Cuda is not availabel') NotImplementedError: Cuda is not availabel

I test on linux servers with v100.

Have u ever encountered this problem before?

@sjtuytc
Copy link
Contributor

sjtuytc commented Aug 19, 2022

I didn't meet the problems before.
You can first look at these issues: https://github.com/fundamentalvision/Deformable-DETR/issues?q=is%3Aissue+cuda+is+not+available+is%3Aclosed
fundamentalvision/Deformable-DETR#112
fundamentalvision/Deformable-DETR#88
It seems that you cannot find CUDA library on your server. You can check via
nvcc --version to see if your CUDA library is added to the LD_LIBRARY_PATH, where the extensions normally find the CUDA.

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

2 participants