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

Load ema from checkpoint as torch.nn.Module #184

Merged
merged 1 commit into from
Feb 28, 2023
Merged

Load ema from checkpoint as torch.nn.Module #184

merged 1 commit into from
Feb 28, 2023

Conversation

KSGulin
Copy link

@KSGulin KSGulin commented Feb 28, 2023

The ema saved in the checkpoint is only ever used to re-load the state of the ema for a resume run, in which case it's expected that the checkpoint is of type torch.nn.Module. This PR fixes the loading issue that comes up with a simple change to the NM ema loading logic

@KSGulin KSGulin self-assigned this Feb 28, 2023
@bfineran bfineran merged commit bd2bc0b into master Feb 28, 2023
@KSGulin KSGulin mentioned this pull request Feb 28, 2023
KSGulin added a commit that referenced this pull request Feb 28, 2023
KSGulin added a commit that referenced this pull request Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants