Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Bindings, optionally pass PIL image #92

Open
msharp9 opened this issue Apr 10, 2024 · 0 comments
Open

Python Bindings, optionally pass PIL image #92

msharp9 opened this issue Apr 10, 2024 · 0 comments

Comments

@msharp9
Copy link

msharp9 commented Apr 10, 2024

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant