Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vleue/bevmnist
https://github.com/vleue/bevmnist
bevy mnist
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vleue/bevmnist
- Owner: vleue
- License: mit
- Created: 2020-11-20T22:25:15.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-27T14:00:31.000Z (almost 2 years ago)
- Last Synced: 2023-03-05T07:30:29.327Z (almost 2 years ago)
- Topics: bevy, mnist
- Language: Rust
- Homepage: https://vleue.itch.io/bevmnist-poc
- Size: 3.49 MB
- Stars: 54
- Watchers: 2
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bevmnist
Running MNIST inference in [bevy](https://github.com/bevyengine/bevy) with [tract](https://github.com/sonos/tract). And in wasm!
![demo](https://raw.githubusercontent.com/vleue/bevmnist/main/demo.gif)
## Demo
Demo is available: https://vleue.itch.io/bevmnist-poc
## Build and test wasm
### Optional Setup
To install the required target, WASM utils, and HTTP server:
```
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli https
```### Build
```
cp -r assets wasm/
cargo build --release --target wasm32-unknown-unknown --no-default-features
wasm-bindgen --no-typescript --out-name bevmnist --out-dir wasm --target web ${CARGO_TARGET_DIR:-target}/wasm32-unknown-unknown/release/bevmnist.wasm
```
and then serve with your favorite http server the `wasm` folder (eg. `cd wasm; http`)