Getting Start
Basic Concepts
TensorSpace Converter
Model Preprocessing
Merge Function
Install TensorSpace
Install in the Basic Case
Step 1: Download Dependencies
Download dependencies build files TensorFlow.js (tf.min.js), Three.js (three.min.js), Tween.js (tween.min.js), TrackballControls (TrackballControls.js).
Step 2: Download TensorSpace
Download TensorSpace build file tensorspace.min.js from Github, NPM, TensorSpace official website or CDN:
<!-- Replace "VERSION" with the version you want to use. -->
<script src="https://cdn.jsdelivr.net/npm/tensorspace@VERSION/dist/tensorspace.min.js"></script>
Step 3: Include Build Files
Include all build files in web page.
<script src="tf.min.js"></script>
<script src="three.min.js"></script>
<script src="Tween.min.js"></script>
<script src="TrackballControls.js"></script>
<script src="tensorspace.min.js"></script>
Install in the Progressive Framework
Step 1: Install TensorSpace
Install through NPM
npm install tensorspace
Install through YARN
yarn add tensorspace
Step 2: Use TensorSpace
import * as TSP from 'tensorspace';
Checkout this Angular example for more information.