Skip to content

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

@MioLinki

Description

@MioLinki

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions