MCPcopy Create free account
hub / github.com/apple/ml-4m / CropSettingsTransform

Class CropSettingsTransform

fourm/data/modality_transforms.py:1335–1349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1333
1334
1335class 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
1352class IdentityTransform(AbstractTransform):

Callers 4

get_datasetFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected