HiDDeN icon indicating copy to clipboard operation
HiDDeN copied to clipboard

training a question

Open 1962975362 opened this issue 4 years ago • 0 comments

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

1962975362 avatar Nov 25 '20 11:11 1962975362