sud0301 / semisup-semseg

136 stars 30 forks source link

label image resize #7

Open Alagirl opened 4 years ago

Alagirl commented 4 years ago

when I train the cityspace dataset,I need to resize image into (512,256,3).But the label value changed after I use cv2.resize function with nearest mode.How can I resize the label image in a right way?

Shasvat0601 commented 4 years ago

which interpolation method did you use? Nearest neighbor interpolation should work for resizing of the mask without changing the pixel values