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

About WeightEMA #6

Open
YilinLiu97 opened this issue Feb 13, 2019 · 1 comment
Open

About WeightEMA #6

YilinLiu97 opened this issue Feb 13, 2019 · 1 comment

Comments

@YilinLiu97
Copy link

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.

@Britefury
Copy link
Owner

Hi,

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.

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