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

linear_sum_assignment()报错ValueError: matrix contains invalid numeric entries #527

Open
Shu-Ang opened this issue Dec 26, 2024 · 2 comments

Comments

@Shu-Ang
Copy link

Shu-Ang commented Dec 26, 2024

在自定义数据集训练,matchers.py中line178的linear_sum_assignment()报错ValueError: matrix contains invalid numeric entries
image
数据集是没问题的,在其他网络中能正常训练。请问是什么原因?

@lyuwenyu
Copy link
Owner

lyuwenyu commented Dec 27, 2024

可以看下变量C里面是不是有inf; 可以检查下框框格式是不是coco类型

@Shu-Ang
Copy link
Author

Shu-Ang commented Jan 9, 2025

可以看下变量C里面是不是有inf; 可以检查下框框格式是不是coco类型

我看了一下C里面有nan,具体原因是DETRHead里面这个outputs_logit的值全是nan
image
我把num_denoising设置为0就可以正常训练了

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