GaussianBlur¶
- class torchvision.transforms.v2.GaussianBlur(kernel_size: Union[int, Sequence[int]], sigma: Union[int, float, Sequence[float]] = (0.1, 2.0))[source]¶
使用隨機選擇的高斯模糊核模糊影像。
卷積將使用與核大小相對應的反射填充,以保持輸入形狀。
如果輸入是 Tensor,則預期其形狀為 […, C, H, W],其中 … 表示任意數量的前導維度。
- 引數:
使用
GaussianBlur的示例