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

Semantic segmentation Pretrained model? #8

Open
wuyuanmm opened this issue Jul 7, 2022 · 1 comment
Open

Semantic segmentation Pretrained model? #8

wuyuanmm opened this issue Jul 7, 2022 · 1 comment

Comments

@wuyuanmm
Copy link

wuyuanmm commented Jul 7, 2022

I use upernet_mae_swin_tiny_256_mask...py, but when I use checkpoint-99-model.pth as the backbone pretrained model. It reports this:

mmseg - WARNING - The model and loaded state dict do not match exactly
unexpected key in source state_dict: fc_norm.weight, fc_norm.bias, head.weight, head.bias

when trainning with this model, Gradient overflow.

@implus
Copy link
Owner

implus commented Aug 2, 2022

Hi, we do not observe the gradient problem when training upernet using the pre-trained model. The message is correct since segmentation model indeed doesnot need fc and head layers of the pre-trained classification model.

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

2 participants