How do I create a Image Segmentation Dataset

I was able to solve that part by doing this:

feature_extractor = SegformerFeatureExtractor(do_resize=False, do_normalize=False)

But I am getting another error
image
Not sure why this is coming