loss
xvr.model.loss
DiceMetric
DiceMetric()
Source code in src/xvr/model/loss.py
63 64 | |
forward
forward(y_pred, y_true)
Compute 2D Dice coefficient between to multi-channel labelmaps. Assumes the first channel in each image is background.
Equivalent to monai.metrics.DiceMetric(include_background=False, reduction="none")
Source code in src/xvr/model/loss.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | |