Skip to content

In-memory statistics calculation #209

Description

@MichalOleszak

Hello,

Do you support in-memory computation of statistics, or are you planning to add such a feature?

Details

I'm missing the possibility to obtain statistics like the ones returned by imagelab.get_stats() for an image that is not stored in a filesystem, but rather is kept in memory.

Let's say I have a vision model deployed and it receives an image for inference via a REST API. The image is a numpy array or a PIL Image. I'd like to be able to obtain the statistics for it before passing it to the model for inference. A working solution I came up with is saving the image to a tempdir and calling cleanvision on it, but this unsurprisingly is very slow.

In case you are not planning on developing such a feature, could you please advise on a faster workaround than using tempdir? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions