Skip to content
HilthonTTPublic

About

A CNN that recognises animals in photos, written from scratch in pure Rust with zero dependencies. Trained on CIFAR-10.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Pawnet logo

Pawnet

A convolutional neural network that recognises animals in photos,
written from scratch in pure Rust with zero dependencies.

CI MIT license

🐦 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%).

Quick start

git clone https://github.com/HilthonTT/pawnet.git
cd pawnet
cargo run --release -- predict my-photo.jpg --tta    # pre-trained model included

Photos 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

Documentation

License

MIT. Inspired by m-jovanovic/digit-recognizer.

About

A CNN that recognises animals in photos, written from scratch in pure Rust with zero dependencies. Trained on CIFAR-10.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages