nsfwjs icon indicating copy to clipboard operation
nsfwjs copied to clipboard

wasm?

Open lagleki opened this issue 3 years ago • 2 comments

Any plans on packing into wasm?

lagleki avatar Oct 23 '20 15:10 lagleki

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.

GantMan avatar Oct 23 '20 15:10 GantMan

@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/

YankeeTube avatar Oct 20 '22 05:10 YankeeTube