# Fine tuning segformer model

**URL:** <https://discuss.huggingface.co/t/fine-tuning-segformer-model/22715>\
**Category:** Beginners\
**Created:** [September 7, 2022, 10:52pm UTC](https://discuss.huggingface.co/t/fine-tuning-segformer-model/22715 "2022-09-07T22:52:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FahriBilici](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/fahribilici/32/5950_2.png) [@FahriBilici](https://discuss.huggingface.co/u/FahriBilici)\
**Post date:** [September 7, 2022, 10:52pm UTC](https://discuss.huggingface.co/t/fine-tuning-segformer-model/22715/1 "2022-09-07T22:52:17Z")

</div>

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?
