Closed seunghalee1226 closed 3 years ago
@luminxu please try if this problem can be reproduced.
It seems that you have not installed mmtracking successfully. Please install mmtracking and conduct verification following mmtracking. You can also verify it by 'from mmtrack.apis import inference_mot, init_model' to check whether there is any problem with importing mmtracking. Besides, please note that your installed mmcv-full==1.2.1 is incompatible with latest mmtracking.
I did re-install and verify if by 'from mmtrack.apis import inference_mot, init_model' . But I tried to conduct same command, i got this error.
(mmpose) airteam@air:~/shl/mmpose$ python demo/top_down_pose_tracking_demo_with_mmtracking.py demo/mmtracking_cfg/tracktor_faster-rcnn_r50_fpn_4e_mot17-private.py configs/top_down/hrnet/coco/hrnet_w48_coco_384x288.py work_dirs/hrnet_w48_coco_384x288/epoch_40.pth --video-path data/tail5.mp4 --show --device 0 --bbox-thr 0.1 --kpt-thr 0.1
2021-04-01 11:35:04,892 - mmtrack - INFO - load detector from: https://download.openmmlab.com/mmtracking/mot/faster_rcnn/faster-rcnn_r50_fpn_4e_mot17-ffa52ae7.pth
2021-04-01 11:35:04,892 - mmtrack - INFO - Use load_from_http loader
2021-04-01 11:35:04,978 - mmtrack - INFO - load reid from: https://download.openmmlab.com/mmtracking/mot/reid/tracktor_reid_r50_iter25245-a452f51f.pth
2021-04-01 11:35:04,979 - mmtrack - INFO - Use load_from_http loader
Traceback (most recent call last):
File "demo/top_down_pose_tracking_demo_with_mmtracking.py", line 151, in <module>
main()
File "demo/top_down_pose_tracking_demo_with_mmtracking.py", line 70, in main
args.tracking_config, None, device=args.device.lower())
File "/datas/airteam/shl/mmtracking/mmtrack/apis/inference.py", line 47, in init_model
model.to(device)
File "/home/airteam/anaconda3/envs/mmpose/lib/python3.7/site-packages/torch/nn/modules/module.py", line 600, in to
device, dtype, non_blocking, convert_to_format = torch._C._nn._parse_to(*args, **kwargs)
RuntimeError: Invalid device string: '0'
Furthermore, according to the assertionError, 1.2.4 <= mmcv <= 1.4.0
AssertionError: MMCV==1.2.1 is used but incompatible. Please install mmcv>=1.2.4, <=1.4.0.
The mmcv 1.2.4 lower bound is requested by mmdet, when mmdet is used.
args.device.lower()
shold be look like "cuda:0", as the default value for the device argument in https://github.com/open-mmlab/mmpose/blob/master/demo/top_down_pose_tracking_demo_with_mmtracking.py#L53
I tried to conduct command like this in tutorial, but i got new error.....
My command
python demo/top_down_pose_tracking_demo_with_mmtracking.py \
demo/mmtracking_cfg/tracktor_faster-rcnn_r50_fpn_4e_mot17-private.py \
configs/top_down/resnet/coco/res50_coco_256x192.py \
https://download.openmmlab.com/mmpose/top_down/resnet/res50_coco_256x192-ec54d7f3_20200709.pth \
--video-path demo/demo.mp4 \
--out-video-root vis_results
error
/home/airteam/anaconda3/envs/mmpose/lib/python3.7/site-packages/mmdet-2.10.0-py3.7.egg/mmdet/models/dense_heads/rpn_head.py:192: UserWarning: In rpn_proposal or test_cfg, nms_thr has been moved to a dict named nms as iou_threshold, max_num has been renamed as max_per_img, name of original arguments and the way to specify iou_threshold of NMS will be deprecated.
'In rpn_proposal or test_cfg, '
Warnings should not affect the final result.
@innerlee OK, Thanks !
I've already installed mmdet and mmtrack, but I also have the same problem.
python3 demo/top_down_video_demo_with_mmdet.py \ demo/mmdetection_cfg/faster_rcnn_r50_fpn_coco.py \ https://download.openmmlab.com/mmdetection/v2.0/faster_rcnn/faster_rcnn_r50_fpn_1x_coco/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth \ configs/body/2d_kpt_sview_rgb_img/topdown_heatmap/coco/hrnet_w48_coco_256x192.py \ https://download.openmmlab.com/mmpose/top_down/hrnet/hrnet_w48_coco_256x192-b9e0b3ab_20200708.pth \ --video-path 01.MOV --out-video-root Output01.mp4
Traceback (most recent call last):
File "demo/top_down_video_demo_with_mmdet.py", line 173, in
python3 demo/top_down_pose_tracking_demo_with_mmtracking.py \ demo/mmtracking_cfg/tracktor_faster-rcnn_r50_fpn_4e_mot17-private.py \ configs/body/2d_kpt_sview_rgb_img/topdown_heatmap/coco/res50_coco_256x192.py \ https://download.openmmlab.com/mmpose/top_down/resnet/res50_coco_256x192-ec54d7f3_20200709.pth \ --video-path 01.MOV --out-video-root vis_results
Traceback (most recent call last):
File "demo/top_down_pose_tracking_demo_with_mmtracking.py", line 164, in
How to fix it? Thanks!
Open a python terminal, type
from mmdet.apis import inference_detector, init_detector
Open a python terminal, type
from mmdet.apis import inference_detector, init_detector
It shows error
Traceback (most recent call last):
File "
Please uninstall all mmcv & mmcv-full in your system, and reinstall the latest mmcv-full.
Open a python terminal, type
from mmdet.apis import inference_detector, init_detector
It shows error
Traceback (most recent call last): File "", line 1, in File "/home/jeremyckt/mmdetection/mmdet/apis/init.py", line 1, in from .inference import (async_inference_detector, inference_detector, File "/home/jeremyckt/mmdetection/mmdet/apis/inference.py", line 6, in from mmcv.ops import RoIPool File "/home/jeremyckt/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/ops/init.py", line 1, in from .bbox import bbox_overlaps File "/home/jeremyckt/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/ops/bbox.py", line 3, in ext_module = ext_loader.load_ext('_ext', ['bbox_overlaps']) File "/home/jeremyckt/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/utils/ext_loader.py", line 12, in load_ext ext = importlib.import_module('mmcv.' + name) File "/home/jeremyckt/anaconda3/envs/open-mmlab/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named 'mmcv._ext'
@JeremyCKT have you solved this proplem ,i meet too
I completely installed mmtrack, mmcv, mmdet and mmpose, but i got this AssertionError about mmtrack module.
How could i fix it?
Reproduction
Conda list
Environment
Error traceback
If applicable, paste the error traceback here.
Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!