import MultiScaleDeformableAttention as MSDA ImportError: DLL load failed:
I completed the installation according to docs/INSTALL.md and tried to run the demo, but it can not import MultiScaleDeformableAttention
$ python src/track.py with dataset_name=DEMO data_root_dir=data/snakeboard output_dir=data/snakeboard write_images=pretty
Traceback (most recent call last):
File "src/track.py", line 16, in
Did the manual compiling of the MultiScaleDeformableAttention module finish without errors? And did the test run through?
below is the code when I install the MultiScaleDeformableAttention package and what did you mean the test?
$ python src/trackformer/models/ops/setup.py build --build-base=src/trackformer/models/ops/ install running build running build_ext C:\Users\SIMON\anaconda3\envs\TrackFormer_10\lib\site-packages\torch\utils\cpp_extension.py:237: UserWarning: Error checking compiler version for cl: [WinError 2] 지정된 파일을 찾을 수 없습니다 warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error)) running install C:\Users\SIMON\anaconda3\envs\TrackFormer_10\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. setuptools.SetuptoolsDeprecationWarning, C:\Users\SIMON\anaconda3\envs\TrackFormer_10\lib\site-packages\setuptools\command\easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. EasyInstallDeprecationWarning, running bdist_egg running egg_info writing MultiScaleDeformableAttention.egg-info\PKG-INFO writing dependency_links to MultiScaleDeformableAttention.egg-info\dependency_links.txt writing top-level names to MultiScaleDeformableAttention.egg-info\top_level.txt reading manifest file 'MultiScaleDeformableAttention.egg-info\SOURCES.txt' adding license file 'LICENSE' writing manifest file 'MultiScaleDeformableAttention.egg-info\SOURCES.txt' installing library code to src/trackformer/models/ops/bdist.win-amd64\egg running install_lib creating src\trackformer\models\ops\bdist.win-amd64\egg copying src/trackformer/models/ops/lib.win-amd64-cpython-37\MultiScaleDeformableAttention.cp37-win_amd64.pyd -> src/trackformer/models/ops/bdist.win-amd64\egg creating stub loader for MultiScaleDeformableAttention.cp37-win_amd64.pyd byte-compiling src/trackformer/models/ops/bdist.win-amd64\egg\MultiScaleDeformableAttention.py to MultiScaleDeformableAttention.cpython-37.pyc creating src\trackformer\models\ops\bdist.win-amd64\egg\EGG-INFO copying MultiScaleDeformableAttention.egg-info\PKG-INFO -> src/trackformer/models/ops/bdist.win-amd64\egg\EGG-INFO copying MultiScaleDeformableAttention.egg-info\SOURCES.txt -> src/trackformer/models/ops/bdist.win-amd64\egg\EGG-INFO copying MultiScaleDeformableAttention.egg-info\dependency_links.txt -> src/trackformer/models/ops/bdist.win-amd64\egg\EGG-INFO copying MultiScaleDeformableAttention.egg-info\top_level.txt -> src/trackformer/models/ops/bdist.win-amd64\egg\EGG-INFO writing src/trackformer/models/ops/bdist.win-amd64\egg\EGG-INFO\native_libs.txt zip_safe flag not set; analyzing archive contents... pycache.MultiScaleDeformableAttention.cpython-37: module references file creating 'dist\MultiScaleDeformableAttention-1.0-py3.7-win-amd64.egg' and adding 'src/trackformer/models/ops/bdist.win-amd64\egg' to it removing 'src/trackformer/models/ops/bdist.win-amd64\egg' (and everything under it) Processing MultiScaleDeformableAttention-1.0-py3.7-win-amd64.egg removing 'c:\users\simon\anaconda3\envs\trackformer_10\lib\site-packages\MultiScaleDeformableAttention-1.0-py3.7-win-amd64.egg' (and everything under it) creating c:\users\simon\anaconda3\envs\trackformer_10\lib\site-packages\MultiScaleDeformableAttention-1.0-py3.7-win-amd64.egg Extracting MultiScaleDeformableAttention-1.0-py3.7-win-amd64.egg to c:\users\simon\anaconda3\envs\trackformer_10\lib\site-packages MultiScaleDeformableAttention 1.0 is already the active version in easy-install.pth
Installed c:\users\simon\anaconda3\envs\trackformer_10\lib\site-packages\multiscaledeformableattention-1.0-py3.7-win-amd64.egg Processing dependencies for MultiScaleDeformableAttention==1.0 Finished processing dependencies for MultiScaleDeformableAttention==1.0
Is this the output from the first install or a second execution? The second one might not show the same errors as the first one. So you need to uninstall and then run it again. And try running this test script and check if it runs without error.
Is this the output from the first install or a second execution? The second one might not show the same errors as the first one. So you need to uninstall and then run it again. And try running this test script and check if it runs without error.
Hi, I have the same error: import MultiScaleDeformableAttention as MSDA ImportError: DLL load failed
And I have tried to run test.py, it shows as below: checking forward
- True check_forward_equal_with_pytorch: max_abs_err 4.66e-10 max_rel_err 1.11e-07 checking backward
- True check_backward_equal_with_pytorch - input1: max_abs_err 2.98e-08 max_rel_err 1.33e-07 max_abs_err_0 0.00e+00
- True check_backward_equal_with_pytorch - input2: max_abs_err 3.73e-09 max_rel_err 2.41e-06 max_abs_err_0 0.00e+00
- True check_backward_equal_with_pytorch - input3: max_abs_err 1.86e-09 max_rel_err 1.06e-07 max_abs_err_0 0.00e+00 checking gradient of pytorch version D:\anaconda3\envs\test\lib\site-packages\torch\autograd\gradcheck.py:244: UserWarning: At least one of the inputs that requires gradient is not of double precision floating point. This check will likely fail if all the inputs are not of double precision floating point. 'At least one of the inputs that requires gradient '
- True check_gradient_ms_deform_attn(True, True, False, False)
- True check_gradient_ms_deform_attn(True, False, True, False)
- True check_gradient_ms_deform_attn(True, False, False, True)
- True check_gradient_ms_deform_attn(True, True, True, True) checking gradient of cuda version
- True check_gradient_ms_deform_attn(False, True, False, False)
- True check_gradient_ms_deform_attn(False, False, True, False)
- True check_gradient_ms_deform_attn(False, False, False, True)
- True check_gradient_ms_deform_attn(False, True, True, True)
Process finished with exit code 0
Hello,I also meet the problem,did you solve it?