pub fn load_image( path: &Path, config: &ImagePreprocessConfig, device: Device, ) -> Result<Tensor, Error>
Load an image from disk and preprocess it for vision encoder
path
config
device
Tensor of shape [1, 3, H, W] ready for vision encoder