We use a dice loss function on the predicted outputs of the main stream as well as the boundary stream. The dice loss is as follows [1]}:
\(L_{Dice}= 1- \frac{2*\sum y_{true} * y_{pred} }{\sum y_{true}^2 + \sum y_{pred}^2 + \epsilon }\) 
