Skip to content

wujunzhuo/yomo-nn-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yomo-nn-example

1. Install YoMo Cli

https://yomo.run/docs#install-cli

2. run YoMo Zipper

yomo serve -c config.yaml

2. mobilenet_onnx: the serverless function to make AI inference

# download the ONNX model
curl -O https://media.githubusercontent.com/media/onnx/models/main/vision/classification/mobilenet/model/mobilenetv2-7.onnx

# compile the serverless function to WebAssembly file
rustup target add wasm32-wasi
cargo build --release --target wasm32-wasi --manifest-path=mobilenet_onnx/Cargo.toml

# run the serverless function
yomo run mobilenet_onnx/target/wasm32-wasi/release/sfn.wasm

3. send image and receive the infernce result

# build
go build -o cli ./cmd

# choose a picture for prediction
./cli sample.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published