This repo contains the code for converting an RGB mask into a onehot encoded mask or a single channel grayscale mask, which can be easily used for multiclass segmentation.
Watch the complete video tutorial: https://youtu.be/WYCvYLwIltk
Here we used 5 images and masks from the VOC 2012 dataset.