Skip to content

Instantly share code, notes, and snippets.

@farukcankaya
Last active October 20, 2022 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save farukcankaya/f1249ecde07b4dd9db77d9bfca7ad0d4 to your computer and use it in GitHub Desktop.
Save farukcankaya/f1249ecde07b4dd9db77d9bfca7ad0d4 to your computer and use it in GitHub Desktop.
class Augmentation:
def __call__(self, aug_input) -> Transform:
args = _get_aug_input_args(self, aug_input)
tfm = self.get_transform(*args)
aug_input.transform(tfm)
return tfm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment