CBDNet-pytorch icon indicating copy to clipboard operation
CBDNet-pytorch copied to clipboard

is there a wrong in loss?

Open xiaoxiaowannote opened this issue 3 years ago • 2 comments

may be your torch.lt is wrong

xiaoxiaowannote avatar Dec 17 '21 07:12 xiaoxiaowannote

asym_loss = torch.mean(if_asym * torch.abs(0.3 - torch.lt(gt_noise, est_noise).float()) * torch.pow(est_noise - gt_noise, 2)) should be asym_loss = torch.mean(if_asym * torch.abs(0.3 - torch.lt(est_noise, gt_noise).float()) * torch.pow(est_noise - gt_noise, 2)) ??

huntkao avatar Jun 06 '22 03:06 huntkao