Creating a Deep Fake in under 10 lines of code on the cloud.

Snehit Vaddi
2 min readApr 7, 2020

--

“What you see is Fake, What you hear is False.” -Somebody

The time is now. Anybody with no knowledge of AI or ML can now create a deep fake with just one image to place and a video to be faked.

Recently I have come across a video on YouTube by Two Minute Papers about Deep Fakes and I am intrigued by the pace of development in this technology. Until now Deep Fakes are complex to develop, need GPU and lots of computation power, and are time-consuming. Thanks to First Order Motion Model. I have tried the code given by @AliaksandrSiarohin on Github.

There are few conventional approaches to creating a deep fake, with Deep Learning(CNNs), GANs (Generative Adversarial Networks), Face Swap(specifically for faces), and now First Order Motion Model.

Sample Outputs :

Google Colab Demo Link :

Link: Google Colab, You can follow the instructions given in the notebook to run on your data.

Installation and Running on the local machine :

  • Clone the repository

`git clone https://github.com/AliaksandrSiarohin/first-order-model`

  • Install Requirements.

`pip install -r requirements.txt`

To run a demo, download checkpoint and run the following command:

`python demo.py --config config/dataset_name.YAML --driving_video path/to/driving --source_image path/to/source --checkpoint path/to/checkpoint --relative --adapt_scale`

Sources :

Original repository: https://github.com/AliaksandrSiarohin/first-order-model

Two Minute Papers Youtube Video: https://www.youtube.com/watch?v=mUfJOQKdtAk&t=17s

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Snehit Vaddi
Snehit Vaddi

Written by Snehit Vaddi

👨‍🎓I am a Machine Learning enthusiast. I teach machines how to see, listen, and learn.

No responses yet

Write a response