Skip to content

Instantly share code, notes, and snippets.

@danielbank
Last active October 26, 2019 08:26
Show Gist options
  • Select an option

  • Save danielbank/7c2256215cb6d08d80fdff4a4dfbfe16 to your computer and use it in GitHub Desktop.

Select an option

Save danielbank/7c2256215cb6d08d80fdff4a4dfbfe16 to your computer and use it in GitHub Desktop.
Offline ML with Rust

Cross Build the App

cd ~/workspace/offline-ml

cross build --release --target=armv7-unknown-linux-gnueabihf

cd target/armv7-unknown-linux-gnueabihf/release

Run the App

cd ~/workspace/offline-ml

cargo run

Demo the App

curl -i  -X POST -F "image=@/Users/DanielBank/Desktop/shark.jpg" http://127.0.0.1:7878

curl -i  -X POST -F "image=@/Users/DanielBank/Desktop/daniel.jpg" http://127.0.0.1:7878
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment