Negative values on DICE loss during training

Yes, there are plenty of implementations online. Search for code available on kaggle ‘image segmentation’