All Projects → thekevinscott → Ml Classifier Ui

thekevinscott / Ml Classifier Ui

Licence: mit
A UI tool for quickly training image classifiers in the browser

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Ml Classifier Ui

Ml Classifier
A tool for quickly training image classifiers in the browser
Stars: ✭ 97 (-56.7%)
Mutual labels:  image-classification, machinelearning, tensorflow-tutorials, tensorflow-examples, tensorflow-experiments
Dog-or-Cat-TensorflowSharp-Example
An example for TensorflowSharp - classify an image as a dog or cat.
Stars: ✭ 15 (-93.3%)
Mutual labels:  tensorflow-tutorials, tensorflow-experiments, tensorflow-examples
Math object detection
An image recognition/object detection model that detects handwritten digits and simple math operators. The output of the predicted objects (numbers & math operators) is then evaluated and solved.
Stars: ✭ 52 (-76.79%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples, tensorflow-experiments
Tensorflow Sentiment Analysis On Amazon Reviews Data
Implementing different RNN models (LSTM,GRU) & Convolution models (Conv1D, Conv2D) on a subset of Amazon Reviews data with TensorFlow on Python 3. A sentiment analysis project.
Stars: ✭ 34 (-84.82%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples, tensorflow-experiments
Letslearnai.github.io
Lets Learn AI
Stars: ✭ 33 (-85.27%)
Mutual labels:  machinelearning, tensorflow-tutorials, tensorflow-examples
TensorFlow-Multiclass-Image-Classification-using-CNN-s
Balanced Multiclass Image Classification with TensorFlow on Python.
Stars: ✭ 57 (-74.55%)
Mutual labels:  image-classification, tensorflow-tutorials, tensorflow-experiments
Tensorflow-Wide-Deep-Local-Prediction
This project demonstrates how to run and save predictions locally using exported tensorflow estimator model
Stars: ✭ 28 (-87.5%)
Mutual labels:  tensorflow-tutorials, tensorflow-experiments, tensorflow-examples
Hardhat Detector
A convolutional neural network implementation of a script that detects whether an individual is wearing a hardhat or not.
Stars: ✭ 41 (-81.7%)
Mutual labels:  image-classification, machinelearning
The Third Eye
An AI based application to identify currency and gives audio feedback.
Stars: ✭ 63 (-71.87%)
Mutual labels:  image-classification, tensorflow-experiments
Free Tensorflow
Tensorflow 免费中文视频教程,开源代码,免费书籍.
Stars: ✭ 83 (-62.95%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Androidtensorflowmachinelearningexample
Android TensorFlow MachineLearning Example (Building TensorFlow for Android)
Stars: ✭ 1,369 (+511.16%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Tensorflow Find Object
📸 A simple application to demonstrate TensorflowJS using mobile net model to predict objects via camera API.
Stars: ✭ 12 (-94.64%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Nlp
This is where I put all my work in Natural Language Processing
Stars: ✭ 90 (-59.82%)
Mutual labels:  tensorflow-tutorials, tensorflow-experiments
Cs224d
Code for Stanford CS224D: deep learning for natural language understanding
Stars: ✭ 222 (-0.89%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Tensorflow Brasil
Códigos e materiais sobre TensorFlow em Português
Stars: ✭ 74 (-66.96%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Chatgirl
ChatGirl is an AI ChatBot based on TensorFlow Seq2Seq Model. ChatGirl 一个基于 TensorFlow Seq2Seq 模型的聊天机器人。(包含预处理过的 twitter 英文数据集,训练,运行,工具代码,来波 Star 。)QQ群:167122861
Stars: ✭ 105 (-53.12%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Self Driving Car
Automated Driving in NFS using CNN.
Stars: ✭ 105 (-53.12%)
Mutual labels:  tensorflow-examples, tensorflow-experiments
Learn Machine Learning In Two Months
Những kiến thức cần thiết để học tốt Machine Learning trong vòng 2 tháng. Essential Knowledge for learning Machine Learning in two months.
Stars: ✭ 1,726 (+670.54%)
Mutual labels:  tensorflow-tutorials, tensorflow-experiments
Yolov3 Tf2
YoloV3 Implemented in Tensorflow 2.0
Stars: ✭ 2,327 (+938.84%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
My Tensorflow Tutorials
This repo contains all of my TensorFlow tutorials
Stars: ✭ 795 (+254.91%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples

ML Classifier UI

ML Classifier is a React front end for a machine learning engine for quickly training image classification models in your browser. Models can be saved with a single command, and the resulting models reused to make image classification predictions.

This package is the UI front end for ml-classifier.

Walkthrough

A walkthrough of the code can be found in the article Image Classification in the Browser with Javascript.

Demo

An interactive demo can be found here.

Demo Screenshot of demo

Getting Started

Installation

ml-classifier-ui can be installed via yarn or npm:

yarn add ml-classifier-ui

or

npm install ml-classifier-ui

Quick Start (Code Sandbox)

You can fork a live running version at codesandbox.io.

Quick Start (Running locally)

Start by instantiating a new MLClassifierUI.

import React from 'react';
import ReactDOM from 'react-dom';
import MLClassifierUI from 'ml-classifier-ui';

ReactDOM.render(<MLClassifierUI />, document.getElementById('root'));

API Documentation

MLClassifierUI accepts a number of parameters:

  • getMLClassifier (Function) Optional - A callback that returns an instance of the underlying ml-classifier object. Call this if you want to programmatically call methods like addData, train, and predict. For more information on ml-classifier's API methods refer to it's documentation.
  • methodParams (Object) Optional - A set of parameters that will be passed in calls to ml-classifier's methods. See below for more information.
  • uploadFormat (string) Optional - A string denoting what type of upload format to accept. Formats can be flat or nested. See below note for more information on that. If omitted, all formats are accepted.
  • imageFormats (string[]) Optional - An array of file extensions to accept. By default, all valid images are accepted. Images are transformed via the native Image tag in the browser, so if the browser can display the image, it'll be processed.
  • showDownload (boolean) Optional - A flag denoting whether to show a download button or not. Defaults to true.

MLClassifierUI also accepts a number of callbacks that are called on the beginnings and ends of ml-classifier functions. You can view a list of those here.

getMLClassifier

getMLClassifier returns an instance of ml-classifier for programmatic access to the underlying methods.

Example

<MLClassifierUI
  getMLClassifier={(mlClassifier) => {
    mlClassifier.addData(...);
  }}
/>

methodParams

methodParams can be used to pass method-specific parameters to ml-classifier. The key will be used to determine which method to pass parameters to.

Accepted keys are train, evaluate, and save. Other keys will be ignored.

Example

<MLClassifierUI
  methodParams={{
    train: {
      epochs: 20,
    },
    evaluate: {
      batchSize: 32,
    },
    save: {
    },
  }}
/>

uploadFormat

uploadFormat corresponds to how uploaded images should be organized. There are two options:

nested

Expects images to be organized in folders matching the label. Only the immediate parent folder's name will be used as the label. For example:

- containing-folder/
  - dogs/
    - IMG-1.jpg
    - IMG-2.jpg
    - IMG-3.jpg
  - cats/
    - IMG-1.jpg
    - IMG-2.jpg
    - IMG-3.jpg

Will product an array of three dogs labels and three cats labels.

Nested folders will be searched recursively, but only immediate parent folders' names will be used. If an invalidly nested structure is found an error will be thrown.

flat (currently in development)

Expects files' names to be the label. Nested folders will be searched recursively (if the browser supports it) to build a flat array of files.

- folder/
  - dog-1.jpg
  - dog-2.jpg
  - dog-3.jpg
  - cat-1.jpg
  - cat-2.jpg
  - cat-3.jpg

Example

<MLClassifierUI
  uploadFormat={"nested"}
/>

imageFormats (currently in development)

imageFormats denotes the list of acceptable image formats for upload. Any images not matching the list of acceptable formats will be ignored.

Example

<MLClassifierUI
  imageFormats={[
    'png',
    'gif',
  ]}
/>

Contributing

Contributions are welcome!

You can run the local example with:

yarn watch

ml-classifier-ui is written in Typescript and React.

Tests

Tests are a work in progress. Currently, the test suite only consists of unit tests. Pull requests for additional tests are welcome!

Run tests with:

yarn test

Author

License

This project is licensed under the MIT License - see the LICENSE file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].