Dataset for Mask2former

Hi,
I want to make a custom dataset for Mask2former model. Could you please let me know how can I proceed while I have more than 256 labels in my dataset?

I’ve managed to make it work that way myself:

https://discuss.huggingface.co/t/encoding-masks-for-mask2former-and-panopic-segmentation/110245?u=nlassaux