Skip to content

Python Bindings, optionally pass PIL image  #92

Open

Description

@msharp9

Would love if the load_preprocess_encode_image python binding allowed me to pass in a PIL image instead of just a file path. In workloads where you already have an image in memory, it's a huge hit to latency to have to save the image to disk just so it can be passed into a clip_cpp model. Anytime we can avoid disk reads/writes is a benefit.

(Note it doesn't have to be a PIL Image, but that's what I have.)

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions