[FR] Support more image codecs in fiftyone.utils.image.read
#5492
Labels
feature
Work on a feature request
fiftyone.utils.image.read
#5492
Proposal Summary
Support more codecs when reading images from
fiftyone.utils.image.read
What areas of FiftyOne does this feature affect?
fiftyone
Python libraryDetails
read
uses opencv, which doesn't support.avif
images (well at least not from what I could see):Example 1:
Example 2:
The errors from the traceback aren't also very helpful.
Workaround
In my usecase, I encounter this issue because I use
fiftyone.Dataset.apply_model
(which calls internallyfiftyone.utils.image.read
).Adding an option to the internal of
fiftyone.Dataset.apply_model
to forward only the sample to the model could work. Essentially adding aonly_needs_sample
argument or something here:fiftyone/fiftyone/core/models.py
Lines 328 to 334 in f40ab0e
Since I'm creating my own model, I can handle the loading of the image myself.
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: