Sorry to trouble you. Would you by any chance know why am getting this error. Image below.
Step I took.


I used the cold as you suggested.


I called the function and passed in the path to the dataset and mask.
dataset_sample = PersonDataset(‘C:/Users/LENOVO/measurement_model_dev/Train’)


tried to print the first data using:
img, target = dataset_sample[1]


I ended up with this error. see image.
Any Help will appreciated.error_image2456×1080 75.9 KB