Hello sir
output.shape =(1, 2,64, 64) and y_true.shape = (1, 64, 64)



 ptrblck:

Based on the posted code it looks like the model is expected to output and a probability for a binary classification, i.e. a sigmoid is used as the last non-linearity.
Is this also the case for your model?


Yes sir, I am trying to perform a binary segmentation task.
I have been trying to fix the problem and as for now, it sometimes gives some negative values. Is this result normal? Could you help me check whether the content of the code is logical?
Thank you very much