nsfwjs
nsfwjs copied to clipboard
wasm?
Any plans on packing into wasm?
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.
@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/