open-mmlab / mmaction2

OpenMMLab's Next Generation Video Understanding Toolbox and Benchmark

Home Page:https://mmaction2.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImportError: Please install mmdet to use init_detector. For OpenMMLAB codebases, you may need to install mmcv-full first before you install the particular codebase.

15598003953 opened this issue · comments

Branch

0.x branch (0.x version, such as v0.24.1)

Prerequisite

Environment

mmaction2 0.22.0 d:\code\mmaction2-0.22.0
mmcls 0.25.0
mmcv-full 1.4.6
mmdet 2.20.0 d:\code\mmaction2-0.22.0\mmdetection-2.20.0
mmtrack 0.14.0 d:\code\mmaction2-0.22.0\mmdetection-2.20.0\src\mmtrack

Describe the bug

test >>webcam_demo_spatiotemporal_det.py

Reproduces the problem - code sample

D:\Anaconda3\envs\mmact22\python.exe D:/CODE/mmaction2-0.22.0/demo/webcam_demo_spatiotemporal_det.py
D:\Anaconda3\envs\mmact22\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-full if you need this module.
warnings.warn('Fail to import MultiScaleDeformableAttention from '
D:\CODE\mmaction2-0.22.0\mmdetection-2.20.0\mmdet\models\utils\transformer.py:26: UserWarning: MultiScaleDeformableAttention in MMCV has been moved to mmcv.ops.multi_scale_deform_attn, please update your MMCV
warnings.warn(
D:\CODE\mmaction2-0.22.0\mmdetection-2.20.0\mmdet\models\utils\transformer.py:26: UserWarning: MultiScaleDeformableAttention in MMCV has been moved to mmcv.ops.multi_scale_deform_attn, please update your MMCV
warnings.warn(
D:\CODE\mmaction2-0.22.0\mmdetection-2.20.0\mmdet\models\utils\transformer.py:26: UserWarning: MultiScaleDeformableAttention in MMCV has been moved to mmcv.ops.multi_scale_deform_attn, please update your MMCV
warnings.warn(
D:\CODE\mmaction2-0.22.0\mmdetection-2.20.0\mmdet\models\utils\transformer.py:26: UserWarning: MultiScaleDeformableAttention in MMCV has been moved to mmcv.ops.multi_scale_deform_attn, please update your MMCV
warnings.warn(
Traceback (most recent call last):
File "D:/CODE/mmaction2-0.22.0/demo/webcam_demo_spatiotemporal_det.py", line 856, in
main(parse_args())
File "D:/CODE/mmaction2-0.22.0/demo/webcam_demo_spatiotemporal_det.py", line 772, in main
human_detector = MmdetHumanDetector(args.det_config, args.det_checkpoint,
File "D:/CODE/mmaction2-0.22.0/demo/webcam_demo_spatiotemporal_det.py", line 257, in init
self.model = init_detector(config, ckpt, device)
File "D:\CODE\mmaction2-0.22.0\mmaction\utils\decorators.py", line 12, in new_func
raise ImportError(
ImportError: Please install mmdet to use init_detector. For OpenMMLAB codebases, you may need to install mmcv-full first before you install the particular codebase.

Reproduces the problem - command or script

No response

Reproduces the problem - error message

No response

Additional information

No response