CenterFace.pytorch icon indicating copy to clipboard operation
CenterFace.pytorch copied to clipboard

损失函数

Open zhangtiantian12311 opened this issue 4 years ago • 16 comments

请问总损失一直维持在2.2,是什么问题呢,参数改了调小了初始学习率,总损失应该维持在多少大小?

zhangtiantian12311 avatar May 18 '20 01:05 zhangtiantian12311

训练损失epoch: 140 |loss 0.883822 | hm_loss 0.629608 | lm_loss 1.895640 | wh_loss 0.045801 | off_loss 0.060070 | time 18.666667 |,就是lm_loss 一直下不去,最后检测关键点也不是很准

zhangcj13 avatar May 19 '20 05:05 zhangcj13

我想问一下训练的时候,下载模型'mobilenet_v2': 'https://download.pytorch.org/models/mobilenet_v2-b0353104.pth',下载到一半多就一直不动了,你有没有遇见这种情况啊

XinyingZheng avatar May 21 '20 06:05 XinyingZheng

没有,我下载还挺快的

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: XinyingZheng <[email protected]> 发送时间: 2020年5月21日 14:41 收件人: chenjun2hao/CenterFace.pytorch <[email protected]> 抄送: zhangtiantian12311 <[email protected]>, Author <[email protected]> 主题: 回复:[chenjun2hao/CenterFace.pytorch] 损失函数 (#19)

zhangtiantian12311 avatar May 21 '20 06:05 zhangtiantian12311

好吧,我的很慢,可能是服务器的问题,那应该是预训练模型吧,我已经取消加载预训练模型了。 那你在测试的时候,运行test_wider_face.py  ,有没有遇到No module named 'external.nms'问题,我编译nms的时候遇到     build/temp.linux-x86_64-3.6/nms.o: file not recognized: file format not recognized collect2: error: ld returned 1 exit status error: command 'gcc' failed with exit status 1 Makefile:2: recipe for target 'all' failed make: *** [all] Error 1    感觉应该是环境问题,程序里的enviroment.yaml我只安装了conda的部分,pip的部分也需要么,抱歉我问的有点多,新手求帮助,非常感谢。。

------------------ 原始邮件 ------------------ 发件人: "zhangtiantian12311"<[email protected]>; 发送时间: 2020年5月21日(星期四) 下午2:42 收件人: "chenjun2hao/CenterFace.pytorch"<[email protected]>; 抄送: "1475646392"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [chenjun2hao/CenterFace.pytorch] 损失函数 (#19)

没有,我下载还挺快的

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: XinyingZheng <[email protected]&gt; 发送时间: 2020年5月21日 14:41 收件人: chenjun2hao/CenterFace.pytorch <[email protected]&gt; 抄送: zhangtiantian12311 <[email protected]&gt;, Author <[email protected]&gt; 主题: 回复:[chenjun2hao/CenterFace.pytorch] 损失函数 (#19) — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

XinyingZheng avatar May 21 '20 06:05 XinyingZheng

你可以关注一下centernet,按照它的步骤把前面部分安装

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: XinyingZheng <[email protected]> 发送时间: 2020年5月21日 14:58 收件人: chenjun2hao/CenterFace.pytorch <[email protected]> 抄送: zhangtiantian12311 <[email protected]>, Author <[email protected]> 主题: 回复:[chenjun2hao/CenterFace.pytorch] 损失函数 (#19)

好吧,我的很慢,可能是服务器的问题,那应该是预训练模型吧,我已经取消加载预训练模型了。 那你在测试的时候,运行test_wider_face.py&nbsp; ,有没有遇到No module named 'external.nms'问题,我编译nms的时候遇到&nbsp; &nbsp; &nbsp;build/temp.linux-x86_64-3.6/nms.o: file not recognized: file format not recognized collect2: error: ld returned 1 exit status error: command 'gcc' failed with exit status 1 Makefile:2: recipe for target 'all' failed make: *** [all] Error 1&nbsp; &nbsp; 感觉应该是环境问题,程序里的enviroment.yaml我只安装了conda的部分,pip的部分也需要么,抱歉我问的有点多,新手求帮助,非常感谢。。

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"zhangtiantian12311"<[email protected]&gt;; 发送时间:&nbsp;2020年5月21日(星期四) 下午2:42 收件人:&nbsp;"chenjun2hao/CenterFace.pytorch"<[email protected]&gt;; 抄送:&nbsp;"1475646392"<[email protected]&gt;;"Comment"<[email protected]&gt;; 主题:&nbsp;Re: [chenjun2hao/CenterFace.pytorch] 损失函数 (#19)

没有,我下载还挺快的

发自我的iPhone

------------------ 原始邮件 ------------------
发件人: XinyingZheng <[email protected]&amp;gt;
发送时间: 2020年5月21日 14:41
收件人: chenjun2hao/CenterFace.pytorch <[email protected]&amp;gt;
抄送: zhangtiantian12311 <[email protected]&amp;gt;, Author <[email protected]&amp;gt;
主题: 回复:[chenjun2hao/CenterFace.pytorch] 损失函数 (#19)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

zhangtiantian12311 avatar May 21 '20 07:05 zhangtiantian12311

好的,我试试,谢谢~

------------------ 原始邮件 ------------------ 发件人: "zhangtiantian12311"<[email protected]>; 发送时间: 2020年5月21日(星期四) 下午3:00 收件人: "chenjun2hao/CenterFace.pytorch"<[email protected]>; 抄送: "1475646392"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [chenjun2hao/CenterFace.pytorch] 损失函数 (#19)

你可以关注一下centernet,按照它的步骤把前面部分安装

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: XinyingZheng <[email protected]&gt; 发送时间: 2020年5月21日 14:58 收件人: chenjun2hao/CenterFace.pytorch <[email protected]&gt; 抄送: zhangtiantian12311 <[email protected]&gt;, Author <[email protected]&gt; 主题: 回复:[chenjun2hao/CenterFace.pytorch] 损失函数 (#19)

好吧,我的很慢,可能是服务器的问题,那应该是预训练模型吧,我已经取消加载预训练模型了。
那你在测试的时候,运行test_wider_face.py&amp;nbsp; ,有没有遇到No module named 'external.nms'问题,我编译nms的时候遇到&amp;nbsp; &amp;nbsp; &amp;nbsp;build/temp.linux-x86_64-3.6/nms.o: file not recognized: file format not recognized collect2: error: ld returned 1 exit status error: command 'gcc' failed with exit status 1 Makefile:2: recipe for target 'all' failed make: *** [all] Error 1&amp;nbsp; &amp;nbsp;
感觉应该是环境问题,程序里的enviroment.yaml我只安装了conda的部分,pip的部分也需要么,抱歉我问的有点多,新手求帮助,非常感谢。。

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人:&amp;nbsp;"zhangtiantian12311"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2020年5月21日(星期四) 下午2:42
收件人:&amp;nbsp;"chenjun2hao/CenterFace.pytorch"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"1475646392"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [chenjun2hao/CenterFace.pytorch] 损失函数 (#19)

没有,我下载还挺快的

发自我的iPhone

------------------ 原始邮件 ------------------
发件人: XinyingZheng <[email protected]&amp;amp;gt;
发送时间: 2020年5月21日 14:41
收件人: chenjun2hao/CenterFace.pytorch <[email protected]&amp;amp;gt;
抄送: zhangtiantian12311 <[email protected]&amp;amp;gt;, Author <[email protected]&amp;amp;gt;
主题: 回复:[chenjun2hao/CenterFace.pytorch] 损失函数 (#19)

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you authored the thread. 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.

XinyingZheng avatar May 21 '20 07:05 XinyingZheng

不用给我发数据了,我有了

------------------ 原始邮件 ------------------ 发件人: "zhangtiantian12311"<[email protected]>; 发送时间: 2020年5月21日(星期四) 下午3:00 收件人: "chenjun2hao/CenterFace.pytorch"<[email protected]>; 抄送: "1475646392"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [chenjun2hao/CenterFace.pytorch] 损失函数 (#19)

你可以关注一下centernet,按照它的步骤把前面部分安装

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: XinyingZheng <[email protected]&gt; 发送时间: 2020年5月21日 14:58 收件人: chenjun2hao/CenterFace.pytorch <[email protected]&gt; 抄送: zhangtiantian12311 <[email protected]&gt;, Author <[email protected]&gt; 主题: 回复:[chenjun2hao/CenterFace.pytorch] 损失函数 (#19)

好吧,我的很慢,可能是服务器的问题,那应该是预训练模型吧,我已经取消加载预训练模型了。
那你在测试的时候,运行test_wider_face.py&amp;nbsp; ,有没有遇到No module named 'external.nms'问题,我编译nms的时候遇到&amp;nbsp; &amp;nbsp; &amp;nbsp;build/temp.linux-x86_64-3.6/nms.o: file not recognized: file format not recognized collect2: error: ld returned 1 exit status error: command 'gcc' failed with exit status 1 Makefile:2: recipe for target 'all' failed make: *** [all] Error 1&amp;nbsp; &amp;nbsp;
感觉应该是环境问题,程序里的enviroment.yaml我只安装了conda的部分,pip的部分也需要么,抱歉我问的有点多,新手求帮助,非常感谢。。

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人:&amp;nbsp;"zhangtiantian12311"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2020年5月21日(星期四) 下午2:42
收件人:&amp;nbsp;"chenjun2hao/CenterFace.pytorch"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"1475646392"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [chenjun2hao/CenterFace.pytorch] 损失函数 (#19)

没有,我下载还挺快的

发自我的iPhone

------------------ 原始邮件 ------------------
发件人: XinyingZheng <[email protected]&amp;amp;gt;
发送时间: 2020年5月21日 14:41
收件人: chenjun2hao/CenterFace.pytorch <[email protected]&amp;amp;gt;
抄送: zhangtiantian12311 <[email protected]&amp;amp;gt;, Author <[email protected]&amp;amp;gt;
主题: 回复:[chenjun2hao/CenterFace.pytorch] 损失函数 (#19)

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you authored the thread. 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.

XinyingZheng avatar May 22 '20 03:05 XinyingZheng

你的邮箱呢

------------------ 原始邮件 ------------------ 发件人: "lihua-hua"<[email protected]>; 发送时间: 2020年6月24日(星期三) 上午10:20 收件人: "chenjun2hao/CenterFace.pytorch"<[email protected]>; 抄送: "1475646392"<[email protected]>;"Mention"<[email protected]>; 主题: Re: [chenjun2hao/CenterFace.pytorch] 损失函数 (#19)

@XinyingZheng @zhangtiantian12311 @zhangcj13 可以给我发一下wider_face的数据集吗,作者下载数据的链接已经失效了,谢谢.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

XinyingZheng avatar Jun 24 '20 04:06 XinyingZheng

@XinyingZheng 我的邮箱是[email protected],谢谢

lihua-hua avatar Jun 24 '20 06:06 lihua-hua

@XinyingZheng 你好,我从epoch 3开始就loss就变成nan了,后续的epoch也都是nan,请问遇到这样的问题一般是什么原因呢?

iytChen avatar Jul 05 '20 06:07 iytChen

@zhangcj13 你好,我从epoch 3开始就loss就变成nan了,后续的epoch也都是nan,请问遇到这样的问题一般是什么原因呢?

iytChen avatar Jul 05 '20 06:07 iytChen

@iytChen 可能是学习率的问题,你可以参与考一下 https://github.com/chenjun2hao/CenterFace.pytorch/issues/24

lihua-hua avatar Jul 06 '20 01:07 lihua-hua

学习率的问题,你往小调一下

------------------ 原始邮件 ------------------ 发件人: "iytChen"<[email protected]>; 发送时间: 2020年7月5日(星期天) 下午2:06 收件人: "chenjun2hao/CenterFace.pytorch"<[email protected]>; 抄送: "1475646392"<[email protected]>;"Mention"<[email protected]>; 主题: Re: [chenjun2hao/CenterFace.pytorch] 损失函数 (#19)

@XinyingZheng 你好,我从epoch 3开始就loss就变成nan了,后续的epoch也都是nan,请问遇到这样的问题一般是什么原因呢?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

XinyingZheng avatar Jul 06 '20 08:07 XinyingZheng

各位大神,我利用demo跑出来的dets,有很多点的坐标是负数,这个是怎么回事呢?有大佬知道吗 @lihua-hua @XinyingZheng @zhangcj13 @zhangtiantian12311 @iytChen

wuxiaolianggit avatar Jul 31 '20 02:07 wuxiaolianggit

各位大神,demo跑出来的dets的范围也是超出了图片像素坐标的范围,这个算法感觉预测出来是不能用啊

wuxiaolianggit avatar Jul 31 '20 03:07 wuxiaolianggit

训练损失epoch: 140 |loss 0.883822 | hm_loss 0.629608 | lm_loss 1.895640 | wh_loss 0.045801 | off_loss 0.060070 | time 18.666667 |,就是lm_loss 一直下不去,最后检测关键点也不是很准

请问您这个lr 、bs、input_size 分别设置是多少呢?是继承的作者的预训练模型继续训练的吗?谢谢。

RRRRRayyyyy avatar Nov 08 '23 07:11 RRRRRayyyyy