Skip to content

Commit

Permalink
docs: fix command
Browse files Browse the repository at this point in the history
Signed-off-by: ye jianbai <[email protected]>
  • Loading branch information
ye jianbai committed Jan 31, 2023
1 parent 2b1c06c commit 2445227
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tf-mobilenet-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The output WASM file will be at [`rust/tf-mobilenet/target/wasm32-wasi/release/w
To speed up the image processing, we can enable the AOT mode in WasmEdge with:

```bash
wasmedgec rust/tf-mobilenet/target/wasm32-wasi/release/wasmedge-wasinn-example-tf-mobilenet-image.wasm wasmedge-wasinn-example-tf-mobilenet-image.wasm
wasmedgec rust/tf-mobilenet/target/wasm32-wasi/release/wasmedge-wasinn-example-tf-mobilenet-image.wasm run.wasm
```

## Run
Expand All @@ -49,15 +49,15 @@ The `tf` model is located at `./frozen.pb`
If you want to generate the [raw](birdx224x224x3.rgb) tensor, you can run:

```shell
cd rust/image-converter/ && cargo run ../../PurpleGallinule.jpg ../../birdx224x224x3.rgb
cd rust/image-converter/ && cargo run ../../bird.jpg ../../birdx224x224x3.rgb
```

### Execute

Execute the WASM with the `wasmedge` with Tensorflow Lite supporting:

```bash
wasmedge --dir .:. wasmedge-wasinn-example-tf-mobilenet-image.wasm frozen.pb PurpleGallinule.jpg
wasmedge --dir .:. wasmedge-wasinn-example-tf-mobilenet-image.wasm saved_model.pb bird.jpg
```

You will get the output:
Expand Down
Binary file not shown.

0 comments on commit 2445227

Please sign in to comment.