-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ImportError: cannot import name 'MultiScaleDeformableAttention' from 'mmcv.cnn.bricks.transformer' #1399
Comments
hi, had the |
hi, @FrancescoSaverioZuppichini , in the latest version (v1.3.15), we provide pre-compiled packages for the Python 3.9 environment. pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.9.0/index.html |
Thank you very much, I'll check this out |
hi, is there any progress? |
yes so let me share a minimum example container in which the problem arises
env
|
| pip install mmcv-full==1.3.16 -f https://download.openmmlab.com/mmcv/dist/cu112/torch1.9.1/index.html Hi, we do not provide pre-compiled packages for cu112 and torch1.9.1, but we do provide cu111 and torch1.9.0. You can use the follow command to install it. pip install mmcv-full==1.3.16 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html |
Hello I am getting the same error. I used
|
Same issue. Looking forward to a solution! |
Me too! |
Same thing here! |
Hi, what is your mmcv version? |
@zhouzaida it is 1.5 the same as mmcv-full I checked if the paths and files are put in the right places, and everything is put without any problem! And when I tried to do the import without the try statement, I got this: ImportError: DLL load failed: The specified module could not be found. |
The problem is that if you try the line that is raising the Error: from mmcv.ops.multi_scale_deform_attn import MultiScaleDeformableAttention
>>> ImportError: .../lib/python3.9/site-packages/mmcv/_ext.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZNK2at6Tensor4add_ERKS0_RKN3c106ScalarE SolutionFor me was install mmcv CPU version: pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.11.0/index.html |
Same question. I test the mmcv==1.6.0, cu113, pytorch=1.9.0, and the same question when using the CPU version. |
same question when I create a docker container with the below commands |
same question, why always the same question? terminal: error: |
I am running pytorch 1.8 and cuda 11.1 in a docker container. I had the issue when running (this installed mmcv-full 1.7.0): However this version of mmcv-full fixed the issue without needing to change to a CPU version: |
I also had the issue when running my code. environments: torch:1.9.0 torchvision:0.10.0 mmcv-full==1.4.7 mmdet==2.20.0 GPU 0,1: NVIDIA GeForce RTX 4090, CUDA Version: 12.1 The way I installed mmcv-full on the anaconda virtual environment on the far server is: |
Thanks for reporting the unexpected results and we appreciate it a lot.
Checklist
Describe the Issue
Reproduction
Install mmcv-full using
mim
orthen try to use
vfnet
Environment
python -c "from mmcv.utils import collect_env; print(collect_env())"
to collect necessary environment informationIt results in an error
The text was updated successfully, but these errors were encountered: