Getting Error while fine tuning Segformer

AttributeError: ‘bool’ object has no attribute ‘all’
I am getting this error while training the segformer network on the custom dataset which i have created.

Please Contact on
neeltripathi31@gmail.com

This looks like a bug in your data preparation. Could you provide a code snippet to reproduce your error?

Actually i used the sample notebook availbale on the github

Link :

The dataset which i am using consists of images of size 1000x1000 along with their annotation masks and a color pallete text file . all the images are in .png format