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

Minimal example for image inference #40

Open
yonatanbitton opened this issue Apr 14, 2021 · 3 comments
Open

Minimal example for image inference #40

yonatanbitton opened this issue Apr 14, 2021 · 3 comments

Comments

@yonatanbitton
Copy link

Hello

I am trying to use other model and it gets complicated.

I was wondering whether someone haev minimal example on how to run inference on existing image from memory? This way it will be simpler to understand how to adapt different model.

Thanks for the repo!

@tucan9389
Copy link
Owner

@yonatanbitton
Does the "existing image from memory" mean UIImage type on iOS? or CVPixelBuffer?
Please tell me more detail about your issues.

@yonatanbitton
Copy link
Author

Thanks for the response.
I've managed to run your app with my model, this is very helpful, thanks!
Now I want to run it on a list of png images. I am wondering how to adapt the existing code to use single image from memory. I am not sure if it should be UIImage or CVPixelBuffer. This way I am looking for some reference about how to do it.

@tucan9389
Copy link
Owner

Hmm.. in this repo, there is no minimal method for inferencing just images without launching the app.
When you make that kind of function, I'll appreciate it if you make PR 🙃

Here is the Q&A that looks like what you want
https://developer.apple.com/forums/thread/79976

I hope it could be helpful to you.

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

2 participants