timmeinhardt / trackformer

Implementation of "TrackFormer: Multi-Object Tracking with Transformers”. [Conference on Computer Vision and Pattern Recognition (CVPR), 2022]
https://arxiv.org/abs/2101.02702
Apache License 2.0
487 stars 113 forks source link

Error when I Install MultiScaleDeformableAttention package #82

Closed Maggie-Xue closed 1 year ago

Maggie-Xue commented 1 year ago

When I run

python src/trackformer/models/ops/setup.py build --build-base=src/trackformer/models/ops/ install

, I find that the .obj files is not generated. So I run

ninja -f build.ninja

to compile .obj files from , and . Finally I only obtain and , but an error occurred when compiling :

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/util/Exception.h(28): warning #1388-D: base class dllexport/dllimport specification differs from that of the derived class

Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/util/Exception.h(29): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/util/Exception.h(30): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/util/Exception.h(35): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/util/Exception.h(36): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/core/Allocator.h(21): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/core/Allocator.h(183): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/util/typeid.h(453): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeMeta::_typeMetaDataInstance [with T=caffe2::detail::_Uninitialized]"
(449): here; dllexport assumed

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/util/intrusive_ptr.h(66): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/util/intrusive_ptr.h(67): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/core/Storage.h(181): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/core/impl/LocalDispatchKeySet.h(53): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/core/impl/LocalDispatchKeySet.h(54): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/util/logging_is_not_google_glog.h(47): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/core/TensorImpl.h(224): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/core/TensorImpl.h(1567): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/core/TensorImpl.h(1570): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/core/TensorImpl.h(1592): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/core/TensorImpl.h(1593): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/core/TensorImpl.h(1618): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/core/TensorImpl.h(1623): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/Generator.h(76): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/Generator.h(82): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/NamedTensor.h(51): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/TensorBody.h(1165): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue.h(721): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue.h(722): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/rref_interface.h(13): warning #1388-D: base class dllexport/dllimport specification differs from that of the derived class

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue_inl.h(141): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue_inl.h(161): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue_inl.h(162): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue_inl.h(212): warning #1388-D: base class dllexport/dllimport specification differs from that of the derived class

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue_inl.h(224): warning #1388-D: base class dllexport/dllimport specification differs from that of the derived class

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue_inl.h(234): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue_inl.h(327): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue_inl.h(328): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue_inl.h(329): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue_inl.h(332): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue_inl.h(333): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue_inl.h(339): warning #1388-D: base class dllexport/dllimport specification differs from that of the derived class

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/ivalue_inl.h(417): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(374): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(626): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(627): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(630): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(642): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(761): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(841): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(923): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(925): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(1783): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(1784): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(1786): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(1787): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(1789): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(1793): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(1796): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/jit_type.h(1850): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/boxing/KernelFunction.h(231): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/boxing/KernelFunction.h(232): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/dispatch/DispatchKeyExtractor.h(164): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/dispatch/Dispatcher.h(163): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/dispatch/Dispatcher.h(164): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/dispatch/Dispatcher.h(165): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/dispatch/Dispatcher.h(169): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/dispatch/Dispatcher.h(170): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/dispatch/Dispatcher.h(171): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/core/dispatch/Dispatcher.h(209): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/CPUGenerator.h(31): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/CPUGenerator.h(32): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/CPUGenerator.h(33): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/Context.h(125): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/Context.h(126): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/Context.h(131): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/Context.h(132): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/Context.h(133): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/TensorGeometry.h(56): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\ATen/TensorGeometry.h(57): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\c10/cuda/CUDAStream.h(171): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\TH/THAllocator.h(60): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\TH/THAllocator.h(66): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/anaconda3/envs/trackformer/lib/site-packages/torch/include\THC/THCAllocator.h(14): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

ms_deform_attn_cuda.cu
nvcc error   : 'cudafe++' died with status 0xC00000FD (STACK_OVERFLOW)
ninja: build stopped: subcommand failed.

Does anyone know where the problem is?

Maggie-Xue commented 1 year ago

I'm glad that I have solved this problem! The reason is that the CUDA version is inconsistent with the cudatoolkit version in Pytorch. Now I have installed MultiScaleDeformableAttention successfully.

timmeinhardt commented 1 year ago

Glad to hear that you solved it. Can we close this issue?

Maggie-Xue commented 1 year ago

Yeah, thanks!