Skip to content

Instantly share code, notes, and snippets.

@farukcankaya
Last active October 20, 2022 13:29
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/12200b51dc2e9399fd9c8463b5c64513 to your computer and use it in GitHub Desktop.
Save farukcankaya/12200b51dc2e9399fd9c8463b5c64513 to your computer and use it in GitHub Desktop.
def transform(self, tfm: Transform) -> None:
if isinstance(tfm, MultiModalTransform):
self.image, self.annos = \
tfm.apply_multi_modal(self.image, self.annos)
else:
super().transform(tfm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment