Skip to main content

run_bfrnet

Function run_bfrnet 

Source
fn run_bfrnet(
    field_ppm: &[f64],
    mask: &[u8],
    grid: &Grid,
    tile: Option<(usize, usize)>,
    progress: &mut dyn FnMut(usize, usize),
) -> Result<Vec<f64>, PipelineError>
Expand description

Source the BFRnet weights and run inference, whole-volume or tiled (tile). Requires the onnx feature; weights resolve through crate::models (bytes supplied with crate::models::provide_weights, then $QSM_MODEL_DIR/cache/download on native).