load_image
- deepinv.utils.load_image(path, img_size=None, grayscale=False, resize_mode='crop', device='cpu', dtype=torch.float32)[source]
Load an image from a file and return a torch.Tensor.
- Parameters:
- Returns:
torch.Tensor
containing the image.