-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Bugfix/fix gan example #2019
Bugfix/fix gan example #2019
Conversation
Is there a way to implement caching of the generated images? Without it, the code works twice slower as we need to generate both in generator and discriminator phases. |
@armavox we moved away from hparams. |
@williamFalcon is there a way to avoid doing |
@williamFalcon ok. Good. |
@ternaus you’re right. However, the problem is that in PyTorch developers warn about that: https://pytorch.org/docs/stable/nn.html#dataparallel-layers-multi-gpu-distributed Maybe someone can propose a good idea of how to overcome this and make its own buffer for each replica. Best regards, Artem. |
@ternaus yes, easiest is to use ddp and NOT dp (dp is not recommended anyhow). However, we're working on a fix to maintain state in dp @ananyahjha93 |
@williamFalcon thanks for pointing me to this updated GAN example. |
@williamFalcon @ananyahjha93 may I see the branch, where are you working on that problem? |
@armavox This is a [wip] commit but the current look of the solution is quite different from this. So, this is not a representation of the solution we are working on right now. |
* 🐛 fixed fake example type assigning and hparams arg * fixed GAN example to work with dp, ddp., ddp_cpu * Update generative_adversarial_net.py Co-authored-by: William Falcon <waf2107@columbia.edu>
What does this PR do?
Fixes #1223
GAN example in repo was not working. Fixed typos and working in dp, and ddp mode.
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.