-
Notifications
You must be signed in to change notification settings - Fork 15
Group python interface prototype #398
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
base: main
Are you sure you want to change the base?
Group python interface prototype #398
Conversation
| "img": ImageCreateFromPath(path=str(image_path)), | ||
| "vid": VideoCreateFromPath(path=str(video_path)), |
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.
I feel this naming is overly specific. Do we see cases different FromPath?
I think i would love to see simply Image() and Video()
| group_ds = GroupDataset.create( | ||
| components=[ | ||
| ("img", SampleType.IMAGE), | ||
| ("vid", SampleType.VIDEO), | ||
| ("extra", SampleType.IMAGE), | ||
| ], | ||
| name="test_group_dataset", | ||
| ) |
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.
I think this is really nice. It introduces the wording components to the user. It kind of implies that the schema is rigid.
| group_sample = samples[0] | ||
| img_sample = group_sample["img"] | ||
| vid_sample = group_sample["vid"] | ||
| extra_sample = group_sample["extra"] |
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.
This is now very close to dataframe libraries, makes it easy to understand
What has changed and why?
(Delete this: Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.)
How has it been tested?
(Delete this: Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.)
Did you update CHANGELOG.md?