Site icon The Word 360

How to make a Deepfake video

How to make a deepfake video

How to make a deepfake video

&Tab;&Tab;<div class&equals;"wpcnt">&NewLine;&Tab;&Tab;&Tab;<div class&equals;"wpa">&NewLine;&Tab;&Tab;&Tab;&Tab;<span class&equals;"wpa-about">Advertisements<&sol;span>&NewLine;&Tab;&Tab;&Tab;&Tab;<div class&equals;"u top&lowbar;amp">&NewLine;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;<amp-ad width&equals;"300" height&equals;"265"&NewLine;&Tab;&Tab; type&equals;"pubmine"&NewLine;&Tab;&Tab; data-siteid&equals;"173035871"&NewLine;&Tab;&Tab; data-section&equals;"1">&NewLine;&Tab;&Tab;<&sol;amp-ad>&NewLine;&Tab;&Tab;&Tab;&Tab;<&sol;div>&NewLine;&Tab;&Tab;&Tab;<&sol;div>&NewLine;&Tab;&Tab;<&sol;div>&NewLine;<p class&equals;"wp-block-paragraph">Deepfake is one of the trending cults of this generation&period; It uses a very simple concept&period; The face of person A is transferred to a video of person B&period; Let&&num;8217&semi;s look at how it&&num;8217&semi;s done through different stages&colon;<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<ul class&equals;"wp-block-list"><li><strong>Swapping Image&colon;<&sol;strong> An autoencoder &lpar;encoder and decoder&rpar; is built&comma; to reconstruct the image of A over B&period; Let us understand this through the idea of a criminal sketch&period; The features described by a witness &lpar;encoder&rpar;&comma; and the reconstructed picture of the suspect by the sketch artist &lpar;decoder&rpar;&period; From a data set of over hundreds and thousands of pictures of both faces&period; An encoder is made using a deep learning Convolutional Neural Network&lpar;CNN&rpar;&period; The encoder extracts the most important features from the chunk of images&comma; i&period;e&comma; encode pictures&period; Following this&comma; a decoder is used to reconstruct the original image&period; The encoder and decoder are trained as if they are entwined twins&comma; using a backpropagation method&period; Such that the input matches closely with the output&period; After the training&comma; the frame-by-frame video is processed to swap faces&period; Using face detection the face of B is extracted&period; Now instead of feeding this to its original decoder&comma; the decoder of person A is used&period; Hence we are able to have a face of A but with the context of B&period; This newly created face is merged into the original image of B&period;<&sol;li><li><strong>Make image realistic&colon;<&sol;strong> A deep network discriminator&comma; Generative Adversary Network&lpar;GAN&rpar; is used to differentiate the originality of the image&period; When a real image is fed into this discriminator&comma; it gets trained to recognize real images better&period; When a created image is fed&comma; it trains the autoencoder to create a more realistic image&period; This process is carried out over and over again until the created image is not distinguishable from the real one&period;<&sol;li><li><strong>Lip Sync from audio&colon;<&sol;strong> Firstly it uses a Long Short Term Memory &lpar;LSTM&rpar; network&comma; a type of recurring neural network&period; This network transforms the audio into 18 landmark points in the lip&period; The LSTM finally outputs a mouth shape for each output video frame&period; According to the respective mouth shape&comma; the network synthesizes a mouth texture for the chin and mouth area&period; Now the application looks over the target videos to match the calculated mouth shape&period; The candidates are merged together using a median function&period; The parameters considered are realism and temporal smoothness&period; If there is a blurriness left in the video&period; It can be compensated by teeth sharpening and enhancement&period; The final trick to be pulled is to retime the frame&period; This gives a clear idea of where to insert the fake mouth texture&period; Hence giving a proper finesse and sync with the head movement&period; <&sol;li><&sol;ul>&NewLine;&NewLine;&NewLine;&NewLine;<p class&equals;"wp-block-paragraph">The application of artificial intelligence has improved fake videos and they are here to stay&period; But with a word of caution&period; Social impact can be huge and may lead to legal problems&period; So better to use your energy on innovative ideas than just for fun&period; The application of GAN will help in the construction of better images&period; And researchers believe one day this may eventually help in detecting tumors&period;<&sol;p>&NewLine;

Exit mobile version