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

Post idea: running neural networks in Pyodide with OpenCV #28

Open
ryanking13 opened this issue May 11, 2022 · 1 comment
Open

Post idea: running neural networks in Pyodide with OpenCV #28

ryanking13 opened this issue May 11, 2022 · 1 comment

Comments

@ryanking13
Copy link
Member

ryanking13 commented May 11, 2022

Recently we added OpenCV to Pyodide. While testing OpenCV, I was able to run Pytorch neural network (converted to ONNX) in Pyodide using OpenCV DNN modules, though it is inference only and of course very slow (no GPU).

I would like to share some ideas about it, which also include some examples of handling images and dealing with the file system.

You can test it here: https://ryanking13.github.io/style-transfer-pyodide/

Demo video

demo.mp4
@rth
Copy link
Member

rth commented May 11, 2022

Very nice demo, looking forward to reading your post!

On the demo page, you might want to put a sentence mentioning OpenCV and ONNX (or put it in the title). And also enable re-sizing by default, otherwise it's will take a long time if the user uploads some high res image.

Personal opinion, and feel free to ignore, but it would be nice if the post also answered the question:

There is opencv-wasm and ONNX which work already in the browser, so why do we need Pyodide to do this?

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

No branches or pull requests

2 participants