Skip to content

CNN transfer learning with kNN to classify cam-images on the fly from your mobile phone

License

Notifications You must be signed in to change notification settings

Cbhihe/classify_image_mobile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

classify_image_mobile

Source: https://codelabs.developers.google.com/codelabs/tensorflowjs-teachablemachine-codelab/index.html#0

Introduction:

We build a simple "teachable machine", a custom image classifier that can be trainsed on the fly in the browser using TensorFlow.js, a powerful and flexible machine learning library for Javascript. We first load and run a popular pre-trained model called MobileNet for image classification in the browser. we then use "transfer learning" to bootstrap NN training with the pre-trained MobileNet model and customizes it.

If you need an introduction or refresher, consider watching:

To know more

Objective

  • load pretrained MobileNet model and make a prediction on new data
  • make predictions through the webcam
  • use intermediate activations of MobileNet to do transfer learning on a new set of classes you define on the fly with the webcam

Requirements:

if you want to modify the code, you will need:

  • a text editor, either running locally on your machine or terminal
  • some knowledge of HTML, CSS, JavaScript, and your browser's devtools
  • a high-level conceptual understanding of Neural Networks

Trials:

To run the webpage, simply open 'index.html' in a Web Browser. If you use the cloud console, simply refresh the preview page.

Downloading the model may take a few seconds.

About

CNN transfer learning with kNN to classify cam-images on the fly from your mobile phone

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published