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

Method postprocess

fourm/data/modality_transforms.py:561–567  ·  view source on GitHub ↗
(self, sample)

Source from the content-addressed store, hash-verified

559 return v
560
561 def postprocess(self, sample):
562 sample, bboxes, valid = self.get_binary_masks(sample)
563 return {
564 'instance': torch.from_numpy(sample).to(torch.float32),
565 'bbox': torch.from_numpy(bboxes).to(torch.float32),
566 'valid': torch.from_numpy(valid)
567 }
568
569
570class MaskTransform(ImageTransform):

Callers

nothing calls this directly

Calls 1

get_binary_masksMethod · 0.95

Tested by

no test coverage detected