← 开源
tensorspace-team

tensorspace

Neural network 3D visualization framework, build interactive and intuitive model in browsers, support pre-trained deep learning models from TensorFlow, Keras, TensorFlow.js

Model DevelopmentInterpretabilityJavaScript
在 GitHub 打开
增长势头
+-124 小时新增 Star-0.0%
5.20k
Star
454
Fork
+-1
本周
7
贡献者
创建于 2018-07-22 · 更新于 2026-10-15 · 今日第 18505 名
主要开发者
syt123450zchholmesCharlesLiuyx

tensorspace-team/tensorspace 排名第 18,505,有 5,198 个星标。

同类别比较

tensorspace-team/tensorspace 排名第 18,505,此处有 8 个同类条目;Plachtaa/VITS-fast-fine-tuning 排名第 18,511。

同类别比较
名称排名指标
tyiannak/pyAudioAnalysis18,478
语言:
Python
星标数:
6,268
分叉数:
1,211
简介:
Python Audio Analysis Library: Feature Extraction, Classification, Segmentation and Applications
Lightning-AI/lit-llama18,485
语言:
Python
星标数:
6,080
分叉数:
517
简介:
Implementation of the LLaMA language model based on nanoGPT. Supports flash attention, Int8 and GPTQ 4bit quantization, LoRA and LLaMA-Adapter fine-tuning, pre-training. Apache 2.0-licensed.
yenchenlin/nerf-pytorch18,487
语言:
Python
星标数:
6,054
分叉数:
1,123
简介:
A PyTorch implementation of NeRF (Neural Radiance Fields) that reproduces the results.
biolab/orange318,494
语言:
Python
星标数:
5,725
分叉数:
1,114
简介:
🍊 :bar_chart: :bulb: Orange: Interactive data analysis
Plachtaa/VITS-fast-fine-tuning18,511
语言:
Python
星标数:
5,001
分叉数:
725
简介:
This repo is a pipeline of VITS finetuning for fast speaker adaptation TTS, and many-to-many voice conversion
KaiyangZhou/deep-person-reid18,515
语言:
Python
星标数:
4,926
分叉数:
1,219
简介:
Torchreid: Deep learning person re-identification in PyTorch.
TheoKanning/openai-java18,519
语言:
Java
星标数:
4,717
分叉数:
1,171
简介:
OpenAI Api Client in Java
chenyuntc/simple-faster-rcnn-pytorch18,554
语言:
Jupyter Notebook
星标数:
4,028
分叉数:
1,114
简介:
A simplified implemention of Faster R-CNN that replicate performance from origin paper
关键参数与规格
关键参数与规格
参数值
语言JavaScript
类别Model Development
子类别Interpretability
关键词3D
星标数5,198
分叉数454
贡献者7
创建日期2018-07-22
更新日期2026-10-15
1 天星标数-1
7 天星标数-1
排名18,505
上次排名18,286
排名变化-219
7 天星标排名16,705
上次 7 天星标排名11,783
7 天星标排名变化-4,922
总星标排名2,707
上次总星标排名2,705
总星标排名变化-2
README 摘录

js Present Tensor in Space English | 中文 TensorSpace is a neural network 3D visualization framework built using TensorFlow. TensorSpace provides Keras-like APIs to build deep learning layers, load pre-trained models, and generate a 3D visualization in the browser. From TensorSpace, it is intuitive to learn what the model structure is, how the model is trained and how the model predicts the results based on the intermediate information. After preprocessing the model, TensorSpace supports to visualize pre-trained

model from TensorFlow, Keras and TensorFlow. 1 - Interactive LeNet created by TensorSpace Table of Content Motivation Getting Started Awesome TensorSpace Example Documentation Changelog Contributors Contact License Next Episode Motivation TensorSpace is a neural network 3D visualization framework designed for not only showing the basic model structure, but also presenting the processes of internal feature abstractions, intermediate data manipulations and final inference generations. By applying TensorSpace API, it is more intuitive to visualize and understand any pre-trained models built by

TensorFlow, Keras, TensorFlow. TensorSpace introduces a way for front end developers to be involved in the deep learning ecosystem. As an open source library, TensorSpace team welcomes any further development on visualization applications. Install TensorSpace Install in the Basic Case Step 1: Download Dependencies Download dependencies build files TensorFlow. Step 2: Download TensorSpace Download TensorSpace build file from Github, NPM, TensorSpace official website or CDN: Step 3: Include Build Files Include all build files in web page. Install in the

Progressive Framework Step 1: Install TensorSpace Option 1: NPM Option 2: Yarn Step 2: Use TensorSpace Checkout this Angular example for more information. Preprocess the Pre-trained Model Before applying TensorSpace to visualize the pre-trained model, there is an important pipeline - TensorSpace model preprocessing ( Checkout this article for more information about TensorSpace preprocessing ). We can use TensorSpace Converter to quickly complete the TensorSpace Preprocessing. keras model in hand, we can use the following TensorSpace-Converter conversion script to convert

a tf. keras model to the TensorSpace compatible format: **Note:** Make sure to install pip package, and setup a TensorSpace-Converter runtime environment before using TensorSpace-Converter to preprocess the pre-trained model. Based on different training libraries, we provide different preprocessing tutorials: TensorFlow Tutorial, Keras Tutorial, TensorFlow. Checkout TensorSpace-Converter Repo for more information about TensorSpace-Converter. Using TensorSpace to Visualize the Model If TensorSpace is installed successfully and the pre-trained deep learning model is preprocessed, let's create

an interactive 3D TensorSpace model. For convenience, we will use the the resources from this repository's HelloWorld directory, which includes preprocessed TensorSpace compatible LeNet model and sample input data ("5") as an example to illustrate this step. All source code can be found in helloworld. First, we need to new a TensorSpace model instance: Next, based on the LeNet structure: Input + Padding2D + 2 X (Conv2D & Maxpooling) + 3 X (Dense), build the Topology of the TensorSpace model: Last, we should load

our preprocessed TensorSpace compatible model and use method to create the TensorSpace model: We can get the following Fig. 3

常见问题

记录了多少星标和分叉?

tensorspace-team/tensorspace 有 5,198 个星标和 454 个分叉。

仓库排名是多少?

tensorspace-team/tensorspace 排名第 18,505。

记录的语言和类别是什么?

tensorspace-team/tensorspace 有 5,198 个星标,语言为 JavaScript,类别为 Model Development。

哪个仓库排名最接近?

tensorspace-team/tensorspace 与 Plachtaa/VITS-fast-fine-tuning 比较,后者排名第 18,511,有 5,001 个星标。

README

TensorSpace.js

Present Tensor in Space

English | 中文

TensorSpace is a neural network 3D visualization framework built using TensorFlow.js, Three.js and Tween.js. TensorSpace provides Keras-like APIs to build deep learning layers, load pre-trained models, and generate a 3D visualization in the browser. From TensorSpace, it is intuitive to learn what the model structure is, how the model is trained and how the model predicts the results based on the intermediate information. After preprocessing the model, TensorSpace supports to visualize pre-trained model from TensorFlow, Keras and TensorFlow.js.

Fig. 1 - Interactive LeNet created by TensorSpace

Table of Content

Motivation

TensorSpace is a neural network 3D visualization framework designed for not only showing the basic model structure, but also presenting the processes of internal feature abstractions, intermediate data manipulations and final inference generations.

By applying TensorSpace API, it is more intuitive to visualize and understand any pre-trained models built by TensorFlow, Keras, TensorFlow.js, etc. TensorSpace introduces a way for front end developers to be involved in the deep learning ecosystem. As an open source library, TensorSpace team welcomes any further development on visualization applications.

  • Interactive -- Use Layer API to build interactive model in browsers.
  • Intuitive -- Visualize the information from intermediate inferences.
  • Integrative -- Support pre-trained models from TensorFlow, Keras, TensorFlow.js.

Getting Started

Fig. 2 - TensorSpace Workflow

1. 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:



  • Step 3: Include Build Files

Include all build files in web page.






Install in the Progressive Framework

  • Step 1: Install TensorSpace

    • Option 1: NPM
    npm install tensorspace
    
    • Option 2: Yarn
    yarn add tensorspace
    
  • Step 2: Use TensorSpace

import * as TSP from 'tensorspace';

Checkout this Angular example for more information.

2. Preprocess the Pre-trained Model

Before applying TensorSpace to visualize the pre-trained model, there is an important pipeline - TensorSpace model preprocessing ( Checkout this article for more information about TensorSpace preprocessing ). We can use TensorSpace Converter to quickly complete the TensorSpace Preprocessing.

For example, if we have a tf.keras model in hand, we can use the following TensorSpace-Converter conversion script to convert a tf.keras model to the TensorSpace compatible format:

$ tensorspacejs_converter \
    --input_model_from="tensorflow" \
    --input_model_format="tf_keras" \
    --output_layer_names="padding_1,conv_1,maxpool_1,conv_2,maxpool_2,dense_1,dense_2,softmax" \
    ./PATH/TO/MODEL/tf_keras_model.h5 \
    ./PATH/TO/SAVE/DIR

Note:

  • Make sure to install tensorspacejs pip package, and setup a TensorSpace-Converter runtime environment before using TensorSpace-Converter to preprocess the pre-trained model.
  • Based on different training libraries, we provide different preprocessing tutorials: TensorFlow Tutorial, Keras Tutorial, TensorFlow.js Tutorial.
  • Checkout TensorSpace-Converter Repo for more information about TensorSpace-Converter.

Fig. 3 - TensorSpace-Converter Usage

3. Using TensorSpace to Visualize the Model

If TensorSpace is installed successfully and the pre-trained deep learning model is preprocessed, let's create an interactive 3D TensorSpace model.

For convenience, we will use the the resources from this repository's HelloWorld directory, which includes preprocessed TensorSpace compatible LeNet model and sample input data ("5") as an example to illustrate this step. All source code can be found in helloworld.html.

First, we need to new a TensorSpace model instance:

let container = document.getElementById( "container" );
let model = new TSP.models.Sequential( container );

Next, based on the LeNet structure: Input + Padding2D + 2 X (Conv2D & Maxpooling) + 3 X (Dense), build the Topology of the TensorSpace model:

model.add( new TSP.layers.GreyscaleInput() );
model.add( new TSP.layers.Padding2d() );
model.add( new TSP.layers.Conv2d() );
model.add( new TSP.layers.Pooling2d() );
model.add( new TSP.layers.Conv2d() );
model.add( new TSP.layers.Pooling2d() );
model.add( new TSP.layers.Dense() );
model.add( new TSP.layers.Dense() );
model.add( new TSP.layers.Output1d({
    outputs: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
}) );

Last, we should load our preprocessed TensorSpace compatible model and use init() method to create the TensorSpace model:

model.load({
    type: "tensorflow",
    url: './PATH/TO/MODEL/model.json'
});
model.init(function(){
    console.log("Hello World from TensorSpace!");
});

We can get the following Fig. 3 model in the browser if everything looks good.

Fig. 4 - LeNet model without any input data

We provide a extracted file which is a handwritten "5" as the input of our model: (online demo)

model.init(function() {
    model.predict( image_5 );
});

We put the predict( image_5 ) method in the callback function of init() to ensure the prediction is after the initialization complete.

Click the CodePen logo to try it in CodePen:   

Fig. 5 - LeNet model with input data "5"

Example

  • LeNet [ TensorFlow.js model ]

➡ Live Demo

Fig. 6 - Interactive LeNet created by TensorSpace

  • AlexNet [ TensorFlow model ]

➡ Live Demo

Fig. 7 - Interactive AlexNet created by TensorSpace

  • Yolov2-tiny [ TensorFlow model ]

➡ Live Demo

Fig. 8 - Interactive Yolov2-tiny created by TensorSpace

  • ResNet-50 [ Keras model ]

➡ Live Demo

Fig. 9 - Interactive ResNet-50 created by TensorSpace

  • Vgg16 [ Keras model ]

➡ Live Demo

Fig. 10 - Interactive Vgg16 created by TensorSpace

  • ACGAN [ Keras model ]

➡ Live Demo

Fig. 11 - Interactive ACGAN created by TensorSpace

  • MobileNetv1 [ Keras model ]

➡ Live Demo

Fig. 12 - Interactive MobileNetv1 created by TensorSpace

  • Inceptionv3 [ Keras model ]

➡ Live Demo

Fig. 13 - Interactive Inceptionv3 created by TensorSpace

  • LeNet Training Visualization [ TensorFlow.js dynamic model ]

Visualize the LeNet Training Process with TensorSpace.js and TensorFlow.js.

➡ Live Demo

Fig. 14 - LeNet Training 3D Visualization

View models locally

As some models above are extremely large, view them locally may be a good choice.

  • Step 1: clone TensorSpace Repo
git clone https://github.com/tensorspace-team/tensorspace.git
  • Step 2:

Open "html" file in examples folder in local web server.

Documentation

Contributors

Thanks goes to these wonderful people (emoji key):

|
syt123450

💻 🎨 📖 💡 |
Chenhua Zhu

💻 🎨 ✅ 💡 |
YaoXing Liu

💻 🎨 ✅ 💡 |
Qi(Nora)

💻 🎨 |
Dylan Schiemann

📝 |
BoTime

💻 📖 💡 |
Kamidi Preetham

📖 | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | |
Wade Penistone

📖 |

Contact

If you have any issue or doubt, feel free to contact us by:

License

Apache License 2.0

Next Episode

TensorSpace-VR

Present Neural Network in VR

Fig. 15 - TensorSpace VR Demo

排名相邻
同类项目