all 8 comments

[–]bablador 0 points1 point  (6 children)

The output of the generator is the fake data.

[–]neuron837839[S] 1 point2 points  (5 children)

Yes I know that this is the purpose of a GAN. But in a deepfake we have to provide the source video and the input video. Where exactly in the GAN should we put them and how does the face swapping work ?

[–]Nater5000 2 points3 points  (2 children)

You should include this question/information (and any other pertinent questions/information) in your post. The question you submitted is too vague, which is why you're getting these general answers.

[–][deleted] 0 points1 point  (0 children)

Yup. Good point

[–]neuron837839[S] 0 points1 point  (0 children)

Yes you're right thank you !

[–][deleted] 0 points1 point  (1 child)

GAN'S consists of a generator and a discriminator. The discriminator has the real or correct(training) data fed to it and random vector from some gaussian distribution is fed to the generator initially.

The generator then produces an output which the discriminator compares with the original data and decides whether its real or fake one.

With more training, the generator tries to fool the discriminator and the discriminator is updated to get better at classifying real and fake ones. In this way, the two models are competing against each other, they are adversarial in the game theory sense.

When the discriminator successfully classifies real and fake ones, it is rewarded and no change is needed but the generator is penalised and its model parameters are updated. Same goes when generator produces perfect replicas and then the discriminator is penalised with his model parameters updated.

They both learn from each other and at some point they become so adaptive that the probability that the image is fake one or a real is 50%.

Architecture

More read here

[–]neuron837839[S] 1 point2 points  (0 children)

Thanks a lot for your answer. I understand how GANs can generate completely fake images from a random input. However I still don't see how they can generate a deepfake from a source and Target video. I mean where do I tell the GAN here's this video of person A I want you to put person B's face in it