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

Resaving egovlp.pth to only contain state_dict #11

Closed
gzhihongwei opened this issue Jan 4, 2023 · 3 comments
Closed

Resaving egovlp.pth to only contain state_dict #11

gzhihongwei opened this issue Jan 4, 2023 · 3 comments

Comments

@gzhihongwei
Copy link

Can the pretrained model (i.e. egovlp.pth) be saved with just state_dict? I reimplemented this model, but was having a hard time loading the checkpoint in my implementation due to config I believe. Besides, I don't believe that those are needed at inference time either. Thanks!

@QinghongLin
Copy link
Collaborator

Hi @gzhihongwei , thanks for your interest, I have put this issue in TDL. I will update when I am done.

@shhuangcoder
Copy link

Hello, has this problem been solved?

@gzhihongwei
Copy link
Author

@shhuangcoder The workaround that I found was to import parse_config.py, load the checkpoint, then resave another checkpoint with just state_dict

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