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
When creating a dataset importer, it would be great to have a way to specify what split the item belongs to. It seems fy.Sample have a tags field that can be used for that, but in the importer, the __next__ function returns (image_path, image_metadata, label), and I didn't find a way to set a Sample property from there.
Motivation
What is the use case for this feature?
I would like to keep track of splits on my datasets, since I often only want to perform some operations on a subset of my dataset
Why is this use case valuable to support for FiftyOne users in general?
I expect other people also want to keep track of their splits
Why is it currently difficult to achieve this use case?
I don't see a way to set fo.Sample attributes from the importer class
What areas of FiftyOne does this feature affect?
App: FiftyOne application
Core: Core fiftyone Python library
Server: FiftyOne server
Details
Maybe the __next__function could return a fo.Sample
Willingness to contribute
The FiftyOne Community welcomes contributions! Would you or another member of your organization be willing to contribute an implementation of this feature?
Yes. I can contribute this feature independently
Yes. I would be willing to contribute this feature with guidance from the FiftyOne community
No. I cannot contribute this feature at this time
The text was updated successfully, but these errors were encountered:
@CourchesneA there is a GenericSampleDatasetImporter interface that you can subclass from that allows the __next__ method to return an entire Sample object as you suggest!
Instructions
Proposal Summary
When creating a dataset importer, it would be great to have a way to specify what split the item belongs to. It seems fy.Sample have a
tags
field that can be used for that, but in the importer, the__next__
function returns(image_path, image_metadata, label)
, and I didn't find a way to set aSample
property from there.Motivation
I would like to keep track of splits on my datasets, since I often only want to perform some operations on a subset of my dataset
I expect other people also want to keep track of their splits
I don't see a way to set
fo.Sample
attributes from the importer classWhat areas of FiftyOne does this feature affect?
fiftyone
Python libraryDetails
Maybe the
__next__
function could return afo.Sample
Willingness to contribute
The FiftyOne Community welcomes contributions! Would you or another member of your organization be willing to contribute an implementation of this feature?
The text was updated successfully, but these errors were encountered: