-
Notifications
You must be signed in to change notification settings - Fork 64
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
在做批量的旋转iou计算时,计算的inter_area会出现nan值,导致loss变为nan,但是在把计算为nan的两个box的x,y,w,h,angle提出来单个计算的话就会出现正常的inter_area。请问这是什么原因导致的呢,还请解答 #37
Comments
用了amp吧 |
你好,能不能提供具体的输入参数呢?我好做一点测试。根据目前的信息来看,我感觉像是数值误差引起的问题。就像我在#36 里面说的:
我建议可以试试把x,y,w,h这几个尺寸参数进行归一化,可能会更稳定一些。 而且batch size取1的时候算出IoU=1.3429肯定是有问题的,因为IoU不应该大于1。 |
这个程序还会出现负数,我x,怎么玩 |
我在debug branch下更新了代码,你可以试试。新版本要比之前稳定一些。 |
debug一样会出现nan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: