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

'collections. OrderedDict' object has no attribute 'to'. #1

Closed
hitzhangyu opened this issue Jul 25, 2022 · 2 comments
Closed

'collections. OrderedDict' object has no attribute 'to'. #1

hitzhangyu opened this issue Jul 25, 2022 · 2 comments

Comments

@hitzhangyu
Copy link

HI,
The work is amazing, but I have a problem using the pretrain_models:'collections. OrderedDict' object has no attribute 'to'.
It seems that only the "model.state_dict()" is provided. Did the author use the “torch.save(model.state_dict(),model_path)”
instead of "torch.save(model,' save_path')" when saving the model?

@amberwangyili
Copy link
Owner

amberwangyili commented Jul 29, 2022

Thanks very much for your attention!
"Did the author use the “torch.save(model.state_dict(),model_path)” instead of "torch.save(model,' save_path')" when saving the model?" ---- Yes, when saving the model, only model.state_dict() is provided.
The released pretrained weights is not the official version. The official code & model checkpoint with configurations will be released soon.

@hitzhangyu
Copy link
Author

Thanks for your reply!

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