fundamentalvision / Deformable-DETR

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

Compile error #209

Open MrPeterJin opened 1 year ago

MrPeterJin commented 1 year ago

Hi,

When I compile your code located at models/ops, it yield the following error:

/Deformable-DETR/models/ops/src/cuda/ms_deform_attn_cuda.cu(134): here

/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
  435 |         function(_Functor&& __f)
      |                                                                                                                                                 ^ 
/usr/include/c++/11/bits/std_function.h:435:145: note:         ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
  530 |         operator=(_Functor&& __f)
      |                                                                                                                                                  ^ 
/usr/include/c++/11/bits/std_function.h:530:146: note:         ‘_ArgTypes’
error: command '/usr/local/cuda-11.6/bin/nvcc' failed with exit code 1

Do you know how to get rid of this error?

prerakmody commented 1 year ago

Solution(s) are provided in this link