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

ImportError: DLL load failed while importing MultiScaleDeformableAttention: %1 is not a valid Win32 application. #246

Open
MioLinki opened this issue Feb 14, 2025 · 0 comments

Comments

@MioLinki
Copy link

MioLinki commented Feb 14, 2025

I followed the CUDA operators in the InstallationCompiling section of README:

cd ./models/ops
sh ./make.sh
unit test (should see all checking is True)
python test.py

But when I executed python test.py, the following error occurred:

Traceback (most recent call last):
File "D:\AI\transformer\deformable detr\Deformable-DETR-main\Deformable-DETR-main\models\ops\test.py", line 18, in
from functions.ms_deform_attn_func import MSDeformAttnFunction, ms_deform_attn_core_pytorch
File "D:\AI\transformer\deformable detr\Deformable-DETR-main\Deformable-DETR-main\models\ops\functions_init_.py", line 9, in
from .ms_deform_attn_func import MSDeformAttnFunction
File "D:\AI\transformer\deformable detr\Deformable-DETR-main\Deformable-DETR-main\models\ops\functions\ms_deform_attn_func.py", line 18, in
import MultiScaleDeformableAttention as MSDA
ImportError: DLL load failed while importing MultiScaleDeformableAttention: %1 is not a valid Win32 application.

I am using Win11, and both PyCharm and Python are 64-bit. I don't know what to do now. Can you help me? I'll be very grateful!

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

1 participant