ImageMask
2 minute read
Format image masks or overlays for logging to W&B.
Args | |
---|---|
val |
(dictionary) One of these two keys to represent the image: mask_data : (2D numpy array) The mask containing an integer class label for each pixel in the image path : (string) The path to a saved image file of the mask class_labels : (dictionary of integers to strings, optional) A mapping of the integer class labels in the mask to readable class names. These will default to class_0, class_1, class_2, etc. |
key |
(string) The readable name or id for this mask type (e.g. predictions, ground_truth) |
Examples:
Logging a single masked image
Log a masked image inside a Table
Methods
type_name
validate
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.