Skip to content

Rename bbox_labels and polyon_labels to labels#1881

Merged
gdlg merged 3 commits intodevelopfrom
gppayend/labels
Sep 17, 2025
Merged

Rename bbox_labels and polyon_labels to labels#1881
gdlg merged 3 commits intodevelopfrom
gppayend/labels

Conversation

@gdlg
Copy link
Copy Markdown
Contributor

@gdlg gdlg commented Sep 17, 2025

Some datasets like COCO have multiple shapes like bounding box and polygon for the same annotation. Those annotation shapes share the same labels but since the legacy Datumaro dataset does not support sharing the labels, they are duplicated.

When converting to the new dataset format, we do not want to create separate fields for the bounding box and polygon labels because they are the same and trying to create multiple fields of the same type result in a conflict. Therefore, we use the same name both the bounding box and polygon labels. This means that the bounding and polygon converters will overwrite each others labels but this is not a problem since the values are the same. In the future, it would be better to add validation for that.

Checklist

  • I have added tests to cover my changes or documented any manual tests.
  • I have added the description of my changes into CHANGELOG.
  • I have updated the documentation accordingly

Signed-off-by: Grégoire Payen de La Garanderie <gregoire.payen.de.la.garanderie@intel.com>
@gdlg gdlg marked this pull request as ready for review September 17, 2025 08:30
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Signed-off-by: Grégoire Payen de La Garanderie <gregoire.payen.de.la.garanderie@intel.com>
@gdlg gdlg merged commit fc4fa85 into develop Sep 17, 2025
16 checks passed
@gdlg gdlg deleted the gppayend/labels branch September 25, 2025 11:42
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.

3 participants