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

hard_mining #15

Open
wangyf8848 opened this issue Jan 3, 2023 · 1 comment
Open

hard_mining #15

wangyf8848 opened this issue Jan 3, 2023 · 1 comment

Comments

@wangyf8848
Copy link

请问在ms损失中,hard_mining时调用torch.min(pos_pair_)时,pos_pair_有时长度为0报错怎么办

@wangxinrugithub
Copy link

请问在ms损失中,hard_mining时调用torch.min(pos_pair_)时,pos_pair_有时长度为0报错怎么办

我也遇到了这个问题,我加了一个判断,如果pos_pair_为0就continue。 但我现在遇到了一个新问题,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

2 participants