MCPcopy Create free account
hub / github.com/HiLab-git/SSL4MIS / decode_segmap

Function decode_segmap

code/dataloaders/utils.py:80–114  ·  view source on GitHub ↗

Decode segmentation class labels into a color image Args: label_mask (np.ndarray): an (M,N) array of integer values denoting the class label at each spatial location. plot (bool, optional): whether to show the resulting color image in a figure. Returns:

(label_mask, dataset, plot=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

decode_seg_map_sequenceFunction · 0.85

Calls 2

get_pascal_labelsFunction · 0.85
get_cityscapes_labelsFunction · 0.85

Tested by

no test coverage detected