MIC-DKFZ / nnUNet

Apache License 2.0
5.95k stars 1.77k forks source link

Zhangxinyan666 #2549

Closed Zhangxinyan666 closed 1 month ago

Zhangxinyan666 commented 1 month ago

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!