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
Hi @Britefury, in optim_weight_ema.py, for p, src_p in zip(self.params, self.src_params): p.data[:] = src_p.data[:] this line doesn't seem to really deep copy the student model, so teacher and student may be initialized differently.
The text was updated successfully, but these errors were encountered:
Yeah, I think I know what you mean.
Thanks for spotting it.
My mean teacher models in my other projects now use state_dict() and load_state_dict() for this reason.
Hi @Britefury, in optim_weight_ema.py,
for p, src_p in zip(self.params, self.src_params): p.data[:] = src_p.data[:]
this line doesn't seem to really deep copy the student model, so teacher and student may be initialized differently.The text was updated successfully, but these errors were encountered: