Created
October 20, 2022 07:41
-
-
Save farukcankaya/17958cd50d07e55aae71305e2119b5cf to your computer and use it in GitHub Desktop.
This file contains 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
class AugInput: | |
def transform(self, tfm: Transform) -> None: | |
self.image = tfm.apply_image(self.image) | |
if self.boxes is not None: | |
self.boxes = tfm.apply_box(self.boxes) | |
if self.sem_seg is not None: | |
self.sem_seg = tfm.apply_segmentation(self.sem_seg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment