Giter Site home page Giter Site logo

digitguesser's Introduction

DigitGuesser

Draw a digit and the AI will try to recognise it. Made by Kabir Paolo Singh Bertolani (amnesy) && Luca Bertocchi

Note: Trained with MNIST data (and/or data from other sources) - you should try to train the AI with your own data

Instruction to deploy this project:

     - First, you should run the train.py file, that should create the mnist_model directory containing the model
     - Then, just run main.py and browse to localhost:5000

Note: Every digit created in the canvas and submitted will be saved in static/

Steps To replicate the model (88% accuracy):

  • Download the dataset from Kaggle
  • Extract and put all the data in the dataset folder
  • Rename the extracted folder "archive" to "data" and delete the old zip archive
  • Run dataset_makers/normalize.py
  • Delete (If the script is not fully working) the folders "datasets/data/Img" and the file english.csv
  • I removed (for training purposes) all the folders of lowercase letters, so this model will only work with 36 characters. To change this, change the number of neurons in the final layer of the train.py file and adjust the label list in the main.py file.
  • You should have 36 folders in datasets/data
  • Run elaborate_white_images.py
  • Run augment_data.py
  • Run train.py

----> This project was just an exercise.

digitguesser's People

Contributors

amnesytoolkit 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.