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

Problem deleting label #201

Closed
lambertwx opened this issue Apr 1, 2021 · 1 comment · Fixed by #203
Closed

Problem deleting label #201

lambertwx opened this issue Apr 1, 2021 · 1 comment · Fixed by #203
Labels
BUG Something isn't working good first issue Good for newcomers

Comments

@lambertwx
Copy link

lambertwx commented Apr 1, 2021

I am trying to delete a label from a dataset that has many labels. So, I tried the following

# Get it into datumaro format
python -m datumaro import -i tests/assets/cvat_dataset/for_images/train.xml -f cvat --copy -o dmu_copy --overwrite

# Remove the label1 label
python -m datumaro --loglevel debug transform -t remap_labels -p dmu_copy -o dmu_sans_label1 --overwrite  -- -l label1: --default keep

Unfortunately when I look at the resulting dmu_sans_label1/dataset/annotations/train.json, I still see that label1 is present in both the categories and in the actual annotation on img0. So no delete occurred, even though the debug output says DEBUG: #0 'label1' -> <deleted>

This occurs in the most recent version of the develop branch.

@zhiltsov-max zhiltsov-max added BUG Something isn't working good first issue Good for newcomers labels Apr 2, 2021
@lambertwx
Copy link
Author

I tested. The fix works well. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants