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

Switching to eval mode after 100k iterations #14

Closed
amirbar opened this issue Aug 4, 2019 · 0 comments
Closed

Switching to eval mode after 100k iterations #14

amirbar opened this issue Aug 4, 2019 · 0 comments

Comments

@amirbar
Copy link

amirbar commented Aug 4, 2019

Hi @jcjohnson,

Thanks for sharing the code and for the great work on this.

While looking at the training code, I've came across the following line: https://github.com/google/sg2im/blob/master/scripts/train.py#L510

It seems in this line you switch the model to eval mode (although existence of batchnorm/dropout layers) and create a new optimizer instance.

I'm wondering what is the justifications for this or whether you have found this to be useful for particular reason?

Thanks you so much for your time.

Best,
Amir

@amirbar amirbar closed this as completed Aug 4, 2019
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