mmdetection
mmdetection copied to clipboard
Fix: Obtaining cat_id through class name may cause bug in some cases
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.
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.