-
Notifications
You must be signed in to change notification settings - Fork 15
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
skeletons in datumaro format #47
Conversation
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe update implements skeleton support in the Datumaro format and enhances the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- CHANGELOG.md (1 hunks)
- datumaro/components/annotation.py (1 hunks)
- datumaro/plugins/datumaro_format/converter.py (3 hunks)
- datumaro/plugins/datumaro_format/extractor.py (2 hunks)
- tests/test_datumaro_format.py (2 hunks)
Additional comments not posted (6)
datumaro/plugins/datumaro_format/extractor.py (1)
255-267
: Handling Skeleton annotations looks good.The addition of the
Skeleton
annotation type in the_load_annotations
function is correct. The nested call to_load_annotations
ensures that skeleton elements are properly loaded.datumaro/plugins/datumaro_format/converter.py (2)
147-148
: Handling Skeleton annotations in _SubsetWriter looks good.The addition of the
Skeleton
annotation type in_SubsetWriter
is correct and ensuresSkeleton
annotations are processed correctly.
272-280
: The _convert_skeleton_object method looks good.The
_convert_skeleton_object
method correctly convertsSkeleton
annotations, including converting its elements to points objects.tests/test_datumaro_format.py (1)
524-581
: The test_can_save_and_load_with_skeleton method looks good.The new test method
test_can_save_and_load_with_skeleton
correctly tests the saving and loading ofSkeleton
annotations, including various attributes and elements.datumaro/components/annotation.py (1)
711-715
: The from_iterable method in PointsCategories looks good.The updated
from_iterable
method correctly handles the new iterable type, enhancing flexibility in input structure.CHANGELOG.md (1)
46-47
: LGTM!The entry correctly documents the addition of skeleton support in the datumaro format. Including the reference to the pull request is a good practice for traceability.
4438410
to
da50707
Compare
6584e1b
to
fb134e3
Compare
fb134e3
to
4257150
Compare
Could you add a skeleton annotation example in the dataset here? We store dataset examples in different formats there. |
Done |
These examples are parsed in the tests. I suggest that this example is merged with the existing dataset or a separate parsing test is added. |
fa11f80
to
36e4bc5
Compare
Done |
… points of the Skeleton
Quality Gate passedIssues Measures |
Summary
How to test
unit tests
Checklist
develop
branchLicense
Feel free to contact the maintainers if that's a concern.
Summary by CodeRabbit
New Features
env.detect_dataset()
function to return a list of detected formats at all recursion levels.Bug Fixes
Category.from_iterable
to accept a broader range of iterable types.Tests