It is an attempt to classify digits drawn in an Android app from 0 to 9.
1. Retrained mobilenet TF model for MNIST dataset to classify digits.
2. Accuracy was ~60% because of the difference in the digits drawn and the dataset.
- Trained the dataset created through the first app in a CNN model. Dateset is available here.
- Saved weights in summary.h5 file, created the Graph.pb TF file using amir-abdi/keras_to_tensorflow. And then finally converted the Graph.pb file to a optimized_graph.lite file using tflite_convert(a TF utility).
- The optimized_graph.lite file can be directly used in the app, which can now classify drawn digits with a ~60-70% accuracy.
- The mobilenet model re-trained for the given dataset can classify drawn digits with accuracy upto ~90%.
- Keras Documentation
- Tensorflow For Poets
- Drawing View Library.
- amir-abdi/keras_to_tensorflow
- TFLite Convert