Function tch::vision::imagenet::load_image_and_resize224_from_memory
source · pub fn load_image_and_resize224_from_memory(
img_data: &[u8]
) -> Result<Tensor, TchError>
Expand description
Loads an image from memory and resize it to 224x224. This applies the ImageNet normalization.