qubvel / segmentation_models

Segmentation models with pretrained backbones. Keras and TensorFlow Keras.
MIT License
4.74k stars 1.03k forks source link

Clarification regarding code multiclass segmentation (camvid) #402

Closed jayaBalaR closed 4 years ago

jayaBalaR commented 4 years ago

Hi

Could you please help me understand what is the purpose of using denormalize for the masks in the multiclass segmentation code?

Thank you

image

JordanMakesMaps commented 4 years ago

Is it used for the masks as well as the images? If so, I think it might just be a typo. Masks are categorical and shouldn't be manipulated using math (if you plan to resize masks, use nearest neighbor interpolation for this reason).

jayaBalaR commented 4 years ago

Okay thanks much for the clarification. Cheers