(self, n=35)
| 261 | |
| 262 | class Colorize(object): |
| 263 | def __init__(self, n=35): |
| 264 | self.cmap = labelcolormap(n) |
| 265 | self.cmap = torch.from_numpy(self.cmap[:n]) |
| 266 | |
| 267 | def __call__(self, gray_image): |
| 268 | size = gray_image.size() |
nothing calls this directly
no test coverage detected