Recent git pull includes Gan support but no relevant documentation.
I am trying to use GAN support in my faceswaps as my previous attempt of 3 days of training yeilded terrible results with 3k pictures (a good blend) for each target. I see that the python scripts are there but running them produces no output and USAGE.md has not been updated to reflect the extracting, training, and converting process for use with the GAN plugin.
Using a GPU on linux with python version 3.6.4 Latest available Faceswap.
For the training process just add:
-t GAN
For converting add:
-t GAN -c GAN
@LordVulkan does GAN require any new dependencies? And does this eliminate the option of live preview? (-p no longer works)
No new dependencies and the preview works for me.
What output log are you getting?
Neverming. I had to add bs=32. Din't hit me that the loss of preview was related to the out of memory error.
so just to clarify, add -t GAN when training and then -t GAN -c GAN when applying trained model to a directory of frames of say, a video to replace the faces?
Yes.
-t is from trainer and -c is from converter.
Is there an established threshold for loss numbers with the GAN plugin yet? I'm getting two sets of numbers now instead of just one. usually people say stop around 0.09, should I ignore the Loss_GB value or what?
I don't know much about GAN, but if I'm not wrong it uses two models, a generator and a discriminator.
Loss_GX should be the value for the generator and Loss_DX for the discriminator.
I don't know what values should be considered acceptable as the discriminator values are constantly jumping, and during my tests the generator values are stuck at around 0.17 after ~15 hours.
What GAN really does? Improving quality?
It's a different algorithm, I'm not sure it produces better results by default, it needs more resources.
More info: https://github.com/shaoanlu/faceswap-GAN
Feel free to discuss about this in https://github.com/deepfakes/faceswap-playground and/or make a Pull Request to improve documentation