Skip to main content

cnn_light_super_resolve

Function cnn_light_super_resolve 

Source
pub fn cnn_light_super_resolve(
    weight_path: &Path,
    rgb: RgbView<'_>,
    scale: u8,
    out: &mut [u8],
) -> Result<SrReport, SrSessionError>
Expand description

Super-resolve rgb by scale using a CnnLight (FSRCNN/ESPCN) ONNX weight.

out must be at least width*scale * height*scale * 3 bytes.