Skip to content

Instantly share code, notes, and snippets.

@farukcankaya
Created October 20, 2022 16:51
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/cfd85d476c5666c0dd29997f0b6fdc45 to your computer and use it in GitHub Desktop.
Save farukcankaya/cfd85d476c5666c0dd29997f0b6fdc45 to your computer and use it in GitHub Desktop.
aug = InstanceColorJitterAugmentation(lambda img: ImageEnhance.Color(img).enhance(10))
augmentations = T.AugmentationList([aug])
aug_input = MultiModalAugInput(image, annos=d['annotations'])
transforms = augmentations(aug_input)
augmented_image = aug_input.image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment