Skip to main content

load_image_from_bytes

Function load_image_from_bytes 

Source
pub fn load_image_from_bytes(
    bytes: &[u8],
    config: &ImagePreprocessConfig,
    device: Device,
) -> Result<Tensor, Error>
Expand description

Load an image from raw bytes (PNG, JPEG, or other formats supported by image crate)