Open kimihailv opened 5 years ago
check that your mask is in range 0..1
I have already checked, values are in [0, 1]
check that your mask is in range 0..1
to_categorical
function in my code is tf.keras.utils.to_categorical
, which convert a matrix with shape (h, w) to the categorical matrix with shape (h, w, num_classes)
Dataset loading and preprocessing:
Preprocessing function:
Where preprocessing_fn is sm.get_preprocessing(backbone). Where is my mistake? Thanks for the help.