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

content discriminator training vs other parts training #52

Open
CaptainPrice12 opened this issue Sep 27, 2020 · 2 comments
Open

content discriminator training vs other parts training #52

CaptainPrice12 opened this issue Sep 27, 2020 · 2 comments

Comments

@CaptainPrice12
Copy link

Hi, thanks for sharing the impressive work. I have a question about the network updating strategy in the train.py file.
For if (it + 1) % opts.d_iter != 0 and it < len(train_loader) - 2:

if (it + 1) % opts.d_iter != 0 and it < len(train_loader) - 2:

if d_iter is set as 3, in each epoch, the content discriminator will be updated using almost 2/3 of the total batches, and the model.update_D(images_a, images_b) and model.update_EG() will be updated using only about 1/3 of total data, right?
In each epoch, the model.update_D(images_a, images_b) and model.update_EG() two parts will only be feed 1 batch in each 3, so, why don't use the same batches to update these three parts?
For example, use every batch to update these three parts, but the content discriminator part can be trained multiple times (e.g. 2 times if d_iter=3) by every batch.

I am new to GAN, if I have any misunderstanding, please correct me, thanks!

@CaptainPrice12 CaptainPrice12 changed the title content discriminator training vs other part training content discriminator training vs other parts training Sep 27, 2020
@GuoLanqing
Copy link

Hi, have you solved this problem? I am also confused about this training setting.

@CaptainPrice12
Copy link
Author

Hi, have you solved this problem? I am also confused about this training setting.

I am still not sure why using this strategy, In many other works, I think they used the same data to train adversarial parts and main parts.
Have you got any idea about this?

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