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
5a9e2103
"...text-generation-inference.git" did not exist on "c9c65ab323f48731e1fc2f7087547a7bd8b753f2"
Unverified
Commit
5a9e2103
authored
May 03, 2023
by
Nicolas Hug
Committed by
GitHub
May 03, 2023
Browse files
Fix lint CI (#7554)
parent
2b635006
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
torchvision/transforms/functional.py
torchvision/transforms/functional.py
+2
-2
torchvision/transforms/transforms.py
torchvision/transforms/transforms.py
+2
-2
torchvision/transforms/v2/_geometry.py
torchvision/transforms/v2/_geometry.py
+2
-2
No files found.
torchvision/transforms/functional.py
View file @
5a9e2103
...
@@ -424,10 +424,10 @@ def resize(
...
@@ -424,10 +424,10 @@ def resize(
The corresponding Pillow integer constants, e.g. ``PIL.Image.BILINEAR`` are accepted as well.
The corresponding Pillow integer constants, e.g. ``PIL.Image.BILINEAR`` are accepted as well.
max_size (int, optional): The maximum allowed for the longer edge of
max_size (int, optional): The maximum allowed for the longer edge of
the resized image. If the longer edge of the image is greater
the resized image. If the longer edge of the image is greater
than ``max_size`` after being resized according to ``size``,
than ``max_size`` after being resized according to ``size``,
``size`` will be overruled so that the longer edge is equal to
``size`` will be overruled so that the longer edge is equal to
``max_size``.
``max_size``.
As a result, the smaller edge may be shorter than ``size``. This
As a result, the smaller edge may be shorter than ``size``. This
is only supported if ``size`` is an int (or a sequence of length
is only supported if ``size`` is an int (or a sequence of length
1 in torchscript mode).
1 in torchscript mode).
antialias (bool, optional): Whether to apply antialiasing.
antialias (bool, optional): Whether to apply antialiasing.
...
...
torchvision/transforms/transforms.py
View file @
5a9e2103
...
@@ -308,10 +308,10 @@ class Resize(torch.nn.Module):
...
@@ -308,10 +308,10 @@ class Resize(torch.nn.Module):
The corresponding Pillow integer constants, e.g. ``PIL.Image.BILINEAR`` are accepted as well.
The corresponding Pillow integer constants, e.g. ``PIL.Image.BILINEAR`` are accepted as well.
max_size (int, optional): The maximum allowed for the longer edge of
max_size (int, optional): The maximum allowed for the longer edge of
the resized image. If the longer edge of the image is greater
the resized image. If the longer edge of the image is greater
than ``max_size`` after being resized according to ``size``,
than ``max_size`` after being resized according to ``size``,
``size`` will be overruled so that the longer edge is equal to
``size`` will be overruled so that the longer edge is equal to
``max_size``.
``max_size``.
As a result, the smaller edge may be shorter than ``size``. This
As a result, the smaller edge may be shorter than ``size``. This
is only supported if ``size`` is an int (or a sequence of length
is only supported if ``size`` is an int (or a sequence of length
1 in torchscript mode).
1 in torchscript mode).
antialias (bool, optional): Whether to apply antialiasing.
antialias (bool, optional): Whether to apply antialiasing.
...
...
torchvision/transforms/v2/_geometry.py
View file @
5a9e2103
...
@@ -98,10 +98,10 @@ class Resize(Transform):
...
@@ -98,10 +98,10 @@ class Resize(Transform):
The corresponding Pillow integer constants, e.g. ``PIL.Image.BILINEAR`` are accepted as well.
The corresponding Pillow integer constants, e.g. ``PIL.Image.BILINEAR`` are accepted as well.
max_size (int, optional): The maximum allowed for the longer edge of
max_size (int, optional): The maximum allowed for the longer edge of
the resized image. If the longer edge of the image is greater
the resized image. If the longer edge of the image is greater
than ``max_size`` after being resized according to ``size``,
than ``max_size`` after being resized according to ``size``,
``size`` will be overruled so that the longer edge is equal to
``size`` will be overruled so that the longer edge is equal to
``max_size``.
``max_size``.
As a result, the smaller edge may be shorter than ``size``. This
As a result, the smaller edge may be shorter than ``size``. This
is only supported if ``size`` is an int (or a sequence of length
is only supported if ``size`` is an int (or a sequence of length
1 in torchscript mode).
1 in torchscript mode).
antialias (bool, optional): Whether to apply antialiasing.
antialias (bool, optional): Whether to apply antialiasing.
...
...
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