-
Notifications
You must be signed in to change notification settings - Fork 133
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
Enhance 'id_from_image_name' transform to ensure each identifier is unique #1635
Enhance 'id_from_image_name' transform to ensure each identifier is unique #1635
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1635 +/- ##
===========================================
+ Coverage 81.06% 81.17% +0.10%
===========================================
Files 278 281 +3
Lines 32517 32781 +264
Branches 6607 5294 -1313
===========================================
+ Hits 26360 26609 +249
- Misses 4701 4721 +20
+ Partials 1456 1451 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Looks good to me, but I left one comment. It may be misunderstanding due to my low understanding of this feature, if it doesn't matter, you can ignore it.
def fxt_dataset(self, n_labels=3, n_anns=5, n_items=7) -> Dataset: | ||
video = Video("video.mp4") | ||
video._frame_size = MagicMock(return_value=(32, 32)) | ||
video.get_frame_data = MagicMock(return_value=np.ndarray((32, 32, 3), dtype=np.uint8)) | ||
return Dataset.from_iterable( | ||
[ | ||
DatasetItem(id=1, media=Image.from_file(path="path1.jpg")), | ||
DatasetItem(id=2, media=Image.from_file(path="path1.jpg")), | ||
DatasetItem(id=3, media=Image.from_file(path="path1.jpg")), | ||
DatasetItem(id=4, media=VideoFrame(video, index=30)), | ||
DatasetItem(id=5, media=VideoFrame(video, index=30)), | ||
DatasetItem(id=6, media=VideoFrame(video, index=60)), | ||
DatasetItem(id=7), | ||
DatasetItem(id=8, media=Image.from_numpy(data=np.ones([5, 5, 3]))), | ||
] | ||
) |
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.
Is it okay to bundle the dataset for all tests in one without dividing the dataset into several?
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.
As you said, we can make several datasets, but I think it doesn't matter to reuse it.
Summary
Ticket: 153389
How to test
Checklist
License
Feel free to contact the maintainers if that's a concern.