You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I manually made a datumaro dataset which has 4 labels in the LabelCategories but has unknown label annotation(label=4).
When I tried to calculate annotation statistics, it raised an error like this:
I think compute_ann_statistics and corresponding validator should be checked to fix this bug.
The text was updated successfully, but these errors were encountered:
<!-- Contributing guide:
https://github.com/openvinotoolkit/datumaro/blob/develop/CONTRIBUTING.md
-->
### Summary
Regarding the issue #1204 , modify `compute_ann_statistics` function to
handle undefined labels.
And add corresponding unit test.
<!--
Resolves#111 and #222.
Depends on #1000 (for series of dependent commits).
This PR introduces this capability to make the project better in this
and that.
- Added this feature
- Removed that feature
- Fixed the problem #1234
-->
### How to test
<!-- Describe the testing procedure for reviewers, if changes are
not fully covered by unit tests or manual testing can be complicated.
-->
### Checklist
<!-- Put an 'x' in all the boxes that apply -->
- [x] I have added unit tests to cover my changes.
- [ ] I have added integration tests to cover my changes.
- [x] I have added the description of my changes into
[CHANGELOG](https://github.com/openvinotoolkit/datumaro/blob/develop/CHANGELOG.md).
- [ ] I have updated the
[documentation](https://github.com/openvinotoolkit/datumaro/tree/develop/docs)
accordingly
### License
- [x] I submit _my code changes_ under the same [MIT
License](https://github.com/openvinotoolkit/datumaro/blob/develop/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).
```python
# Copyright (C) 2023 Intel Corporation
#
# SPDX-License-Identifier: MIT
```
I manually made a datumaro dataset which has 4 labels in the LabelCategories but has unknown label annotation(label=4).
When I tried to calculate annotation statistics, it raised an error like this:
I think
compute_ann_statistics
and corresponding validator should be checked to fix this bug.The text was updated successfully, but these errors were encountered: