From dd3cf96f9cca6ff966a7110357f663ff69ba5e00 Mon Sep 17 00:00:00 2001 From: tcdk <458761603@qq.com> Date: Tue, 17 Aug 2021 01:29:01 +0800 Subject: [PATCH] Add cli classify_yml README.md --- cli/classify_yml/README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 cli/classify_yml/README.md diff --git a/cli/classify_yml/README.md b/cli/classify_yml/README.md new file mode 100644 index 0000000..8d86a97 --- /dev/null +++ b/cli/classify_yml/README.md @@ -0,0 +1,29 @@ +# WASI wasmedge-tensorflow app + +In this example, we demonstrate how to run a wasmedge_tensorflow_interface WASM application from the command line. + +## Prerequisites + +[Install Rust](https://www.rust-lang.org/tools/install) + +Install WasmEdge by downloading and extracting the `wasmedge-tensorflow` binary executable file from [project release package](https://github.com/second-state/WasmEdge-tensorflow/releases). + +## Build the WASM bytecode + +``` +$ cargo build --target wasm32-wasi --release +``` + +## Run the application from command line + +We will use the `wasmedge-tensorflow` command to run the program. + +``` +wasmedge-tensorflow --dir .:. target/wasm32-wasi/release/classify_yml.wasm config/bird.yml img/bird.png + +Haliaeetus leucocephalus,0.6432397 +Caracara cheriway,0.08298906 +Parabuteo unicinctus,0.040016767 +Phalacrocorax carbo,0.01358868 +``` +