[FR] Allow patches exports to pull labels from Detection attributes/fields #1989
Closed
2 of 6 tasks
Labels
enhancement
Code enhancement
Proposal Summary
After using FiftyOne and CVAT to organize my datasets, I've encountered a relatively common pattern of exporting patches into different classification datasets for secondary analysis. For instance, if my object detector was training on detecting apples, I may assign an attribute in CVAT to describe the color of a selected apple. To ease the requirements on my object detector, I would implement a second classifier to perform the attribute classification downstream. Right now, exporting patches seems to be limited to exporting images with labels assigned to
Detection
s, not attributes stored in fields or the attributes dictionary of said label classes.I think the
export
method should define an interface to make this type of exporting possible.Motivation
Users can now export image classification datasets from attributes rather than the original object detection labels, adding support for a two-step detect then classify pipeline.
It seems to be a common pattern for designers who wish to constrain the complexity of their object detector's labeling schema and instead pass it along to a second stage classifier.
organization?
Several of my projects utilize this pattern and I don't see that changing too soon.
specific as possible about why related FiftyOne features and components are
insufficient)
Custom scripting isn't necessarily hard to write for this case, but allowing annotations to carry attributes meant for image classification applications seems to suggest this feature be in place.
What areas of FiftyOne does this feature affect?
fiftyone
Python libraryDetails
It seems like the best options would be to add additional configuration to the
ImagePatchesExtractor
via theexport
method. Maybe something likelabel_schema
for CVAT annotations that allows users to specify an attribute or multiple attributes to assign to each extracted patch?There may be good reasons to also implement a custom
transforms
argument forImagePatchesExtractor
that would allow for greater control over the final look of extracted patches than the originalalpha
andforce_square
. This could be argued to be irrelevant as at training time users can apply whatever transforms they wish to properly format images to a model's input.Willingness to contribute
The FiftyOne Community encourages new feature contributions. Would you or
another member of your organization be willing to contribute an implementation
of this feature?
the FiftyOne community.
The text was updated successfully, but these errors were encountered: