Shortcuts

SegmentationLabelsOutput

class flash.image.segmentation.output.SegmentationLabelsOutput(labels_map=None, visualize=False)[source]

A Output which converts the model outputs to the label of the argmax classification per pixel in the image for semantic segmentation tasks.

Parameters
static labels_to_image(img_labels, labels_map)[source]

Function that given an image with labels ids and their pixel intensity mapping, creates an RGB representation for visualisation purposes.

Return type

Tensor