This -TensorFlow.js- tutorial is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License

This tutorial is about basic and advanced features of TensorFlow.js. This JavaScript software library a superset of the native WebGL API, which is available in modern browsers. Applications illustrating this tutorial have been designed from TensorFlow.js ver. 144. Accordingly, the code in this tutorial will probably not work for older versions.

For convenience, all applications are written in TypeScript to benefit from type checking since TensorFlow.js provides a TypeScript support.

Installation and basic execution of TensorFlow.js


Example (HTML)
<script src="js/lib/three.js"></script>

Example (JavaScript)

Data pre-processing


Fundamentals of TensorFlow.js

Train versus test versus validation data




Given front as a blue half sphere, compute mouth_geometry (in pink: raw location of a hypothetical mouth) from scratch.
Listing 1 (copy of a subset of faces from source geometry, i.e., front.geometry)
Listing 2 (copy of a subset of vertices from source geometry and consistently rearrange dependency between faces and vertices in target geometry , i.e., mouth_geometry)
Ragged tensors https://www.tensorflow.org/guide/ragged_tensor?hl=en overfitting (sur-ajustement) https://towardsdatascience.com/how-to-split-a-tensorflow-dataset-into-train-validation-and-test-sets-526c8dd29438