Git Product home page Git Product logo

weslenlakins / tensorflow-js-teachable-machine Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

Make your own "Teachable Machine" using transfer learning with MobileNet v3 in TensorFlow.js & a saved graph model from TFHub.

Home Page: https://teachable-machine-wtl.netlify.app/

License: Apache License 2.0

HTML 14.86% JavaScript 75.53% CSS 9.61%
machine-learning tensorflowjs tfhub transfer-learning mobile-net-v3

tensorflow-js-teachable-machine's Introduction

Teachable Machine with TensorFlow.js

Teachable Machine with TensorFlow.js

Project Overview

This project enables users to train a machine learning model in their browser using Transfer Learning with TensorFlow.js and MobileNet v3. Users can teach the model to recognize objects from the webcam feed by collecting samples in real-time. This approach ensures privacy and immediacy, as no data is sent to a server.

Key Features

  • Real-time data collection and model training in the browser.
  • Utilizes TensorFlow.js and MobileNet v3 for efficient, client-side machine learning.
  • Supports multiple classes of objects for recognition.
  • No server-side processing required, ensuring user privacy.

Installation Instructions

Prerequisites

  • A modern web browser with support for JavaScript and TensorFlow.js.
  • Internet connection for loading TensorFlow.js library.

Setup

  1. Clone this repository or download the provided files (index.html, script.js, style.css).
  2. Ensure the files are in the same directory to maintain correct path references.

Usage Guide

Starting the Application

  • Open index.html in a web browser.
  • Allow webcam access when prompted.

Training the Model

  1. Enable the webcam by clicking the "Enable Webcam" button.
  2. Collect data for Class 1 by pointing the webcam at an object and clicking the "Gather Class 1 Data" button. Aim for at least 30 samples.
  3. Repeat the process for Class 2 with a different object.
  4. Train the model by clicking the "Train & Predict!" button.
  5. Once trained, the model will make live predictions as the webcam feeds new images.

Configuration

No additional configuration is required for basic usage. Advanced users can modify script.js to tweak model parameters or add more classes.

Contributing

Contributions to improve the project are welcome. You can contribute by:

  • Submitting issues for bugs or suggestions.
  • Proposing enhancements through pull requests.

Please follow standard coding practices and provide clear descriptions of your contributions.

License Information

This project is released under the Apache License 2.0. You are free to use, modify, and distribute the software under the terms of this license. Please see the LICENSE file for detailed information.

Contact Information

For further information or support, please open an issue on the project's GitHub page.

tensorflow-js-teachable-machine's People

Contributors

weslenlakins avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.