Skip to content

nklayman/digit-recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Digit Recognition

Web application that recognizes hand-drawn digits

Uses a custom from-scratch neural net written in Rust and compiled to WebAssembly

Updating model and development

(all snippets start in root of repo)

  1. Build wasm for node
cd ./rust-neural-network
wasm-pack build --target node
  1. Unpack data
cd ./trainer
unzip ./mnist.zip
  1. Train model
cd ./trainer
yarn train
  1. Copy model to web app
cp ./trainer/model.json ./frontend/public
  1. Build wasm for browser
cd ./rust-neural-network
wasm-pack build
  1. Start website
cd ./frontend
yarn install
yarn serve