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

Some questions about loss function. #38

Open
Nimo-zl opened this issue Nov 3, 2022 · 2 comments
Open

Some questions about loss function. #38

Nimo-zl opened this issue Nov 3, 2022 · 2 comments

Comments

@Nimo-zl
Copy link

Nimo-zl commented Nov 3, 2022

Thank you for sharing the great work! I have a confusion about the second stage loss function.

In "def goals_2D_per_example_calc_loss()", there has an nll_loss which caculated by "scores" and "[mapping[i]['goals_2D_labels']]", the "scores" is about dense goals, but the "[mapping[i]['goals_2D_labels']]" seems index from sparse goals. Am I misunderstanding? Why does this work?

@GentleSmile
Copy link
Member

It is updated after calculating scores of dense goal

mapping[i]['goals_2D_labels'] = np.argmin(utils.get_dis(goals_2D_dense.detach().cpu().numpy(), label[final_idx]))

@Nimo-zl
Copy link
Author

Nimo-zl commented Nov 3, 2022

OK, thank you for your replay! =^v^=

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

2 participants