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 cpu selfie.jpg" \
        "$CARGO_TARGET_DIR/release/detector detect -f cpu -b 1 selfie.jpg"
