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
99ebb75d
Unverified
Commit
99ebb75d
authored
Aug 18, 2023
by
Nicolas Hug
Committed by
GitHub
Aug 18, 2023
Browse files
Split example gallery into subsections (#7849)
parent
6241d471
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
torchvision/transforms/v2/_augment.py
torchvision/transforms/v2/_augment.py
+2
-2
torchvision/transforms/v2/functional/_utils.py
torchvision/transforms/v2/functional/_utils.py
+1
-1
No files found.
torchvision/transforms/v2/_augment.py
View file @
99ebb75d
...
...
@@ -217,7 +217,7 @@ class MixUp(_BaseMixUpCutMix):
.. note::
This transform is meant to be used on **batches** of samples, not
individual images. See
:ref:`sphx_glr_auto_examples_plot_cutmix_mixup.py` for detailed usage
:ref:`sphx_glr_auto_examples_
v2_transforms_
plot_cutmix_mixup.py` for detailed usage
examples.
The sample pairing is deterministic and done by matching consecutive
samples in the batch, so the batch needs to be shuffled (this is an
...
...
@@ -267,7 +267,7 @@ class CutMix(_BaseMixUpCutMix):
.. note::
This transform is meant to be used on **batches** of samples, not
individual images. See
:ref:`sphx_glr_auto_examples_plot_cutmix_mixup.py` for detailed usage
:ref:`sphx_glr_auto_examples_
v2_transforms_
plot_cutmix_mixup.py` for detailed usage
examples.
The sample pairing is deterministic and done by matching consecutive
samples in the batch, so the batch needs to be shuffled (this is an
...
...
torchvision/transforms/v2/functional/_utils.py
View file @
99ebb75d
...
...
@@ -69,7 +69,7 @@ _BUILTIN_DATAPOINT_TYPES = {
def
register_kernel
(
functional
,
datapoint_cls
):
"""Decorate a kernel to register it for a functional and a (custom) datapoint type.
See :ref:`sphx_glr_auto_examples_plot_custom_datapoints.py` for usage
See :ref:`sphx_glr_auto_examples_
v2_transforms_
plot_custom_datapoints.py` for usage
details.
"""
if
isinstance
(
functional
,
str
):
...
...
Prev
1
2
Next
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