You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Not copying the model in inference and assigning ema_weights seems incorrect. #2321
This recent commit 44f6bc8 regarding the PR #2166 removed copying the model while doing inference. Is this correct ? Aren't we substituting EMA weight to the underlying model (in the next line) which is being trained ?
I think @dasayan05 is correct here. My understanding is that the underlying parameters in the prepared model and the unwrapped model are still the same. EMAModel.copy_to will then copy the ema tensors over the non-ema tensors in the existing parameters. So every time we do this sample, we then start training over the ema values.
Yeah, this is indeed a bug. Probably with #2302 merged, we can modify the script accordingly. A working example of how it might look like in practice is available here. Is is what you had in mind?
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
Activity
patrickvonplaten commentedon Feb 13, 2023
@williamberman @patil-suraj could you take a look here?
williamberman commentedon Feb 16, 2023
I think @dasayan05 is correct here. My understanding is that the underlying parameters in the
preparedmodel and theunwrappedmodel are still the same. EMAModel.copy_to will then copy the ema tensors over the non-ema tensors in the existing parameters. So every time we do this sample, we then start training over the ema values.@patil-suraj @pcuenca is this correct?
sayakpaul commentedon Feb 16, 2023
Yeah, this is indeed a bug. Probably with #2302 merged, we can modify the script accordingly. A working example of how it might look like in practice is available here. Is is what you had in mind?
github-actions commentedon Mar 14, 2023
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
patrickvonplaten commentedon Mar 14, 2023
Is this issue solved or do we still need to do something here? cc @sayakpaul
sayakpaul commentedon Mar 15, 2023
Yeah this issue is solved now with #2302
williamberman commentedon Mar 16, 2023
I think this is still a bug as
store()andrestore()are not called in train_unconditionalpatrickvonplaten commentedon Mar 16, 2023
Thanks for the follow-up PR @williamberman !