A convolutional neural network that recognises animals in photos,
written from scratch in pure Rust with zero dependencies.
🐦 bird · 🐱 cat · 🦌 deer · 🐶 dog · 🐸 frog · 🐴 horse — trained on the animal classes of CIFAR-10. The best included model scores 81% on the 6 000 test images (random guessing: 16.7%).
git clone https://github.com/HilthonTT/pawnet.git
cd pawnet
cargo run --release -- predict my-photo.jpg --tta # pre-trained model includedPhotos can be JPEG, PNG, PPM or BMP; see usage.
To train your own model:
./scripts/download_data.sh
cargo run --release -- train
cargo run --release -- evaluate --tta- Usage: commands, your own photos, using it as a library
- Training guide: every option, recipes, reference results
- Architecture: the crates, the network, how training works
- Model format · Dataset · Pre-trained models
- Contributing · Changelog
MIT. Inspired by m-jovanovic/digit-recognizer.