chess-corners-ml
ONNX-based ML refiner inference for the chess-corners pipeline.
This crate provides a small wrapper around tract-onnx that loads the refiner
model and runs batched inference on normalized intensity patches. It is a
low-level utility crate; most users should use the high-level API in the
chess-corners crate instead.
Features:
embed-model(default) – embed the shipped ONNX model and metadata directly in the crate.
Basic usage:
use ;
Loading a custom model:
use ;
use PathBuf;
let model = load?;
When loading from a path, the crate looks for a fixtures/meta.json file next
to the ONNX model to determine the patch size (falls back to 21 if missing).
For the full detector pipeline, ML patch extraction, and configuration, see the
chess-corners crate.