Skip to main content

sface_infer_rgb8

Function sface_infer_rgb8 

Source
pub fn sface_infer_rgb8(
    roots: &[&Path],
    rgb: &[u8],
    width: u32,
    height: u32,
    out_embed: &mut [f32],
) -> Result<usize, OnnxSessionError>
Expand description

SFace: resize face crop to 112x112, run embed, write 128 floats.