Skip to main content

qsmnet_tiled

Function qsmnet_tiled 

Source
pub fn qsmnet_tiled(
    local_field_ppm: &[f64],
    mask: &[u8],
    grid: &Grid,
    model_onnx: &[u8],
    norm: &QsmnetNorm,
    cfg: &TileConfig,
    progress: impl FnMut(usize, usize),
) -> Result<Vec<f64>, OnnxError>
Expand description

Memory-bounded QSMnet via overlap-tiling — the fully-convolutional U-Net run patch-by-patch (for 32-bit WASM, where whole-volume qsmnet overflows the heap on clinical data). The dataset normalization is applied per value inside the tile loop and the net’s pool depth requires a /16 patch. Approximates whole-volume up to tile-boundary error; see crate::inversion::tiled.