Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(TopDown Inference) IndexError: tuple index out of range #568

Closed
HoBeom opened this issue Apr 13, 2021 · 1 comment · Fixed by #569
Closed

(TopDown Inference) IndexError: tuple index out of range #568

HoBeom opened this issue Apr 13, 2021 · 1 comment · Fixed by #569
Assignees

Comments

@HoBeom
Copy link
Contributor

HoBeom commented Apr 13, 2021

Describe the bug

IndexError: tuple index out of range

Reproduction

python demo/top_down_pose_tracking_demo_with_mmdet.py  \
demo/mmdetection_cfg/faster_rcnn_r50_fpn_coco.py \
http://download.openmmlab.com/mmdetection/v2.0/faster_rcnn/faster_rcnn_r50_fpn_1x_coco/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth \
    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 /dev/video0 \
    --show

Environment

Docker env

Error traceback

Use load_from_http loader
Use load_from_http loader
Traceback (most recent call last):
  File "demo/top_down_pose_tracking_demo_with_mmdet.py", line 177, in <module>
    main()
  File "demo/top_down_pose_tracking_demo_with_mmdet.py", line 132, in main
    pose_results, returned_outputs = inference_top_down_pose_model(
  File "/mmpose/mmpose/apis/inference.py", line 370, in inference_top_down_pose_model
    assert bboxes.shape[1] == 5
IndexError: tuple index out of range

Exception handling is not exist when the human bounding boxes are not detected

Bug fix


ADD

    if len(person_results) == 0:
        return pose_results, returned_outputs
@innerlee
Copy link
Contributor

Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants