In-place transform all attributes of this class. By "in-place", it means after calling this method, accessing an attribute such as ``self.image`` will return transformed data.
(self, tfm: Transform)
| 661 | self.sem_seg = sem_seg |
| 662 | |
| 663 | def transform(self, tfm: Transform) -> None: |
| 664 | """ |
| 665 | In-place transform all attributes of this class. |
| 666 | |
| 667 | By "in-place", it means after calling this method, accessing an attribute such |
| 668 | as ``self.image`` will return transformed data. |
| 669 | """ |
| 670 | self.image = tfm.apply_image(self.image) |
| 671 | if self.boxes is not None: |
| 672 | self.boxes = tfm.apply_box(self.boxes) |
| 673 | if self.sem_seg is not None: |
| 674 | self.sem_seg = tfm.apply_segmentation(self.sem_seg) |
| 675 | |
| 676 | def apply_augmentations( |
| 677 | self, augmentations: List[Union[Augmentation, Transform]] |
no test coverage detected