14 lines
503 B
Makefile
14 lines
503 B
Makefile
run_onnx ep = "cpu" arg = "selfie.jpg":
|
|
cargo run -r detect -p {{ep}} -t 0.3 -o detected.jpg -- {{arg}}
|
|
run_mnn forward = "cpu" arg = "selfie.jpg":
|
|
cargo run -r detect -f {{forward}} -o detected.jpg -- {{arg}}
|
|
|
|
open:
|
|
open detected.jpg
|
|
|
|
bench:
|
|
cargo build --release
|
|
BINARY="" hyperfine --warmup 3 --export-markdown benchmark.md \
|
|
"$CARGO_TARGET_DIR/release/detector detect -f coreml selfie.jpg" \
|
|
"$CARGO_TARGET_DIR/release/detector detect -f coreml -b 16 selfie.jpg"
|