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

extractor.train()? #3

Open
yunsangq opened this issue Mar 2, 2021 · 0 comments
Open

extractor.train()? #3

yunsangq opened this issue Mar 2, 2021 · 0 comments

Comments

@yunsangq
Copy link

yunsangq commented Mar 2, 2021

Hi, Thanks for your code!!

extractor was not included in the optimizer parameter.
So, I think the extractor was only used for inference, but wonder why used train().
In this case, batch_norm different results than eval().
because running_mean, running_var changed when train().

self.extractor.train()

self.extractor.train()

self.optimizer = optim.Adam(self.autoencoder.parameters(), lr=self.lr, weight_decay=0)

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

1 participant