Skip to content

ImagePayload.cache should support more generic data type #868

Open
@hepengfe

Description

@hepengfe

Is your feature request related to a problem? Please describe.
Currently ImagePayload.cache is expected to be numpy.Ndarray but sometimes we read image into a library-specific objects that can be handy for the library-specific post-processing.

Describe the solution you'd like
We should support more generic data types rather than numpy array only.

For example, some image data objects from PIL library.

Also, note that this library supports lazy loading internally while initializing an image object by PIL.Image.open(image_path)

Describe alternatives you've considered
No.

Additional context
No.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: dataIssue about data loader modules and data processing relatedtopic: ontologyAll issues related to ontologies in core, top and base_ontologytopic:cv

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions