Unverified Commit 5501bfe2 authored by talcs's avatar talcs Committed by GitHub
Browse files

Mentioning the padding policy in transforms.GaussianBlur docs (#8246)


Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
Co-authored-by: default avatarNicolas Hug <nh.nicolas.hug@gmail.com>
parent 6c10d080
......@@ -1307,7 +1307,9 @@ def erase(img: Tensor, i: int, j: int, h: int, w: int, v: Tensor, inplace: bool
def gaussian_blur(img: Tensor, kernel_size: List[int], sigma: Optional[List[float]] = None) -> Tensor:
"""Performs Gaussian blurring on the image by given kernel.
"""Performs Gaussian blurring on the image by given kernel
The convolution will be using reflection padding corresponding to the kernel size, to maintain the input shape.
If the image is torch Tensor, it is expected
to have [..., H, W] shape, where ... means at most one leading dimension.
......
......@@ -166,7 +166,9 @@ class Normalize(Transform):
class GaussianBlur(Transform):
"""Blurs image with randomly chosen Gaussian blur.
"""Blurs image with randomly chosen Gaussian blur kernel.
The convolution will be using reflection padding corresponding to the kernel size, to maintain the input shape.
If the input is a Tensor, it is expected
to have [..., C, H, W] shape, where ... means an arbitrary number of leading dimensions.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment