Open lijing1996 opened 4 years ago
Hi, @lijing1996
Any idea about this?
I face the same question. The loss function is too hard to understand for me...
Hi, @lijing1996 I guess this code clip was written from torch.nn.functional.binary_cross_entropy_with_logits, which takes advantage of the log-sum-exp trick for numerical stability.
Hi all, in this Loss Function do you guys know what the pad_mask
variable is? I thought the target would have one channel per Class. Whereas this functions suggests a pad_mask channel as well.
Thank you!
Since the input of your loss function is the network output without sigmoid function, I find it difficult to understand your code. What are 'max val' and 'log weight' here? Is it different from the loss function in CASENet? Could you give me a brief explanation? Thanks a lot.