# Dataset for Mask2former

**URL:** <https://discuss.huggingface.co/t/dataset-for-mask2former/79610>\
**Category:** 🤗Datasets\
**Created:** [April 1, 2024, 7:17am UTC](https://discuss.huggingface.co/t/dataset-for-mask2former/79610 "2024-04-01T07:17:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![coder31](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@coder31](https://discuss.huggingface.co/u/coder31)\
**Post date:** [April 1, 2024, 7:17am UTC](https://discuss.huggingface.co/t/dataset-for-mask2former/79610/1 "2024-04-01T07:17:36Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![nlassaux](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nlassaux/32/32462_2.png) [@nlassaux](https://discuss.huggingface.co/u/nlassaux)\
**Post date:** [October 9, 2024, 9:05pm UTC](https://discuss.huggingface.co/t/dataset-for-mask2former/79610/2 "2024-10-09T21:05:29Z")

</div>

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](https://discuss.huggingface.co/t/encoding-masks-for-mask2former-and-panopic-segmentation/110245)
