Skip to main content

run_rs2_net

Function run_rs2_net 

Source
fn run_rs2_net(
    magnitude: &[f64],
    grid: &Grid,
    params: &Rs2NetParams,
) -> Result<Vec<u8>, PipelineError>
Expand description

Source the RS2-Net weights and run it. Requires the onnx feature; weights come from the model registry through crate::models (supplied bytes first, then local/download on native).