open-mmlab / mmaction2

OpenMMLab's Next Generation Video Understanding Toolbox and Benchmark
https://mmaction2.readthedocs.io
Apache License 2.0
4.04k stars 1.2k forks source link

[Fix] Fix add_datasample draw label bug #2859

Open Aierhaimian opened 1 week ago

Aierhaimian commented 1 week ago

Motivation

I used demo.py to experience mmaction2, and set it to save the inference results. However, when I opened the result file to play, I found that the code did not correctly insert the inference label information into the video frame.

Modification

I found some bugs in the add_datasample method code of the ActionVisualizer class in lines 217-247 and made corresponding modifications.

CLAassistant commented 1 week ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.