mmpose
mmpose copied to clipboard
[Bug] D:\Anaconda\envs\openmmlab\lib\site-packages\mmcv\cnn\bricks\transformer.py:33: UserWarning: Fail to import ``MultiScaleDeformableAttention`` from ``mmcv.ops.multi_scale_deform_attn``, You should install ``mmcv`` rather than ``mmcv-lite`` if you need this module. warnings.warn('Fail to import ``MultiScaleDeformableAttention`` from '
Prerequisite
- [X] I have searched Issues and Discussions but cannot get the expected help.
- [X] The bug has not been fixed in the latest version(https://github.com/open-mmlab/mmpose).
Environment
from mmpose.apis import inference_topdown, init_model from mmpose.utils import register_all_modules
register_all_modules()
config_file = 'td-hm_hrnet-w48_8xb32-210e_coco-256x192.py' checkpoint_file = 'td-hm_hrnet-w48_8xb32-210e_coco-256x192-0e67c616_20220913.pth' model = init_model(config_file, checkpoint_file, device='cpu') # or device='cuda:0'
请准备好一张带有人体的图片
results = inference_topdown(model, 'demo.jpg')
Reproduces the problem - code sample
D:\Anaconda\envs\openmmlab\python.exe D:\rtmpose1\mmpose\test.py
D:\Anaconda\envs\openmmlab\lib\site-packages\mmcv\cnn\bricks\transformer.py:33: UserWarning: Fail to import MultiScaleDeformableAttention
from mmcv.ops.multi_scale_deform_attn
, You should install mmcv
rather than mmcv-lite
if you need this module.
warnings.warn('Fail to import MultiScaleDeformableAttention
from '
Traceback (most recent call last):
File "D:\rtmpose1\mmpose\test.py", line 1, in
Process finished with exit code 1
Reproduces the problem - command or script
包已经装好了 在测试时还是出现这个问题
Reproduces the problem - error message
包已经装好了 在测试时还是出现这个问题
Additional information
官网的测试代码
same error it happened just in recent past few days never happened before
Oh i guess here is a solotuion: your pytorch version should not be 2.2.0 or higher version. When i downgrade the version of pytorch on colab, it works. !pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu121 !pip install mmcv==2.1.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.1/index.html
@FrankXu1 you just saved me