Generating the labels for Image Segmentation from multiple RLE strings of a image

Hi All,
I am working on generating a custom Image segmentation data set. I have different Run-Length Encoding (RLE) of different features for each image. I would like to create a data set from these to use them with How should I go about using SegmentationItemList to combine different RLE’s of a image into a single mask and use it as a label.

Thank you .


1 Like

Hi @Harsha1992, did you figure this out? Thanks!

I am struggling with the same for the latest Kaggle competition.

I did the following to get started:

  1. Processed the data frame containing the rles and dumped the masks in png format.
  2. Then used the fastai data bunch api add_test to load the masks

Look at my kaggle kernel where I followed this strategy.