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

loss #213

Open
mowangmodi opened this issue Sep 19, 2023 · 0 comments
Open

loss #213

mowangmodi opened this issue Sep 19, 2023 · 0 comments

Comments

@mowangmodi
Copy link

Why does the calculation of loss need to be multiplied by a coefficient of 0.5? Is it because fine and coat account for half respectively?
ret['c_l'] = 0.5 * ((inputs['rgb_coarse']-targets)**2).mean()
ret['f_l'] = 0.5 * ((inputs['rgb_coarse']-targets)**2).mean()

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

1 participant