Works with PNG 28x28 images
If your system supports GPU-CUDA the GPU computations setup depending on your system is required (which might be challanging). Check https://www.tensorflow.org/install/pip#linux for instructions
- NodeJS with NPM
npm install
to install dependencies
npm run train
Will save the model in /model
folder
npm run predict
This script loads the stored model from the /model
folder.
It loads PNG images defined in src/predict.ts
script and compares it with labels defined there.
Actual images must be present in test_data
folder.
npm run test
This script loads the stored model from the /model
folder. It then computes the accuracy on a large MNIST dataset.