3 ms·
You can actually get some useful NN performance if you do this sort of thing in the browser but using shaders in WebGL for doing the calculations on the GPU. Th
by ilaksh 10y ago
You can actually get some useful NN performance if you do this sort of thing in the browser but using shaders in WebGL for doing the calculations on the GPU. There is a Keras JS if you have already trained a net.. I think it uses the GPU. https://transcranial.github.io/keras-js/ https://transcranial.github.io/keras-js/
- ajhurliman 10y agoI thought the only output you could get from WebGL was pixels... I wonder if they're rendering the output layer on an off-screen canvas and reading the pixel values.
- ilaksh 10y agohttps://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels https://developer.mozilla.org/en-US/docs/Web/API/WebGLRender...
- Vekz 10y agoHere is another WebGL example that does GPU accelerated handwritten digit recognition. https://github.com/Erkaman/regl-cnn https://github.com/Erkaman/regl-cnn