mmdetection icon indicating copy to clipboard operation
mmdetection copied to clipboard

Fix: Obtaining cat_id through class name may cause bug in some cases

Open mjq2020 opened this issue 1 year ago • 1 comments

An incorrect cat_id occurs when the name of the supercategory is the same as the actual detection category name of the dataset.

Motivation

An incorrect cat_id occurs when the name of the supercategory is the same as the actual detection category name of the dataset.

Modification

When obtaining cat_id, set the sup_names of the class name at the same time to prevent the cat_id of supercategory from being returned.

mjq2020 avatar Jan 17 '24 08:01 mjq2020

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.

CLAassistant avatar Jan 17 '24 08:01 CLAassistant