fundamentalvision / Deformable-DETR

Deformable DETR: Deformable Transformers for End-to-End Object Detection.
Apache License 2.0
3.14k stars 513 forks source link

AttributeError: module 'MultiScaleDeformableAttention' has no attribute 'ms_deform_attn_forward' #220

Closed iGFreedom closed 8 months ago

iGFreedom commented 8 months ago

i have run the command sh ./make.sh, and get the result: Processing dependencies for MultiScaleDeformableAttention==1.0 Finished processing dependencies for MultiScaleDeformableAttention==1.0 however, after i run python test.py , i get an error: AttributeError: module 'MultiScaleDeformableAttention' has no attribute 'ms_deform_attn_forward'

iGFreedom commented 8 months ago

I fix this issue by trying other versions of python, pytorch, torchvision. previous: python=3.7, pytorch==1.5.1 torchvision==0.6.1 cudatoolkit=9.2 now: python=3.8, pytorch==1.7.0 torchvision==0.8.0 cudatoolkit=9.2