-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Transforms without dispatcher #5421
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
5e52ed2
add prototype transforms that don't need dispatchers
pmeier 225ed47
Merge branch 'main' into transforms-without-dispatcher
pmeier fe82e94
cleanup
pmeier 36f3e0d
remove legacy_transform decorator
pmeier 757fbed
remove legacy classes
pmeier 0ca3800
Merge branch 'main' into transforms-without-dispatcher
pmeier dc61271
remove explicit param passing
pmeier c7c4608
streamline extra_repr
pmeier 13d49cb
remove obsolete ._supports() method
pmeier 4771e25
cleanup
pmeier fb2077f
Merge branch 'main' into transforms-without-dispatcher
pmeier c393a43
remove Query
pmeier e7502ed
cleanup
pmeier fd752a6
fix tests
pmeier ea71c2c
Merge branch 'main' into transforms-without-dispatcher
pmeier 283c474
kernels -> functional
pmeier b3c0452
move image size and num channels extraction to functional
pmeier c129dea
extend legacy function to extract image size and num channels
pmeier 9b18c28
implement dispatching for auto augment
pmeier 3348f89
fix auto augment dispatch
pmeier 25e2ec0
Merge branch 'main' into transforms-without-dispatcher
pmeier 90f9fa7
revert some naming changes
pmeier ddf28d2
remove ability to pass params to autoaugment
pmeier 68bbb2b
fix legacy image size extraction
pmeier aa9f912
Merge branch 'main' into transforms-without-dispatcher
pmeier 1587588
align prototype.transforms.functional with transforms.functional
pmeier 41be83c
Merge branch 'transforms-without-dispatcher' of https://github.com/pm…
pmeier 9fc2693
Merge branch 'main' into transforms-without-dispatcher
pmeier ab79215
Merge branch 'main' into transforms-without-dispatcher
pmeier 7826ab3
cleanup
pmeier ced8bcf
fix image size and channels extraction
pmeier 0017807
fix affine and rotate
pmeier 23955b6
Merge branch 'transforms-without-dispatcher' of https://github.com/pm…
pmeier ed32288
Merge branch 'main' into transforms-without-dispatcher
pmeier 71e4c56
revert image size to (width, height)
pmeier 0943de0
Minor corrections
datumbox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
from torchvision.transforms import AutoAugmentPolicy, InterpolationMode # usort: skip | ||
from . import kernels # usort: skip | ||
from torchvision.transforms import InterpolationMode, AutoAugmentPolicy # usort: skip | ||
|
||
from . import functional # usort: skip | ||
|
||
from ._transform import Transform # usort: skip | ||
|
||
from ._augment import RandomErasing, RandomMixup, RandomCutmix | ||
from ._auto_augment import RandAugment, TrivialAugmentWide, AutoAugment | ||
from ._container import Compose, RandomApply, RandomChoice, RandomOrder | ||
from ._geometry import HorizontalFlip, Resize, CenterCrop, RandomResizedCrop | ||
from ._meta_conversion import ConvertBoundingBoxFormat, ConvertImageDtype, ConvertColorSpace | ||
from ._meta_conversion import ConvertBoundingBoxFormat, ConvertImageDtype, ConvertImageColorSpace | ||
from ._misc import Identity, Normalize, ToDtype, Lambda | ||
from ._presets import CocoEval, ImageNetEval, VocEval, Kinect400Eval, RaftEval | ||
from ._type_conversion import DecodeImage, LabelToOneHot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.