MIC-DKFZ/nnUNet

Zhangxinyan666

Closed this issue · 0 comments

Hello!have some problems in modifying the loss function, can you help me solve it? I have added an uncertainty_loss based on dc_loss and ce_loss. I have defined a DC_CE_and_uncertainty_loss class in compound_losses.py. And I have modified _build_loss in nnUNetTrainer.py,as shown in the figure below.
1
In addition, I also modified self.loss.
2
After the above modifications, I encountered the following error during training:
3

4
5
Thank you!