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

Question - Why save with avg_param? #3

Open
gagandaroach opened this issue Aug 9, 2020 · 2 comments
Open

Question - Why save with avg_param? #3

gagandaroach opened this issue Aug 9, 2020 · 2 comments

Comments

@gagandaroach
Copy link

Hello. Thank you for your great work.

Why do you save the model with the average G params?

https://github.com/HYOJINPARK/MC_GAN/blob/master/Model1/trainer.py#L449

Why not use the actual generator weights?

@gagandaroach
Copy link
Author

I traced the process through StackGAN++ and subsequently this VaE design. The move is coined a "reparameterization trick" in sec 2.4 of the paper. It assists when the incoming noise is not entirely deterministic.

@HYOJINPARK
Copy link
Owner

Hi @gagandaroach
Thanks for your asking
Yes, I also follow StackGAN instruction and their code.
As you mentioned it has a purpose for stable training.
This is also written StackGAN++ paper in page4 line4

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