I have written the following data augmentation pipeline for Pytorch:
transform = transforms.Compose([
transforms.RandomResizedCrop(224),
transforms.RandomHorizontalFlip(),
transforms.GaussianBlur(11, sigma=(0.1, 2.0)),
transforms.ToTensor(),
transforms.Normalize(mean, std)
])
But running the above code gives me the following error:
AttributeError: module 'torchvision.transforms' has no attribute 'GaussianBlur'
Is GaussianBlur a new feature that has not been included in torchvision yet? Or is it just my torchvision version that is too old?
I found it in the following documentation page: torchvision.transforms
Here are my packages versions:
torch 1.6.0+cu101
torchvision 0.7.0+cu101