cuicaihao / MNIST_TF_GUI

Demonstrate training, testing, and retraining ML/DL models with TensorFlow and Keras with an extra GUI by Qt5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MNIST_TF_GUI README File

Author: Caihao Cui Location: Melbourne, VIC, AU.

Description: This repository demonstrates one python program including training, testing, and retraining ML/DL models with TensorFlow and Keras with an extra GUI by Qt5.

Dependencies: install Anaconda python 3, TensorFlow, Keras and all the package related. TF2.0 works but with few warninig.

Train the model

Use the Train_MNIST_Model.py to build the model, model will be saved at ./models/xxx.xxx.xxx.h5, the training histroy (acc, loss) will be saved as history.pickle.

Test the model

Use the Test_MNIST_Model.py to test the model and compare the training and testing accuracy.

Retrain the model

Use the Retrain_MNIST_Model.py to load the trained model and retrain it with different optimization methods.

Play with GUI

Run GUI.py or MNIST_Window.py to play with the interactive desktop application.

Sample images:

You can change the details by editing the class of MNIST_Window

Input Check 2

Sample Images: Test 0 Test 1 Test 2 Test 3 Test 4 Test 5 Test 6 Test 7 Test 8 Test 9

Reference

This repository is inspried by the CSDN Blog: https://blog.csdn.net/u011389706/article/details/81460820.

About

Demonstrate training, testing, and retraining ML/DL models with TensorFlow and Keras with an extra GUI by Qt5

License:MIT License


Languages

Language:Python 100.0%