Apparently this image is saved in as bool values, since when you check the dtype of the numpy array, you’ll get dtype('bool').
An easy fix is to convert it to np.uint8 after loading:
mask = torch.from_numpy(np.array(mask, dtype=np.uint8))