xavi0007:

it prints out


It is clearly that this default dataset return the input tensor and semenstic labels, but the labels is a PIL Image.
You can write your own dataset to process the PIL Image. For example:
class MyCitySpace(torchvision.datasets.Cityspaces):
    def __getitem__(self, item):
        inputs, target = super().__getitem__(item)
        return inputs, np.array(target)