PosNet Mobile
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rajeshwar Reddy T 613e163bc9
Update bodypix README.md (#469)
1 day ago
.tslint Add linting rules for tfjs-models. (#333) 8 months ago
.vscode Generalize KNN Image Classifier to KNN Classifier, taking an arbitrary embedding as input. (#36) 2 years ago
blazeface [blazeface] Update readme. (#455) 1 month ago
body-pix Update bodypix README.md (#469) 1 day ago
coco-ssd Fix coco (#465) 5 days ago
deeplab update yarn.lock (#436) 2 months ago
facemesh [facemesh / handpose] Update README to require union package. (#454) 1 month ago
handpose some mistake caused by delete (#456) 5 days ago
knn-classifier update yarn.lock (#436) 2 months ago
mobilenet update yarn.lock (#436) 2 months ago
posenet [posenet] Update docs. (#459) 2 weeks ago
qna update yarn.lock (#436) 2 months ago
scripts [handpose] Add model. (#414) 4 months ago
speech-commands [SpeechCommands] Add notebook to show how to convert model to tflite (#464) 4 days ago
toxicity update yarn.lock (#436) 2 months ago
universal-sentence-encoder update yarn.lock (#436) 2 months ago
.gitignore [facemesh] Add model. (#413) 4 months ago
CONTRIBUTING.md Add license and contributing 2 years ago
LICENSE Add license and contributing 2 years ago
README.md Add DeepLab (#229) 11 months ago
cloudbuild.yml allow handpose to execute on react native and tensorflow backends (#446) 1 month ago
package.json align coco-ssd with 2.0.1 releases (#462) 1 week ago
presubmit.ts Add publish-npm, make-version, tag-version scripts to models. (#369) 7 months ago
run_python_tests.sh Add publish-npm, make-version, tag-version scripts to models. (#369) 7 months ago
test_util.ts Add publish-npm, make-version, tag-version scripts to models. (#369) 7 months ago
tsconfig.json align coco-ssd with 2.0.1 releases (#462) 1 week ago
tsconfig.test.json align coco-ssd with 2.0.1 releases (#462) 1 week ago
tslint.json Add linting rules for tfjs-models. (#333) 8 months ago
yarn.lock align coco-ssd with 2.0.1 releases (#462) 1 week ago

README.md

Pre-trained TensorFlow.js models

This repository hosts a set of pre-trained models that have been ported to TensorFlow.js.

The models are hosted on NPM and unpkg so they can be used in any project out of the box. They can be used directly or used in a transfer learning setting with TensorFlow.js.

To find out about APIs for models, look at the README in each of the respective directories. In general, we try to hide tensors so the API can be used by non-machine learning experts.

For those interested in contributing a model, please file a GitHub issue on tfjs to gauge interest. We are trying to add models that complement the existing set of models and can be used as building blocks in other apps.

Models

Type Model Demo Details Install
Images
MobileNet
Classify images with labels from the ImageNet database. npm i @tensorflow-models/mobilenet
source
PoseNet
live A machine learning model which allows for real-time human pose estimation in the browser. See a detailed description here. npm i @tensorflow-models/posenet
source
Coco SSD
Object detection model that aims to localize and identify multiple objects in a single image. Based on the TensorFlow object detection API. npm i @tensorflow-models/coco-ssd
source
BodyPix
live Real-time person and body part segmentation in the browser using TensorFlow.js. npm i @tensorflow-models/body-pix
source
DeepLab v3
Semantic segmentation npm i @tensorflow-models/deeplab
source
Audio
Speech Commands
live Classify 1 second audio snippets from the speech commands dataset. npm i @tensorflow-models/speech-commands
source
Text
Universal Sentence Encoder
Encode text into a 512-dimensional embedding to be used as inputs to natural language processing tasks such as sentiment classification and textual similarity. npm i @tensorflow-models/universal-sentence-encoder
source
Text Toxicity
live Score the perceived impact a comment might have on a conversation, from "Very toxic" to "Very healthy". npm i @tensorflow-models/toxicity
source
General Utilities
KNN Classifier
This package provides a utility for creating a classifier using the K-Nearest Neighbors algorithm. Can be used for transfer learning. npm i @tensorflow-models/knn-classifier
source

Development

You can run the unit tests for any of the models by running the following inside a directory:

yarn test

New models should have a test NPM script (see this package.json and run_tests.ts helper for reference).

To run all of the tests, you can run the following command from the root of this repo:

yarn presubmit