Skip to content

Commit

Permalink
[fbsync] Fix typos in _augment.py (#7877)
Browse files Browse the repository at this point in the history
Summary: (Note: this ignores all push blocking failures!)

Reviewed By: matteobettini

Differential Revision: D48900395

fbshipit-source-id: db5d131e6ebca418b4ce36a3d2eda6bd10573057

Co-authored-by: Nicolas Hug <nh.nicolas.hug@gmail.com>
  • Loading branch information
2 people authored and facebook-github-bot committed Sep 6, 2023
1 parent 606351c commit 4cb076c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchvision/transforms/v2/_augment.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class MixUp(_BaseMixUpCutMix):
alpha (float, optional): hyperparameter of the Beta distribution used for mixup. Default is 1.
num_classes (int): number of classes in the batch. Used for one-hot-encoding.
labels_getter (callable or "default", optional): indicates how to identify the labels in the input.
By default, this will pick the second parameter a the labels if it's a tensor. This covers the most
By default, this will pick the second parameter as the labels if it's a tensor. This covers the most
common scenario where this transform is called as ``MixUp()(imgs_batch, labels_batch)``.
It can also be a callable that takes the same input as the transform, and returns the labels.
"""
Expand Down Expand Up @@ -279,7 +279,7 @@ class CutMix(_BaseMixUpCutMix):
alpha (float, optional): hyperparameter of the Beta distribution used for mixup. Default is 1.
num_classes (int): number of classes in the batch. Used for one-hot-encoding.
labels_getter (callable or "default", optional): indicates how to identify the labels in the input.
By default, this will pick the second parameter a the labels if it's a tensor. This covers the most
By default, this will pick the second parameter as the labels if it's a tensor. This covers the most
common scenario where this transform is called as ``CutMix()(imgs_batch, labels_batch)``.
It can also be a callable that takes the same input as the transform, and returns the labels.
"""
Expand Down

0 comments on commit 4cb076c

Please sign in to comment.