BoundaryDoULoss
The computation of the Boundary DoU Loss is represented as follows:
Where
For 2D BoundaryDoULoss:
Where
For 3D BoundaryDoULoss:
where
from boundary_dou_loss_2d import BoundaryDoULoss # 2D
# from boundary_dou_loss_3d import BoundaryDoULoss # 3D
# init
n_classes = 2 # Number of categories
loss_fuction = BoundaryDoULoss(n_classes=n_classes)
loss = loss_fuction(pred, target)
@inproceedings{sun2023boundary, title={Boundary difference over union loss for medical image segmentation}, author={Sun, Fan and Luo, Zhiming and Li, Shaozi}, booktitle={International Conference on Medical Image Computing and Computer-Assisted Intervention}, pages={292--301}, year={2023}, organization={Springer} }