You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
BaronDuan
changed the title
在unet_training代码中定义的dice_loss函数中temp_target[...,:-1] 是什么意思啊,切片索引的是啥?还有torch.sum相加中的axis是啥意思?
你好,我想问问在unet_training代码中定义的dice_loss函数中temp_target[...,:-1] 是什么意思啊,切片索引的是啥?还有torch.sum相加中的axis是啥意思?
Dec 29, 2023
def Dice_loss(inputs, target, beta=1, smooth = 1e-5):
n, c, h, w = inputs.size()
nt, ht, wt, ct = target.size()
if h != ht and w != wt:
inputs = F.interpolate(inputs, size=(ht, wt), mode="bilinear", align_corners=True)
The text was updated successfully, but these errors were encountered: