Live data from Hacker News

Keras.js – Run trained Keras models in your browser

github.com

21–28 of 28 posts

Re: Keras.js – Run trained Keras models in your browser

#21
post #5

What sort of performance can be expected compared to running in the terminal? How large NNs will this scale to in practice? I see a 50-layer resnet is mentioned; but not 1000-layers?

On these demos, I'm getting several seconds on the imagenet inception v3 recognition on an i7 macbook pro (nvidia gpu), on both gpu and cpu modes.

I've built tensorflow for android, running inceptionv3 trained on imagenet and it's much faster, running just on mobile CPU pretty much realtime, around 5fps. On a desktop CPU/GPU it's obviously even faster

Re: Keras.js – Run trained Keras models in your browser

#22
This is awesome. We're trying to do something similar but moving in the opposite direction language-wise by implementing the models in C++:

https://github.com/dguest/lwtnn

The idea is to have something lightweight that we can easily copy into our analysis framework (which is written in C++).

If anyone reading this knows of a library that already does this it could save us some time.

Post reply on HN