I remember having this problem with the Dice metric sometime ago too. I can’t seem to find my colab notebook that I was experimenting with, but if I can remember correctly, the axis parameter helped me fix constant Dice metrics (When initializing the metric)
I’ll post an update when I find the Colab Notebook, but in the meantime you can try and see if that solves it for you.
UPDATE:
I was going through your notebook and I noticed you passed in metrics like this metrics=DiceMulti
try metrics=DiceMulti()