Img segmentation problem

Hi

I am performing a segmentation task.

Dataset: jsrt dataset

The problem is that the result of the image is too bad compared to my dice score.

What is the problem?

this is my git

Please note that this code is not yet cleaned up. sorry;;;;