版面分析模型加载很多警告 #14858
Unanswered
Kyo1234567
asked this question in
Q&A
版面分析模型加载很多警告
#14858
Replies: 1 comment
-
看你的日志,警告信息表明预训练权重文件中的某些参数未被加载,或者由于形状不匹配导致某些参数无法正确映射到模型结构。这通常发生在以下几种情况下: 可能的原因
解决方案1. 确保
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🔎 Search before asking
🐛 Bug (问题描述)
我在训练PaddleDetection的版面分析,使用的配置文件是picodet_lcnet_cdla_layout,遇到很多警告,似乎模型和配置不匹配:
[03/04 10:00:48] ppdet.utils.checkpoint INFO: ['fc.bias', 'fc.weight', 'last_conv.weight'] in pretrained weight is not used in the model, and its will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn._mean is unmatched with the shape [64] in model neck.bottom_up_blocks.0.blocks.0.conv1.bn._mean. And the weight conv1.bn._mean will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn._variance is unmatched with the shape [64] in model neck.bottom_up_blocks.0.blocks.0.conv1.bn._variance. And the weight conv1.bn._variance will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn.bias is unmatched with the shape [64] in model neck.bottom_up_blocks.0.blocks.0.conv1.bn.bias. And the weight conv1.bn.bias will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn.weight is unmatched with the shape [64] in model neck.bottom_up_blocks.0.blocks.0.conv1.bn.weight. And the weight conv1.bn.weight will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16, 3, 3, 3] in pretrained weight conv1.conv.weight is unmatched with the shape [64, 64, 1, 1] in model neck.bottom_up_blocks.0.blocks.0.conv1.conv.weight. And the weight conv1.conv.weight will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn._mean is unmatched with the shape [64] in model neck.bottom_up_blocks.1.blocks.0.conv1.bn._mean. And the weight conv1.bn._mean will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn._variance is unmatched with the shape [64] in model neck.bottom_up_blocks.1.blocks.0.conv1.bn._variance. And the weight conv1.bn._variance will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn.bias is unmatched with the shape [64] in model neck.bottom_up_blocks.1.blocks.0.conv1.bn.bias. And the weight conv1.bn.bias will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn.weight is unmatched with the shape [64] in model neck.bottom_up_blocks.1.blocks.0.conv1.bn.weight. And the weight conv1.bn.weight will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16, 3, 3, 3] in pretrained weight conv1.conv.weight is unmatched with the shape [64, 64, 1, 1] in model neck.bottom_up_blocks.1.blocks.0.conv1.conv.weight. And the weight conv1.conv.weight will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn._mean is unmatched with the shape [64] in model neck.top_down_blocks.0.blocks.0.conv1.bn._mean. And the weight conv1.bn._mean will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn._variance is unmatched with the shape [64] in model neck.top_down_blocks.0.blocks.0.conv1.bn._variance. And the weight conv1.bn._variance will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn.bias is unmatched with the shape [64] in model neck.top_down_blocks.0.blocks.0.conv1.bn.bias. And the weight conv1.bn.bias will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn.weight is unmatched with the shape [64] in model neck.top_down_blocks.0.blocks.0.conv1.bn.weight. And the weight conv1.bn.weight will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16, 3, 3, 3] in pretrained weight conv1.conv.weight is unmatched with the shape [64, 64, 1, 1] in model neck.top_down_blocks.0.blocks.0.conv1.conv.weight. And the weight conv1.conv.weight will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn._mean is unmatched with the shape [64] in model neck.top_down_blocks.1.blocks.0.conv1.bn._mean. And the weight conv1.bn._mean will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn._variance is unmatched with the shape [64] in model neck.top_down_blocks.1.blocks.0.conv1.bn._variance. And the weight conv1.bn._variance will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn.bias is unmatched with the shape [64] in model neck.top_down_blocks.1.blocks.0.conv1.bn.bias. And the weight conv1.bn.bias will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16] in pretrained weight conv1.bn.weight is unmatched with the shape [64] in model neck.top_down_blocks.1.blocks.0.conv1.bn.weight. And the weight conv1.bn.weight will not be loaded
[03/04 10:00:48] ppdet.utils.checkpoint INFO: The shape [16, 3, 3, 3] in pretrained weight conv1.conv.weight is unmatched with the shape [64, 64, 1, 1] in model neck.top_down_blocks.1.blocks.0.conv1.conv.weight. And the weight conv1.conv.weight will not be loaded
🏃♂️ Environment (运行环境)
windows 10, paddlepaddle-gpu 2.6.1
🌰 Minimal Reproducible Example (最小可复现问题的Demo)
无
Beta Was this translation helpful? Give feedback.
All reactions