Gaussian Blur Transformations In PyTorch For Software Engineers
GaussianBlur() can randomly blur an image. It has kernel_size and sigma arguments. Use GaussianBlur(kernel_size=1) for a simple blur.
Buy Me a Coffee☕ *Memos: My post explains OxfordIIITPet(). GaussianBlur() can randomly blur an image as shown below: *Memos: The 1st argument for initialization is num_output_channels(Required-Type:int or tuple/list(int)): *Memos: It's [height, width]. It must be odd 1 <= x. A tuple/list must be the 1D with 1 or 2 elements. A single value(int or tuple/list(int)) means [num_output_channels, num_output_channels]. The 2nd argument for initialization is sigma(Optional-Default:(0.1, 2.0)-Type:int or tuple/list(int)): *Memos: It's [min, max] so it must be min <= max. It must be 0 < x. A tupl...