Open deepfakes opened 6 years ago
I've modified the original auto-encoder into a GAN. https://github.com/shaoanlu/faceswap-GAN
btw, I tried random channel_shift on warped images and got worse results (input/output color inconsistency).
Wow ! Bravo for tackling that part !
I'm currently on Christmas duties and can't really get into this for now. You can see with @Ganonmaster what to do next. If he is ok with your proposal, we will happily add your contribution to the main repo.
Note that as touching models is a big change, maybe there will be more discussions than usual, but be sure that such contribution is precious and we will take it with the care it deserves
@Ganonmaster did you see that ? What do you think about it ?
The results look very promising. Especially the improvement in the eyeball direction is astonishing. I do not have a any experience with GANs myself, so it is difficult for me to comment on an academic level. 😅 Looking through the jupyter notebooks, I think this code can, and should be incorporated. However, because it would result in a non-trivial increase training time, I would opt to do so in a way that does not conflict with the existing model, but still allow the user to test it out should they want to.
Great then !
I'm thinking about a plugin architecture, already for alignment. It won't be very sophisticated but at least it will enable us to have different behaviors.
There are 2 conceivable problems in my mind about merging the GAN model into the main repo:
model.fit(...)
or model.train_on_batch(...)
as usual keras code looks like. The first one won't take much effort since there are lots of keras GAN examples on github. But the VGGFace one is more convolved. I can't come up with a good solution at the moment. Or perhaps we just put the jupyter notebook into a ./model_zoo
or ./examples
folder or playground repo where people who got interested will look at, instead of merging my model into the main pipeline.
Anyway, there's no particular hurry, let the bullets fly. 😄 I believe there will soon be more people releasing their models/architectures.
Someone posted this on Reddit: https://www.reddit.com/r/deepfakes/comments/7n4w9p/comparison_of_loss_functions_model_decoder/
It adds some layer to the model. What's your opinion on this guys?
There are many ways to generate faces, if you find some interesting models, discuss it here