You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support for a batch of images in torchvision.transforms.functional.
Currently the torchvision.transforms.functional transformations take only a single image as input. Sometimes after creating the dataloader, I need to transform the images during the training loop, but passing the batch of images to transforms.functional raises an error expecting a 2/3 dimensional input while it gets a 4-dimensional input. I am currently solving the issue by looping through the images in the batch but it would be nice if the transforms could handle a batch of images on their own.
The text was updated successfully, but these errors were encountered:
Support for a batch of images in torchvision.transforms.functional.
Currently the torchvision.transforms.functional transformations take only a single image as input. Sometimes after creating the dataloader, I need to transform the images during the training loop, but passing the batch of images to transforms.functional raises an error expecting a 2/3 dimensional input while it gets a 4-dimensional input. I am currently solving the issue by looping through the images in the batch but it would be nice if the transforms could handle a batch of images on their own.
The text was updated successfully, but these errors were encountered: