Files
face-detector/justfile
uttarayan21 97f64e7e10
Some checks failed
build / checks-matrix (push) Successful in 19m23s
build / codecov (push) Failing after 19m26s
docs / docs (push) Failing after 28m47s
build / checks-build (push) Has been cancelled
feat: save safetensors to the database
2025-08-20 12:17:18 +05:30

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