Skip to content

Fix: single-person inference picks largest-area detection instead of highest-confidence#97

Open
TannerGilbert wants to merge 1 commit into
MotrixLab:mainfrom
TannerGilbert:main
Open

Fix: single-person inference picks largest-area detection instead of highest-confidence#97
TannerGilbert wants to merge 1 commit into
MotrixLab:mainfrom
TannerGilbert:main

Conversation

@TannerGilbert
Copy link
Copy Markdown

In main/inference.py, process_mmdet_results(multi_person=True) sorts person detections by area, then mmdet_box[0] is taken in single-person mode. This means a low-confidence noise box can win over the correct person whenever it happens to be slightly larger.

Example (red is the one predictrred by SMPLer-X and green for example is predicted by YOLO)
dgs_bbox_overlay

As a solution I simply sorted the boxes by score.

…highest-confidence

Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at>
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 this pull request may close these issues.

1 participant