Skip to main content

esrgan_super_resolve

Function esrgan_super_resolve 

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

Super-resolve rgb by scale using a Real-ESRGAN-compact ONNX weight.

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