ptrblck:

interpolation=PIL.Image.NEAREST


Must I use interpolation=PIL.Image.NEAREST for both labels and input images?
Another issue that comes to  mind here is that:
My labels are read as json files, converted into nparrays and saved into a list. What can be the order of applying the changes?

First convert the label into a PIL image,
Resize using ‘interpolation=PIL.Image.NEAREST’,
then convert the resized image into nparray again
and then apply torch.to_numpy?

If I change this order somehow, will it affect the final result?