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

Why don't detach fake while updating D? #66

Open
FusionLi opened this issue Jun 23, 2021 · 0 comments
Open

Why don't detach fake while updating D? #66

FusionLi opened this issue Jun 23, 2021 · 0 comments

Comments

@FusionLi
Copy link

For line 169 in UGATIT.py

fake_A2B, _, _ = self.genA2B(real_A)
, why don't we use detach to stop gradient from G, as similar to implementation of pix2pix and cyclegan: https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix/blob/f13aab8148bd5f15b9eb47b690496df8dadbab0c/models/pix2pix_model.py#L94

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