Skip to content

yjaquier/digit_recognition_tensorflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

You first need to get a MNIST Keyras already trained model.

One is provided in file called cnn.h5. Many others are available using Google...

Convert this file to be readable with Tensorflow using something like (https://github.com/tensorflow/tfjs-converter): tensorflowjs_converter --input_format keras keyras_model.h5 target_directory

The result of this command is in assets directory.

Refer to https://js.tensorflow.org for detailled explanantions.

Then you can load it in Tensorflow using: this.model = await tf.loadModel('./assets/model.json');

About

Digit recognition with TensorflowJS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages