I am using the code from https://github.com/qubvel/segmentation_models.pytorch/blob/master/examples/cars%20segmentation%20(camvid).ipynb
when i reach:
visualize(
image=image, 
cars_mask=mask.squeeze(),
) 

it gives:

l894×496 37.3 KB

all my images and masks have same shape(512x512) but here it gives:
  print(dataset[0][0].shape) gives (512, 512, 3)
  print(dataset[0][1].shape) gives (1,)