Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix VOC mask export when background class id is not 0 #9

Merged
merged 15 commits into from
Oct 11, 2022

Conversation

zhiltsov-max
Copy link
Collaborator

@zhiltsov-max zhiltsov-max commented Oct 4, 2022

Summary

Related #cvat-ai/cvat#5031

  • Fixes the export problem in (VOC) masks when bg label is not 0
  • Refactored VOC labelmap handling code, introduced a separate class for label map
  • TFDS tests are now optional depending on the package availability

How to test

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2022 CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

@zhiltsov-max zhiltsov-max changed the title [WIP] Allow to configure the background class for mask export Fix VOC mask export when background class id is not 0 Oct 6, 2022
datumaro/components/annotation.py Outdated Show resolved Hide resolved
datumaro/util/__init__.py Outdated Show resolved Hide resolved
datumaro/plugins/voc_format/format.py Outdated Show resolved Hide resolved
datumaro/plugins/voc_format/format.py Outdated Show resolved Hide resolved
datumaro/plugins/voc_format/format.py Outdated Show resolved Hide resolved
datumaro/plugins/voc_format/format.py Outdated Show resolved Hide resolved
zhiltsov-max and others added 4 commits October 10, 2022 16:19
Co-authored-by: Роман Донченко <dpb@corrigendum.ru>
…or-masks' into zm/allow-to-configure-bg-label-for-masks
@zhiltsov-max zhiltsov-max merged commit d9f4920 into develop Oct 11, 2022
@zhiltsov-max zhiltsov-max deleted the zm/allow-to-configure-bg-label-for-masks branch October 11, 2022 11:32
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.

2 participants