GaussianBlur
- class torchvision.transforms.GaussianBlur(kernel_size, sigma=(0.1, 2.0))[source]
Blurs image with randomly chosen Gaussian blur. If the image is torch Tensor, it is expected to have […, C, H, W] shape, where … means at most one leading dimension.
- Parameters:
kernel_size (int or sequence) – Size of the Gaussian kernel.
() – Standard deviation to be used for creating kernel to perform blurring. If float, sigma is fixed. If it is tuple of float (min, max), sigma is chosen uniformly at random to lie in the given range.