Skip to content

MNIST classifier with a graphical user interface and a canvas for drawing the digits, doing classifying in real time

License

Notifications You must be signed in to change notification settings

krikru/gui-mnist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple demonstrator of an MNIST classifier, with a graphical user interface and a canvas that lets you draw digits and have them classified in real-time.

Prerequisites

The text within parenthesis specifies the versions this repository is known to be compatible with.

Conda environment

To create a Conda environment that fulfills the prerequisites:

conda env create --file environment.yml

To update an already existing environment:

conda env update --file environment.yml

To activate the environment:

conda activate gui-mnist

To deactivate the environment:

conda deactivate

Usage

Run the graphical user interface as follows:

$ python gui.py

Draw with the left mouse button and reset the canvas with the right mouse button.

The easiest way to tweak the behavior of the application is currently to change the hardcoded values for the parameters under the options section in gui.py, as the script currently doesn't take any arguments.

The first time the script is run with a specific model type selected, a new model will be trained from scratch and saved as an HDF5 file in the folder from which the script is run. This file will then be loaded and used the following times the application is run with the same model type selected instead of training a new model.

License

GNU General Public License v3.0

About

MNIST classifier with a graphical user interface and a canvas for drawing the digits, doing classifying in real time

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages