Web application that recognizes hand-drawn digits
Uses a custom from-scratch neural net written in Rust and compiled to WebAssembly
Screen.Recording.2024-01-20.mov
(all snippets start in root of repo)
- Build wasm for node
cd ./rust-neural-network
wasm-pack build --target node- Unpack data
cd ./trainer
unzip ./mnist.zip- Train model
cd ./trainer
yarn train- Copy model to web app
cp ./trainer/model.json ./frontend/public- Build wasm for browser
cd ./rust-neural-network
wasm-pack build- Start website
cd ./frontend
yarn install
yarn serve