How to separate predictions map to create id2label.json

I’ve never tried segmentation before…
I collected some links that might be useful if you’re trying to do segmentation with Hugging Face.