-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
请问config里面的model.pretrained和model.backbone.pretrained的区别是什么? #3476
Comments
前者属于HRNet_W18,后者属于FCN |
@MooTong123 |
所以说是得下载两个模型?
还是说直接下载一个performance里面,都放到这两个里面?因为只放到model.pretrained是跑不起来的,model.backbone.pretrained是必须要要有一个模型的。 所以下面这么放是可以的吗?
|
还是说performance的model直接放到model.backbone.pretrained里?model.pretrained就不加了?所以哪种形式是正确的?
|
backbone一般使用预训练权重,用于在下游任务中进行训练 一般训练使用预训练权重,一般加在内层即可,某些情况下也可以加在外层 infer或eval可以在命令行中传入整体权重地址,无需修改 另外外层权重会覆盖内层权重,只需添加一个即可 |
@Asthestarsfalll 比如,我是一个人像的分割任务,用labelme进行分割的,然后自动生成了class_names.txt。
然后我进行训练评估,最后生成的评价指标如下:
比如Class Precision指标,0.9922是指_background_的,还是人像的?这个顺序是根据这个class_names.txt来的吗?但我看源码,没有导入这个class_names.txt这个文件啊,所以这个顺序是怎么确定的?比如有多类的话,那就更分不清了指代的是哪一类了? |
我也想知道这个问题 |
@Asthestarsfalll 外层权重覆盖了内层权重, |
@Daniel-969 需要看具体情况,如果FCN_pretrained包含了所有参数的权重,内层就没有必要再加载了;如果FCN_pretrained只包含了一部分内层就需要加载。因此最简单的方式就是内外都加载权重,重复的即会覆盖。 |
|
@Asthestarsfalll 好的好的,因为只看了网络代码,还没看推理代码所以不是很懂,谢谢解答。还有就是我看代码里面好像是用了三个uafm模块,但论文里面的图上只有两个uafm模块,不知道是不是我代码看错了。见此 |
问题确认 Search before asking
请提出你的问题 Please ask your question
请问config里面的model.pretrained和model.backbone.pretrained的区别是什么?我下载了一个预训练模型,是把这个文件地址放到model.pretrained还是model.backbone.pretrained呢?
The text was updated successfully, but these errors were encountered: