tensorflow-serving-yolov3 icon indicating copy to clipboard operation
tensorflow-serving-yolov3 copied to clipboard

请问不使用预训练权重文件,如何初始化权重然后训练这个模型呢?

Open nengbunengzhengdianqi opened this issue 5 years ago • 10 comments

nengbunengzhengdianqi avatar Nov 26 '20 09:11 nengbunengzhengdianqi

你的意思是不加载预训练模型么, 还是加载自己的权重进行训练

Byronnar avatar Mar 26 '21 02:03 Byronnar

是的同学,请问在不使用预训练权重的情况下,怎么对模型进行训练呢?

在 2021年3月26日,10:30,Byronnar @.***> 写道:

 你的意思是不加载预训练模型么, 还是加载自己的权重进行训练

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

nengbunengzhengdianqi avatar Mar 26 '21 03:03 nengbunengzhengdianqi

您好, 将config.py里面 __C.TRAIN.INITIAL_WEIGHT = "./checkpoint/yolov3_coco_demo.ckpt" 这一行注释掉就可以了.

Byronnar avatar Mar 26 '21 09:03 Byronnar

请问不需要初始的权重吗?

在 2021年3月26日,17:27,Byronnar @.***> 写道:

 您好, 将config.py里面 __C.TRAIN.INITIAL_WEIGHT = "./checkpoint/yolov3_coco_demo.ckpt" 这一行注释掉就可以了.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

nengbunengzhengdianqi avatar Mar 26 '21 09:03 nengbunengzhengdianqi

我的意思是把 这个 "./checkpoint/yolov3_coco_demo.ckpt" 换成 空的"", 训练的时候就是从头开始训练了. 请问你为什么不要预训练权重呢

Byronnar avatar Mar 26 '21 09:03 Byronnar

请问如果不用预训练权重初始化,原来的权重是随机给的吗?因为我要检测的其中一类目标类别不在预训练集类别里,所以在检测它与其他目标类别时,要避免数据不平衡问题

在 2021年3月26日,17:46,Byronnar @.***> 写道:

 我的意思是把 这个 "./checkpoint/yolov3_coco_demo.ckpt" 换成 空的"", 训练的时候就是从头开始训练了. 请问你为什么不要预训练权重呢

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

nengbunengzhengdianqi avatar Mar 26 '21 10:03 nengbunengzhengdianqi

你好, 检测的其中一类目标类别不在预训练集类别里也没关系的, 不会导致效果变差, 这是迁移学习, 会学习里面的共同特征的, 不用担心, 你可以先看一下迁移学习的工作原理.

Byronnar avatar Mar 29 '21 04:03 Byronnar

好的,明白了,谢谢您的耐心回复,非常感谢您!

在 2021年3月29日,12:43,Byronnar @.***> 写道:

 你好, 检测的其中一类目标类别不在预训练集类别里也没关系的, 不会导致效果变差, 这是迁移学习, 会学习里面的共同特征的, 不用担心, 你可以先看一下迁移学习的工作原理.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

nengbunengzhengdianqi avatar Mar 29 '21 04:03 nengbunengzhengdianqi

请问那如果我要检测的类别有部分不属于预训练集群,所以重新写了一个yaml,其中比如原有预训练集群第一个类别是person,而我的类别person不在第一个位置放置,然后基于预训练权重迭代出来的模型识别person的话能否继承预训练权重的识别率呢

133673 avatar Dec 01 '23 07:12 133673

您好,我已经收到你的邮件,我会尽快给您回复。--连国灰

dodogoffy avatar Dec 01 '23 07:12 dodogoffy