MaskFormer Jagged Edges Issues of output masks

Hello everyone,

I’m currently engaged in a project where I have used MaskFormermodel to generate segmentation masks. However, I’ve encountered a challenge with the jagged edges on the masks outputted by my model. This issue becomes particularly noticeable when plotting the masks, as evidenced by the attached image. I’m reaching out to seek any insights or suggestions that could help resolve these jagged edges when I want to visualize the mask.

Thank you for your time and assistance!