faceswap icon indicating copy to clipboard operation
faceswap copied to clipboard

Expected results for GAN?

Open fetchlister opened this issue 8 years ago • 5 comments

I know gan is supposed to be smoother than the default trainer but there is little information about how to go about training with gan. I hear some places say it takes 8 times longer to train on gan than n the default trainer, is this true? what loss number should I shoot for in which of the 4 categories? How long can I expect to train on a good GPU (3584 cuda cores)?

Its all very confusing seeing my GAN stuck at a loss of 17 for days not knowing if it will take longer, or if I'm looking at the wrong number. I think documentation would help.

fetchlister avatar Feb 19 '18 17:02 fetchlister

I haven't seen the implementation of GANs in this project specifically, but designing a Generative Adversarial Network can be a pretty difficult task. If you reward either the Discriminator or Generator incorrectly, it can have a snowball effect where one of the agent overpowers the other and the optimization of loss stagnates. If I find the paper on it I will link it, but I remember it having to do with batch normalization...

andykdy avatar Feb 20 '18 01:02 andykdy

there is bad implement of gan in faceswap :( looks like v1 and without perceptual loss

iperov avatar Feb 20 '18 13:02 iperov

@iperov So you mean that V2:https://github.com/shaoanlu/faceswap-GAN/blob/master/FaceSwap_GAN_v2_train.ipynb should be integrated to this codebase?

ppmdo avatar Feb 20 '18 23:02 ppmdo

@ppmdo yes, with perceptual loss :)

iperov avatar Feb 21 '18 06:02 iperov

this seems to be a good start: https://github.com/deepfakes/faceswap/pull/151 But it is missing the converter yet, and I could not get the converter running myself.

petergerten avatar Feb 23 '18 06:02 petergerten