| 68 | |
| 69 | |
| 70 | class MaskToTensor(object): |
| 71 | def __call__(self, img, blockout_predefined_area=False): |
| 72 | return torch.from_numpy(np.array(img, dtype=np.int32)).long() |
| 73 | |
| 74 | class RelaxedBoundaryLossToTensor(object): |
| 75 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected