Skip to main content

run_bfrnet

Function run_bfrnet 

Source
fn run_bfrnet(
    field_ppm: &[f64],
    mask: &[u8],
    grid: &Grid,
) -> Result<Vec<f64>, PipelineError>
Expand description

Source the BFRnet weights and run inference. Requires the onnx feature; weights come from the model registry (local $QSM_MODEL_DIR/cache, or the download feature).