Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confused with nll_loss #876

Open
haichao2023 opened this issue Nov 26, 2024 · 2 comments
Open

Confused with nll_loss #876

haichao2023 opened this issue Nov 26, 2024 · 2 comments

Comments

@haichao2023
Copy link

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

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

@onlyonewater
Copy link

+1, I am also confused about this loss

@ljw919
Copy link

ljw919 commented Jan 13, 2025

also confused, anyone already train a VAE result ? is it OK ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants