5 ms·
Does the Tensorflow model run in JS? How fast is that? Would it be feasible to run the model in wasm or in the GPU?
by nextaccountic 6y ago
Does the Tensorflow model run in JS? How fast is that?
Would it be feasible to run the model in wasm or in the GPU?
- rlayton2 6y agoI can't speak for this specific model/extension, but "most" neural networks aren't that big at the end of the day, and you are just a few matrix dot products away from getting your classification (of course, I'm drastically simplifying). Its the training that takes forever, due to the fact all those numbers need tweaking. However one you have the model, classifying is pretty fast.
- imvetri 6y agoAre there tools to visualise trained model,?
- rlayton2 6y agoSomething like this: https://www.tensorflow.org/tensorboard https://www.tensorflow.org/tensorboard
- imvetri 6y agoSomething to visualise the models, the one in this link https://github.com/nsfw-filter/nsfw-filter/tree/master/dist/models https://github.com/nsfw-filter/nsfw-filter/tree/master/dist/...
- dc_count 6y agoUse netron to visualize model: https://lutzroeder.github.io/netron/?url=https://raw.githubusercontent.com/nsfw-filter/nsfw-filter/master/dist/models/model.json https://lutzroeder.github.io/netron/?url=https://raw.githubu...
- langitbiru 6y agoYes, tensorflow model can run on JS. I did that when developing a Deep Learning product, PredictSalary (https://predictsalary.com https://predictsalary.com). The problem is not the model, but the TensorflowJS library (using Node) is big (8MB) after webpack-ing it (even after using compressing flag). So I decided to move the inference to the server. It's fast but I didn't toy with GPU setting when running Tensorflow model on JS.
- rtz12 6y agoI just installed this, and my whole browser grinds to a halt when I load a page...
- navendu_p 6y agoThat should not happen! Could you tell us about the issue? https://github.com/nsfw-filter/nsfw-filter/issues https://github.com/nsfw-filter/nsfw-filter/issues
- navendu_p 6y agoSo we use MobileNet V2 model. It is relatively light weight and can run fast on the browser itself