open-mmlab / mmaction2

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

[Fix] Fix add_datasample draw label bug #2859

Open Aierhaimian opened 4 months ago

Aierhaimian commented 4 months 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 4 months 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.