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

Is pretrained weight used? #34

Open
XAVILLA opened this issue Oct 16, 2021 · 3 comments
Open

Is pretrained weight used? #34

XAVILLA opened this issue Oct 16, 2021 · 3 comments

Comments

@XAVILLA
Copy link

XAVILLA commented Oct 16, 2021

Hi, in train.md you mentioned that we need to download the ImageNet-pretrained HRNet backbone model from the original authors' OneDrive. After downloading the file, I assumed the path to this weight should be specified as "weight" in config yaml file to be used as the initial weight? However the model keys don't seem to match, so I'm confused where should I use the pertained HRNET model.
Looking forward to your response

@johnwlambert
Copy link
Collaborator

Hi @XAVILLA, thanks for your interest in our work.

Which training config are you using? Are you running train.py?

@XAVILLA
Copy link
Author

XAVILLA commented Oct 18, 2021

Thanks for getting back to me so quickly!
Yes I'm running train.py, and using mseg_semantic/config/train/1080_release/mseg-relabeled-1m.yaml. Just wondering where should the ImageNet-pretrained HRNet backbone model be stored after download it, and where to specify the path to this file in config.

@XAVILLA
Copy link
Author

XAVILLA commented Oct 20, 2021

I tried putting path to pertained weight in args.weight but got "KeyError: 'state_dict' "
Also tried changing model.load_state_dict(checkpoint['state_dict']) to model.load_state_dict(checkpoint) but got a bunch of missing keys. Please let me know what I'm doing wrong. Thanks!

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