Creating Your Own Deepfakes Without Coding Experience

Table of Contents

Deepfake Video Examples


In case you don’t know, deepfakes are faked media that mimic another person’s likeness, like so. This process is achieved through something called “deep learning,” hence the name deepfake.

Things you’ll need

  • A Google account
  • An image of what you want to animate
  • A video to extract the animation from
  • Some free time

Before starting

Sign in to your Google account

Once you go to the Google colab, you’ll be greeted with a page that looks like the following:

Connecting to the Google Colab

After you have signed in, you’ll want to actually connect to the Colab.

Creating your own deepfakes

Let’s get started creating our own deepfakes.

(Step 1) Cloning the Repo

Once you are signed in, you’ll want to hover over the brackets under the “Clone Repository” header.

(Step 2) Change your directory

Once you finish cloning the repository, you’ll want to change your current directory to “first-order-model” by clicking on the next play button like so:

(Step 3) Mounting your Google drive folder on Colab

Next, you’ll want to mount your google drive folder on the colab by clicking the next play button.

(Step 5) Create a folder called “first-order-model-motion” in your Google Drive

Now you’ll want to navigate to your Google Drive and create a folder called “first-order-motion-model” like so:

(Step 6) Loading your image and video

Now you want to go back to the Google Colab and under the “Load driving video and source image” header, make sure that ‘source_image’ and ‘driving_video’ point to the image and video you uploaded to your google drive.

Just make sure that the ending of the path has the correct name, i.e. ‘…/your_image_file.png’ and ‘…/your_video_file.mp4’

(Step 7) Creating the model and loading the checkpoints

If you scroll down a bit further you should see the following:

In the image above you see a square icon because I was already running it but you should see a play icon.

(Step 8) Creating the deepfake

Now is the moment you’ve been waiting for, actually creating the deepfake.

(Step 9) Saving your deepfake

Now to actually save it, hover over the video and you should see an icon with three vertical dots.


If you encounter any errors, you can try to reset the runtime by doing the following:

Using your own image

To use your own image, simply grab any facial image and crop it to 256px by 256px.

Using your own video

If you want to use your own video you also have to crop it to 256px by 256px.

!ffmpeg -i /content/gdrive/My\ Drive/first-order-motion-model/my_video_file.mp4 -s 256x256 -c:a copy /content/gdrive/My\ Drive/first-order-motion-model/result.mp4

Video tutorials

6-minute video tutorial.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store