talira

TensorFlow.js

Hardware-accelerated JavaScript library for training and running ML models

open sourceApache-2.0free

TensorFlow.js is Google's open source, hardware-accelerated JavaScript library for training and deploying machine learning models in the browser or in Node.js. You can build models from scratch with a low-level linear algebra API or a Keras-like layers API, run pre-trained models from its models repository, convert TensorFlow SavedModels to run client-side, and retrain existing models with your own data. It runs on CPU, WebGL, WebAssembly and WebGPU backends in the browser, native TensorFlow under Node.js, and React Native.

Problems it solves

  • run a machine learning model in the browser without a server
  • use a TensorFlow model I trained in Python inside a web app
  • train or fine-tune a neural network in JavaScript or Node.js

Features

  • low-level Core API for neural networks and numerical computation
  • Keras-like Layers API
  • Data API to load and prepare data
  • converter that imports TensorFlow SavedModels
  • CPU, WebGL, WebAssembly and WebGPU backends in the browser
  • Node.js backend on native TensorFlow, and React Native support
  • pre-trained models published on npm
  • in-browser visualization with tfjs-vis