-
Couldn't load subscription status.
- Fork 7.2k
Added docs for v2 transforms (part 1) #7297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -98,17 +98,29 @@ Geometry | |
| :template: class.rst | ||
|
|
||
| Resize | ||
| v2.Resize | ||
| RandomCrop | ||
| v2.RandomCrop | ||
| RandomResizedCrop | ||
| v2.RandomResizedCrop | ||
| CenterCrop | ||
| v2.CenterCrop | ||
| FiveCrop | ||
| v2.FiveCrop | ||
| TenCrop | ||
| v2.TenCrop | ||
| Pad | ||
| v2.Pad | ||
| RandomAffine | ||
| v2.RandomAffine | ||
| RandomPerspective | ||
| v2.RandomPerspective | ||
| RandomRotation | ||
| v2.RandomRotation | ||
| RandomHorizontalFlip | ||
| v2.RandomHorizontalFlip | ||
| RandomVerticalFlip | ||
| v2.RandomVerticalFlip | ||
|
|
||
| Color | ||
| ----- | ||
|
|
@@ -118,15 +130,25 @@ Color | |
| :template: class.rst | ||
|
|
||
| ColorJitter | ||
| v2.ColorJitter | ||
| Grayscale | ||
| v2.Grayscale | ||
| RandomGrayscale | ||
| v2.RandomGrayscale | ||
| GaussianBlur | ||
| v2.GaussianBlur | ||
| RandomInvert | ||
| v2.RandomInvert | ||
| RandomPosterize | ||
| v2.RandomPosterize | ||
| RandomSolarize | ||
| v2.RandomSolarize | ||
| RandomAdjustSharpness | ||
| v2.RandomAdjustSharpness | ||
| RandomAutocontrast | ||
| v2.RandomAutocontrast | ||
| RandomEqualize | ||
| v2.RandomEqualize | ||
|
|
||
| Composition | ||
| ----------- | ||
|
|
@@ -136,9 +158,13 @@ Composition | |
| :template: class.rst | ||
|
|
||
| Compose | ||
| v2.Compose | ||
| RandomApply | ||
| v2.RandomApply | ||
| RandomChoice | ||
| v2.RandomChoice | ||
| RandomOrder | ||
| v2.RandomOrder | ||
|
|
||
| Miscellaneous | ||
| ------------- | ||
|
|
@@ -148,9 +174,13 @@ Miscellaneous | |
| :template: class.rst | ||
|
|
||
| LinearTransformation | ||
| v2.LinearTransformation | ||
| Normalize | ||
| v2.Normalize | ||
| RandomErasing | ||
| v2.RandomErasing | ||
| Lambda | ||
| v2.Lambda | ||
|
|
||
| .. _conversion_transforms: | ||
|
|
||
|
|
@@ -162,9 +192,15 @@ Conversion | |
| :template: class.rst | ||
|
|
||
| ToPILImage | ||
| v2.ToPILImage | ||
| v2.ToImagePIL | ||
| ToTensor | ||
| v2.ToTensor | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since it is deprecated, should we document it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Some thoughts here https://github.com/pytorch/vision/pull/7297/files#r1113244517
I did not add any new v2 transforms here, so that's normal |
||
| PILToTensor | ||
| v2.PILToTensor | ||
| ConvertImageDtype | ||
| v2.ConvertImageDtype | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above. Just an alias for |
||
| v2.ConvertDtype | ||
|
|
||
| Auto-Augmentation | ||
| ----------------- | ||
|
|
@@ -181,9 +217,13 @@ The new transform can be used standalone or mixed-and-matched with existing tran | |
|
|
||
| AutoAugmentPolicy | ||
| AutoAugment | ||
| v2.AutoAugment | ||
| RandAugment | ||
| v2.RandAugment | ||
| TrivialAugmentWide | ||
| v2.TrivialAugmentWide | ||
| AugMix | ||
| v2.AugMix | ||
|
|
||
| .. _functional_transforms: | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.