Hive.utils.seg_mask_utils module#
- Hive.utils.seg_mask_utils.semantic_segmentation_to_instance(mask_filename, output_path)[source]#
Given a semantic segmentation mask convert to instance segmentation and save in the given output path. Return the number of labels in instance segmentation mask.
- Parameters:
mask_filename (
str) – File path of semantic segmentation mask.output_path (
str) – Output path including new instance segmentation mask file name.
- Return type:
int- Returns:
Number of labels in converted instance segmentation mask.