Fine tuning segformer model

Hello, I am trying to train segformer model with my custom dataset. I have 46 different classes. My problem is my dataset labels are encoded pixel and there is multiple classes in one image. How I will generate the mask images for segformer like the example they share?