Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
cb512ea6
Unverified
Commit
cb512ea6
authored
Sep 22, 2023
by
Haochen Yu
Committed by
GitHub
Sep 22, 2023
Browse files
Fix issue 7911 (#7978)
Co-authored-by:
Philip Meier
<
github.pmeier@posteo.de
>
parent
d80d5bd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
torchvision/transforms/functional.py
torchvision/transforms/functional.py
+1
-1
torchvision/transforms/transforms.py
torchvision/transforms/transforms.py
+1
-1
No files found.
torchvision/transforms/functional.py
View file @
cb512ea6
...
...
@@ -1326,7 +1326,7 @@ 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.
If the image is torch Tensor, it is expected
to have [..., H, W] shape, where ... means a
n arbitrary number of
leading dimension
s
.
to have [..., H, W] shape, where ... means a
t most one
leading dimension.
Args:
img (PIL Image or Tensor): Image to be blurred
...
...
torchvision/transforms/transforms.py
View file @
cb512ea6
...
...
@@ -1760,7 +1760,7 @@ class RandomErasing(torch.nn.Module):
class
GaussianBlur
(
torch
.
nn
.
Module
):
"""Blurs image with randomly chosen Gaussian blur.
If the image is torch Tensor, it is expected
to have [..., C, H, W] shape, where ... means a
n arbitrary number of
leading dimension
s
.
to have [..., C, H, W] shape, where ... means a
t most one
leading dimension.
Args:
kernel_size (int or sequence): Size of the Gaussian kernel.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment