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

fix saving best test metrics #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix saving best test metrics #74

wants to merge 1 commit into from

Conversation

mshahbazi72
Copy link

In the test function in train_fns.py, when saving the best model based on best IS or FID, the best model is first saved, and then the state_dict is updated with the new best FID and IS values. Therefore, in the saved model's state_dict, the best FID and IS values of the previous best model is shown, instead of the current model.
This pull request will solve the issue by updating the best metrics in the state_dict before saving the best 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

Successfully merging this pull request may close these issues.

1 participant