Open henbucuoshanghai opened 5 years ago
and the next time,try it with small lr
iter: 20 / 70000, total loss: 1.053862
rpn_loss_cls: 0.369174 rpn_loss_box: 0.111182 loss_cls: 0.190974 loss_box: 0.000000 lr: 0.000100 speed: 0.822s / iter iter: 40 / 70000, total loss: 0.851714 rpn_loss_cls: 0.277755 rpn_loss_box: 0.089165 loss_cls: 0.102262 loss_box: 0.000000 lr: 0.000100 speed: 0.554s / iter iter: 60 / 70000, total loss: 0.883730 rpn_loss_cls: 0.278216 rpn_loss_box: 0.113697 loss_cls: 0.109286 loss_box: 0.000000 lr: 0.000100 speed: 0.459s / iter iter: 80 / 70000, total loss: 0.671090 rpn_loss_cls: 0.118846 rpn_loss_box: 0.009400 loss_cls: 0.160315 loss_box: 0.000000 lr: 0.000100 speed: 0.410s / iter iter: 100 / 70000, total loss: 0.936539 rpn_loss_cls: 0.082754 rpn_loss_box: 0.006793 loss_cls: 0.320606 loss_box: 0.143858 lr: 0.000100
loss_box: 0.000000 why??????????????
big brother, i met the same problem. How you solve it? Just adjust the learning rate ? My loss_box and loss_cls both are 0.00000....
I have the same problem and have no idea how to solve it?
啊,这个是因为数据集制作错误了;图片的那个ground-truth box坐标,有的超出了图片边界,比如为-1;或者是右下角的点的横坐标小于等于左上角的横坐标(按道理应该是大于才对);我记得有个地方是可以改源码的,就可以避免这个错误,你查一下;
Emmm,dataset is wrong. Especially the cordiniate of ground-truth box. For example: x2 must larger than x1.(something like that...). if x2==x1, then width = (x2-x1)=0; a/(x2-x1)=NaN!!!
------------------ 原始邮件 ------------------ 发件人: "CRmost"<notifications@github.com>; 发送时间: 2019年12月13日(星期五) 下午3:27 收件人: "endernewton/tf-faster-rcnn"<tf-faster-rcnn@noreply.github.com>; 抄送: "庄驰"<1321985517@qq.com>; "Comment"<comment@noreply.github.com>; 主题: Re: [endernewton/tf-faster-rcnn] loss is nan (#458)
I have the same problem and have no idea how to solve it?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
谢谢你的答复!但我还遇到另一个问题,就是loss_cl和loss_box一直到训练结束都为0 ?这是为什么?是我的迭代次数不够吗??我只有990张训练数据,一共迭代了13000次。
------------------ 原始邮件 ------------------ 发件人: "jamessmith123456"<notifications@github.com>; 发送时间: 2019年12月13日(星期五) 下午4:00 收件人: "endernewton/tf-faster-rcnn"<tf-faster-rcnn@noreply.github.com>; 抄送: "CR"<2321163312@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [endernewton/tf-faster-rcnn] loss is nan (#458)
啊,这个是因为数据集制作错误了;图片的那个ground-truth box坐标,有的超出了图片边界,比如为-1;或者是右下角的点的横坐标小于等于左上角的横坐标(按道理应该是大于才对);我记得有个地方是可以改源码的,就可以避免这个错误,你查一下;
Emmm,dataset is wrong. Especially the cordiniate of ground-truth box. For example: x2 must larger than x1.(something like that...). if x2==x1, then width = (x2-x1)=0; a/(x2-x1)=NaN!!!
------------------ 原始邮件 ------------------
发件人: "CRmost"<notifications@github.com>;
发送时间: 2019年12月13日(星期五) 下午3:27
收件人: "endernewton/tf-faster-rcnn"<tf-faster-rcnn@noreply.github.com>;
抄送: "庄驰"<1321985517@qq.com>; "Comment"<comment@noreply.github.com>;
主题: Re: [endernewton/tf-faster-rcnn] loss is nan (#458)
I have the same problem and have no idea how to solve it?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
感觉990张确实有点少...
------------------ 原始邮件 ------------------ 发件人: "CRmost"<notifications@github.com>; 发送时间: 2019年12月13日(星期五) 下午4:04 收件人: "endernewton/tf-faster-rcnn"<tf-faster-rcnn@noreply.github.com>; 抄送: "庄驰"<1321985517@qq.com>; "Comment"<comment@noreply.github.com>; 主题: Re: [endernewton/tf-faster-rcnn] loss is nan (#458)
谢谢你的答复!但我还遇到另一个问题,就是loss_cl和loss_box一直到训练结束都为0 ?这是为什么?是我的迭代次数不够吗??我只有990张训练数据,一共迭代了13000次。
------------------ 原始邮件 ------------------ 发件人: "jamessmith123456"<notifications@github.com>; 发送时间: 2019年12月13日(星期五) 下午4:00 收件人: "endernewton/tf-faster-rcnn"<tf-faster-rcnn@noreply.github.com>; 抄送: "CR"<2321163312@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [endernewton/tf-faster-rcnn] loss is nan (#458)
啊,这个是因为数据集制作错误了;图片的那个ground-truth box坐标,有的超出了图片边界,比如为-1;或者是右下角的点的横坐标小于等于左上角的横坐标(按道理应该是大于才对);我记得有个地方是可以改源码的,就可以避免这个错误,你查一下;
Emmm,dataset is wrong. Especially the cordiniate of ground-truth box. For example: x2 must larger than x1.(something like that...).&nbsp; if x2==x1, then width = (x2-x1)=0;&nbsp;
a/(x2-x1)=NaN!!!
------------------&nbsp;原始邮件&nbsp;------------------
发件人: "CRmost"<notifications@github.com&gt;;
发送时间: 2019年12月13日(星期五) 下午3:27
收件人: "endernewton/tf-faster-rcnn"<tf-faster-rcnn@noreply.github.com&gt;;
抄送: "庄驰"<1321985517@qq.com&gt;; "Comment"<comment@noreply.github.com&gt;;
主题: Re: [endernewton/tf-faster-rcnn] loss is nan (#458)
I have the same problem and have no idea how to solve it?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
iter: 20 / 70000, total loss: nan