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

Problem with AttnGAN training #83

Closed
ecfish opened this issue Jul 9, 2020 · 1 comment
Closed

Problem with AttnGAN training #83

ecfish opened this issue Jul 9, 2020 · 1 comment

Comments

@ecfish
Copy link

ecfish commented Jul 9, 2020

Thanks for this excellent work! I have some problem with AttnGAN training. I am not sure whether i have a correct thought of the following code.

/code/trainer.py
line 246 ~ 271
imgs, captions, cap_lens, class_ids, keys = prepare_data(data)
errD = discriminator_loss(netsD[i], imgs[i], fake_imgs[i],
                                              sent_emb, real_labels, fake_labels)

I think netsD[i] is the ith discriminator used in AttnGAN. In paper, there are three discriminators. I also think that imgs are corresponding to captions and have a size equal to batch size. So, how can parameter i represents both the netsD index and img index.

@ecfish ecfish closed this as completed Jul 9, 2020
@ecfish
Copy link
Author

ecfish commented Jul 9, 2020

sorry, my fault

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