How hugbrl09/digits-28 works
digits-28 is a browser-based handwritten-digit recognizer, supported by a model-training, evaluation, and TensorFlow.js export workflow. The main user path is drawing or choosing a sample, normalizing the canvas input, running inference in the browser, and viewing the predicted digit and class confidences. Training and evaluation are separate development-time capabilities. The graph uses the sampled app, training, and converter code plus README statements; detailed evaluation and export-verification implementations were not sampled.
Main entry points: app.js Browser inference · modelo.keras Keras model · model.json TF.js model manifest · converter_standalone.py Standalone converter
Components 17
Browser recognition
- Recognition page
index.html - Drawing and samples
app.js - Canvas normalization
app.js - Browser inference
app.js - Prediction display
app.js - TensorFlow.js runtime
Model development
- MNIST training
treinar_mnist.py - MNIST dataset
- Keras model
modelo.keras
Model export
- Official TF.js export
treinar_mnist.py - Standalone converter
converter_standalone.py - TF.js model manifest
modelo_web/model.json - Model weights
modelo_web/group1-shard1of1.bin
Evaluation results
- Test evaluation
treinar_mnist.py - Evaluation report
relatorio.json - Error examples
relatorio
Other components
- Page user
Connections 18
- Page user → Recognition page: opens
README.md - Recognition page → Drawing and samples: hosts
README.md - Drawing and samples → Canvas normalization: normalizes
app.js - Canvas normalization → Browser inference: feeds
app.js - Browser inference → TensorFlow.js runtime: predicts with
app.js - Browser inference → TF.js model manifest: loads
app.js - TF.js model manifest → Model weights: references
README.md - Browser inference → Prediction display: updates
app.js - MNIST dataset → MNIST training: supplies data
treinar_mnist.py - MNIST training → Keras model: trains
treinar_mnist.py - Keras model → Test evaluation: is evaluated
treinar_mnist.py - Test evaluation → Evaluation report: records results
- Test evaluation → Error examples: reports errors
- Keras model → Official TF.js export: exports from
treinar_mnist.py - Official TF.js export → TF.js model manifest: writes
README.md - Keras model → Standalone converter: converts from
converter_standalone.py - Standalone converter → TF.js model manifest: writes
converter_standalone.py - Standalone converter → Model weights: writes
converter_standalone.py