(self, sample)
| 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 | |
| 570 | class MaskTransform(ImageTransform): |
nothing calls this directly
no test coverage detected