CompVis/stable-diffusion

Confused with nll_loss

Opened this issue · 1 comments

Is this correct? Sum all pixels and divide by batch_size?

weighted_nll_loss = torch.sum(weighted_nll_loss) / weighted_nll_loss.shape[0]

+1, I am also confused about this loss