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

training a question #7

Open
1962975362 opened this issue Nov 25, 2020 · 0 comments
Open

training a question #7

1962975362 opened this issue Nov 25, 2020 · 0 comments

Comments

@1962975362
Copy link

local predGeneratorLoss = criterion_adv:forward(predFake, 2 * labels_encoded)
local predGeneratorGradOut = criterion_adv:backward(predFake, 2 * labels_encoded)
local predGeneratorGradIn = adversary:backward(payloads_encoded, predGeneratorGradOut, 0)
gradOutput[1] = gradOutput[1] + opt.adversary_gradient_scale * predGeneratorGradIn

I don't know why to train the discriminator to treat the encoded picture as the real picture

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