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

Why you saved the entire model instead of state_dict .. ? #59

Open
PouyaNF opened this issue May 3, 2022 · 1 comment
Open

Why you saved the entire model instead of state_dict .. ? #59

PouyaNF opened this issue May 3, 2022 · 1 comment

Comments

@PouyaNF
Copy link

PouyaNF commented May 3, 2022

Hi Diana
for using torch.load('saved_model') there should be all modules that existed in saving time available otherwise it get an error!!

If you store a model directly via torch.save(model, file_path), you would need to restore the file and folder structure in order to load this model again!!

@PouyaNF PouyaNF changed the title Why you save the entire model instead of state_dict .. ? Why you saved the entire model instead of state_dict .. ? May 3, 2022
@puyiwen
Copy link

puyiwen commented Jun 10, 2022

Hi,have you reproduced the author's training code? After I reproduced the project given by the author, the result was not good, and then I did not know why.

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