Google has open sourced
deeplearn.js to have you run deep learning in your browser.
deeplearn.js brings performant machine learning building blocks to the web, allowing you to train neural networks in a browser or run pre-trained models in inference mode.
deeplearn.js has two APIs, an immediate execution model (think NumPy) and a deferred execution model mirroring the TensorFlow API.
deeplearn.js was originally developed by the Google Brain PAIR team to build powerful interactive machine learning tools for the browser, but it can be used for everything from education, to model understanding, to art projects.
Typescript is the preferred language of choice for
deeplearn.js, however you can use it with plain
For this use case, you can load the latest version of the library directly from Google CDN:
WebGL 1.0 devices with the
OES_texture_float extension and also targets WebGL 2.0 devices. For platforms without WebGL, we provide CPU fallbacks.
However, currently our demos do NOT support Mobile, Firefox, and Safari. Please view them on desktop Chrome for now. We are working to support more devices. Check back soon!