Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 664 Bytes

readme.md

File metadata and controls

51 lines (35 loc) · 664 Bytes

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