I can not explain it, if I use an adaptive method like adam it works, with SDG I need to stay under 1e-3.
The metric that I use in this project is the DICE index https://en.wikipedia.org/wiki/Sørensen–Dice_coefficient 5