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

训练时losses损失数组没有数据的情况 #64

Open
hongtaofly opened this issue Dec 1, 2021 · 3 comments
Open

训练时losses损失数组没有数据的情况 #64

hongtaofly opened this issue Dec 1, 2021 · 3 comments

Comments

@hongtaofly
Copy link

1638342459(1)

在第一个epoch中,已经加载了100组图片并且计算出了损失,但是中间缺 出错:assert losses.numel() != 0。打印了一下发现,当时的损失数组内部没有数据,请问这是什么原因呢?如您回答,不胜感激

@xiaobai111111223
Copy link

1638342459(1)

在第一个epoch中,已经加载了100组图片并且计算出了损失,但是中间缺 出错:assert losses.numel() != 0。打印了一下发现,当时的损失数组内部没有数据,请问这是什么原因呢?如您回答,不胜感激

请问您解决了吗?

@hongtaofly
Copy link
Author

hongtaofly commented Apr 18, 2022 via email

@yeluohuazhifou
Copy link

计算iou_loss只计算正样本的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

3 participants