(self, segm)
| 58 | return img |
| 59 | |
| 60 | def segm_transform(self, segm): |
| 61 | # to tensor, -1 to 149 |
| 62 | segm = torch.from_numpy(np.array(segm)).long() - 1 |
| 63 | return segm |
| 64 | |
| 65 | # Round x to the nearest multiple of p and x' >= x |
| 66 | def round2nearest_multiple(self, x, p): |
no outgoing calls
no test coverage detected