在浏览器中运行Keras模型,并支持GPU

时间:2021-11-29 06:17:05

Keras.js

推荐一下网页上的 demo

https://transcranial.github.io/keras-js/#/

加载的比较慢,但是识别的非常快。

Run Keras models (trained using Tensorflow backend) in your browser, with GPU support. Models are created directly from the Keras JSON-format configuration file, using weights serialized directly from the corresponding HDF5 file. Also works in node, but only in CPU mode.

Currently the focus of this library is on forward-pass inference only.

Tensor operations are extended on top of the ndarray library. GPU support is powered by WebGL through weblas.

Library version compatibility:

Keras 2.0.4

TensorFlow 1.1.0

项目:

https://github.com/transcranial/keras-js

tensorflow

http://www.tensorflownews.com/