MCPcopy Create free account
hub / github.com/Engineering-Course/LIP_JPPNet / decode_labels

Function decode_labels

utils/utils.py:24–45  ·  view source on GitHub ↗

Decode batch of segmentation masks. Args: mask: result of inference after taking argmax. num_images: number of images to decode from the batch. Returns: A batch with num_images RGB images of the same size as the input.

(mask, num_images=1, num_classes=20)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected