MCPcopy Create free account
hub / github.com/NVlabs/SPADE / __init__

Method __init__

util/util.py:263–265  ·  view source on GitHub ↗
(self, n=35)

Source from the content-addressed store, hash-verified

261
262class 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()

Callers

nothing calls this directly

Calls 1

labelcolormapFunction · 0.85

Tested by

no test coverage detected