Skip to content

In-browser Image Classification using TensorFlow.js with MobileNet

Notifications You must be signed in to change notification settings

namas191297/mobilenet_tfjs_week1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

MobileNet Image Classifier Using TensorFlow.js

This is a simple demonstration of how to use TensorFlow.js to deploy a pre-trained model to classify images in a web browser.

This image classifier uses the MobileNet model, which is "An architecture which is more suitable for mobile and embedded based vision applications where there is lack of compute power. This architecture was proposed by Google". This project makes use of tensorflow.js , an open-source library you can use to define, train, and run machine learning models entirely in the browser.

This model has not been re-trained, it uses the pre-trained weights to make predictions. All images are resized to 224x224 pixels (due to the input shape). The predictions are returned with the class names and respective probabilities.

MobileNet Model Architecture

MobileNet Architecture

Usage

index.html and index.js can be run locally on the localhost or either hosted on a web server. The model is loaded using the <script> tag, and JavaScript is used to make the predictions and output them.

Output

Output

About

In-browser Image Classification using TensorFlow.js with MobileNet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published