feat: Added stuff
This commit is contained in:
15
justfile
15
justfile
@@ -1,2 +1,13 @@
|
||||
run:
|
||||
cargo run -r detect -- ./1000066593.jpg
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user