Using Fashionpedia dataset with the huggingface model

I am following the instructions to fine-tune a Semantic Segmentation Model with a Custom Dataset which are available at:

I would like to use as custom dataset, a dataset derived from the Fashionpedia dataset:

Has anyone already implemented such transformations? Or would it be possible to use directly, for example, the Fashionpedia dataset in JSON format? Any piece of advice is most welcome.