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

wasm? #428

Open
lagleki opened this issue Oct 23, 2020 · 2 comments
Open

wasm? #428

lagleki opened this issue Oct 23, 2020 · 2 comments
Labels
question Further information is requested

Comments

@lagleki
Copy link

lagleki commented Oct 23, 2020

Any plans on packing into wasm?

@GantMan GantMan added the question Further information is requested label Oct 23, 2020
@GantMan
Copy link
Member

GantMan commented Oct 23, 2020

You can set the backend for TFJS to WASM and this should work.

Here's a blog post on how to do so with create react app: https://shift.infinite.red/adding-tensorflow-js-wasm-backend-in-create-react-app-f57f5baab736

IF you'd like to add a WASM example to the site and a test to assure WASM is properly supported, that would be an epic contribution! If for some reason this doesn't work with WASM, I'd love to fix that.

@YankeeTube
Copy link

YankeeTube commented Oct 20, 2022

@lagleki
I just made it myself.
on TFJS WASM + Web Worker Version

There is a slight difference compared to nsfwjs.
But it's not a big deal to judge.

https://gist.github.com/YankeeTube/ee96f60f57b9038ee0b703fc6620e7d9

demo site
https://nsfw.tlnd.cc/

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

No branches or pull requests

3 participants