In the file cv_lib/cv_lib/utils.py, the Paired colormap used in mask_to_disk does not support more than 12 classes.
def mask_to_disk(mask, fname, cmap_name="Paired"):
"""
write segmentation mask to disk using a particular colormap
"""
cmap = plt.get_cmap(cmap_name)
Image.fromarray(cmap(normalize(mask), bytes=True)).save(fname)
This must be fixed to support an arbitrary number of classes.
In the file
cv_lib/cv_lib/utils.py
, thePaired
colormap used inmask_to_disk
does not support more than 12 classes.This must be fixed to support an arbitrary number of classes.