| 1333 | |
| 1334 | |
| 1335 | class CropSettingsTransform(AbstractTransform): |
| 1336 | |
| 1337 | def load(self, path): |
| 1338 | sample = np.load(path) |
| 1339 | return sample |
| 1340 | |
| 1341 | def preprocess(self, sample): |
| 1342 | raise NotImplementedError("CropSettingsTransform does not support preprocessing") |
| 1343 | |
| 1344 | def image_augment(self, val, crop_coords: Tuple, flip: bool, orig_size: Tuple, target_size: Tuple, |
| 1345 | rand_aug_idx: Optional[int], resample_mode: str = None): |
| 1346 | raise NotImplementedError("CropSettingsTransform is not meant to be used for image augmentation") |
| 1347 | |
| 1348 | def postprocess(self, sample): |
| 1349 | raise NotImplementedError("CropSettingsTransform does not support postprocessing") |
| 1350 | |
| 1351 | |
| 1352 | class IdentityTransform(AbstractTransform): |
no outgoing calls
no test coverage detected