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

regression_loss #728

Open
jzpcn opened this issue May 18, 2022 · 0 comments
Open

regression_loss #728

jzpcn opened this issue May 18, 2022 · 0 comments

Comments

@jzpcn
Copy link

jzpcn commented May 18, 2022

regression_loss = torch.where(
torch.le(regression_diff, 1.0 / 9.0),
0.5 * 9.0 * torch.pow(regression_diff, 2),
regression_diff - 0.5 / 9.0
)

why you use this method to compute reg_loss rather than the normal smooth L1 loss

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