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

error, how to figure out, I can't run this demo #11

Open
shuzizihemu opened this issue Oct 23, 2022 · 4 comments
Open

error, how to figure out, I can't run this demo #11

shuzizihemu opened this issue Oct 23, 2022 · 4 comments

Comments

@shuzizihemu
Copy link

image

@TD-wzw
Copy link

TD-wzw commented Nov 1, 2022

报错原因是因为在Loss.py中的self.D_optimizer.step()这一句的存在
可以把self.D_optimizer传出去,在G_loss.backward()之后再去更新

@Aspen0309
Copy link

报错原因是因为在Loss.py中的self.D_optimizer.step()这一句的存在 可以把self.D_optimizer传出去,在G_loss.backward()之后再去更新

您好,我传出去之后输出结果都是黑图,可以贴下你的代码嘛

@shallweiwei
Copy link

I can share a new way here.You can use detach when calculate dfake for D_loss().And after D_loss had backward,then calculate another dfake using discriminator for G_loss().

@ray7jq
Copy link

ray7jq commented Mar 27, 2023

您好,您能贴出你的代码吗?

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

5 participants