Skip to content
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

HRNetW48无法加载权重 #9

Open
Cochary opened this issue Sep 12, 2022 · 4 comments
Open

HRNetW48无法加载权重 #9

Cochary opened this issue Sep 12, 2022 · 4 comments

Comments

@Cochary
Copy link

Cochary commented Sep 12, 2022

使用提供的W48imagenet预训练权重,但backbone部分全部无法成功加载

@bubbliiiing
Copy link
Owner

pretrained = True

@Cochary
Copy link
Author

Cochary commented Sep 13, 2022

pretrained = True

train.py设置:
backbone = "hrnetv2_w48"
pretrained = True
model_path = "model_data/hrnetv2_w48_imagenet_pretrained.pth"

加载失败:
Load weights model_data/hrnetv2_w48_imagenet_pretrained.pth.

Successful Load Key: [] ……
Successful Load Key Num: 0

Fail To Load Key: ['conv1.weight', 'bn1.weight', 'bn1.bias', 'bn1.running_mean', 'bn1.running_var', 'bn1.num_batches_tracked', 'conv2.weight', 'bn2.weight', 'bn2.bias', 'bn2.running_mean', 'bn2.running_var', 'bn2.num_batches_tracked', 'layer1.0.conv1.weight', 'layer1.0.bn1.weight', 'layer1.0.bn1.bias', 'layer1.0.bn1.running_mean', 'layer1.0.bn1.running_var', 'layer1.0.bn1.num_batches_tracked', 'layer1.0.conv2.weight', 'layer1.0.bn2.weight', 'layer1.0.bn2.bias', 'layer1.0.bn2.running_mean', 'layer1.0.bn2.running_v ……
Fail To Load Key num: 1956

@bubbliiiing
Copy link
Owner

……好好看看注释呢

@ruarua6666
Copy link

我的也是这样,解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants