Skip to content

Commit 9ae2389

Browse files
author
Stefan
committed
Removed extra loss functions
1 parent 3ad908b commit 9ae2389

File tree

2 files changed

+0
-274
lines changed

2 files changed

+0
-274
lines changed

losses.py

Lines changed: 0 additions & 270 deletions
This file was deleted.

probabilistic_unet.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from unet_blocks import *
44
from unet import Unet
55
from utils import init_weights,init_weights_orthogonal_normal, l2_regularisation
6-
from losses import lovasz_hinge, dice_loss, binary_xloss
76
import torch.nn.functional as F
87
from torch.distributions import Normal, Independent, kl
98

@@ -277,7 +276,4 @@ def elbo(self, segm, analytic_kl=True, reconstruct_posterior_mean=False):
277276
self.reconstruction_loss = torch.sum(reconstruction_loss)
278277
self.mean_reconstruction_loss = torch.mean(reconstruction_loss)
279278

280-
#self.reconstruction_loss = dice_loss(torch.sigmoid(self.reconstruction), segm)
281-
#self.reconstruction_loss = lovasz_hinge(self.reconstruction, segm)
282-
283279
return -(self.reconstruction_loss + self.beta * self.kl)

0 commit comments

Comments
 (0)