Classbaze

Disclosure: when you buy through links on our site, we may earn an affiliate commission.

Computer Vision: Python Face Swap & Quick Deepfake in Colab

Custom Face Swap using Python and OpenCV & Deepfake Image Animation using 'First Order Motion Model' paper in Colab
4.5
4.5/5
(50 reviews)
3,125 students
Created by

9.1

Classbaze Grade®

9.6

Freshness

8.1

Popularity

9.0

Material

Custom Face Swap using Python and OpenCV & Deepfake Image Animation using 'First Order Motion Model' paper in Colab
Platform: Udemy
Video: 4h 5m
Language: English
Next start: On Demand

Best Computer Vision classes:

Classbaze Rating

Classbaze Grade®

9.1 / 10

CourseMarks Score® helps students to find the best classes. We aggregate 18 factors, including freshness, student feedback and content diversity.

Freshness

9.6 / 10
This course was last updated on 12/2021.

Course content can become outdated quite quickly. After analysing 71,530 courses, we found that the highest rated courses are updated every year. If a course has not been updated for more than 2 years, you should carefully evaluate the course before enrolling.

Popularity

8.1 / 10
We analyzed factors such as the rating (4.5/5) and the ratio between the number of reviews and the number of students, which is a great signal of student commitment.

New courses are hard to evaluate because there are no or just a few student ratings, but Student Feedback Score helps you find great courses even with fewer reviews.

Material

9.0 / 10
Video Score: 8.2 / 10
The course includes 4h 5m video content. Courses with more videos usually have a higher average rating. We have found that the sweet spot is 16 hours of video, which is long enough to teach a topic comprehensively, but not overwhelming. Courses over 16 hours of video gets the maximum score.
The average video length is 6 hours 08 minutes of 36 Computer Vision courses on Udemy.
Detail Score: 9.3 / 10

The top online course contains a detailed description of the course, what you will learn and also a detailed description about the instructor.

Extra Content Score: 9.5 / 10

Tests, exercises, articles and other resources help students to better understand and deepen their understanding of the topic.

This course contains:

4 articles.
0 resource.
0 exercise.
0 test.

In this page

About the course

Hello and welcome to my new course ‘Python Face Swap & Quick Deepfake using Google Colab’
You know, there is is an old phrase that says ‘seeing is believing’. But in the world of ‘Deepfake’ what we see is not always true. Let’s define deep fake with the help of an example video. Here is it.

I used only a single stamp size photos of these people to create these videos. Yes, you heard it right. With only a single face image and few minutes of time with a normal computer, you can create deepfake of anyone. You an even make dead people talk or even sing for you.

Yes! Be prepared to be amazed. Before we proceed any further, let me explain the list of contents that are included in this course. This course is divided exactly into two halves.

In the first half, we will be creating a basic python based face swap application. Before we proceed, we will have an introduction to the deep fake technique, its applications, advantages and disadvantages. Then we have to prepare our computer with all the dependencies installed. We will be installing Anaconda, the platform and IDE for our python programming. Later there are few optional sessions for those who want to learn the basics of python programming language basics.

Later we will install the rest of dependences required to built our custom python face swap application. After that we will writing the python code line by line to complete the whole program with more than 300 lines. Alternatively you may also download the complete code from the google drive link provided in the last session of this course. At first we will be doing the face swap using two static images. One as the source image and other as the target image. Later we will try it for realtime video from our computer’s web camera. And then we will modify it to make it work with a pre-saved video saved in our computer.

From the examples, you can see that this was just a basic face swap program and is not at all perfect. We were doing it just to learn how things works behind the scenes.

Later we will proceed with implementing deepfake based on a paper called ‘First Order Motion Model for Image Animation’ Submitted to Cornell University by Aliaksandr Siarohin, Stéphane Lathuilière, Sergey Tulyakov, Elisa Ricci and Nicu Sebe

Since training a deepfake involve expensive GPUs, we have an alternate plan to use the google Colab’s free GPU. We will be preparing our google drive by creating folders and uploading the sample driving video, based on which the target image needs to be animated and also the target images or source images.

Also we will be downloading a copy the demo google colab notebook and connect with google drive. Then we will clone the first order motion model repository from google drive.

Later we will also proceed with cloning the face-alignment repository. We will install and set it up in our google colab. Then we will move the files into corresponding folders and start with cropping the driving video using a built in python program.

After that we will download the frozen inference graph of the already trained model to our google drive. And now its all set to proceed with the animation of the source images based on the driving video. Once completed we will download the animated video. We will also do the same for few of the other source images too.

The animated video will not be having audio. So we have to mix the audio to it using any free or opensource video editing tool available online. We will do that in our next session and finally we have all the deepfake animated videos with audio included.

As the final session, we will also discuss how we can save the limited free GPU time offered by google and the workaround if the GPU time is exceeded.

Just another word before I conclude. Please please make use of the contents and techniques mentioned in this tutorial very responsibly. Its intended only for learning and research purpose. Me as an instructor or the platform in which I host this course will not be liable for any illegal or irresponsible use of this technique.

That’s all about the topics which are currently included in this quick course. The code, images and weights used in this course has been uploaded and shared in a folder. I will include the link to download them in the last session or the resource section of this course. You are free to use the code in your projects with no questions asked.

Also after completing this course, you will be provided with a course completion certificate which will add value to your portfolio.

So that’s all for now, see you soon in the class room. Happy learning and have a great time.

Bibliographies and Reference Credits
•NIPS Proceedings – First Order Motion Model for Image Animation – Aliaksandr Siarohin, Stéphane Lathuilière, Sergey Tulyakov, Elisa Ricci, Nicu Sebe
•Cornell University – Computer Vision and Pattern Recognition – First Order Motion Model for Image Animation
•Github – AliaksandrSiarohin – first-order-model
•Github Pages – First Order Motion Model for Image Animation
•Learn OpenCV – Delaunay Triangulation and Voronoi Diagram using OpenCV
•Learn OpenCV – Face Swap using OpenCV – Satya Mallick
•pysource – Face swapping – Sergio Canu

What can you learn from this course?

✓ Python based Custom Face Swap Application with Image, Video and Camera. Deepfake Videos based on First Order Motion Model Image Animation Paper

What you need to start the course?

• A decent configuration computer (preferably Windows) and an enthusiasm to research with Deepfake Technology

Who is this course is made for?

• Beginners or who those wants to start with Python based Face Swap and Deepfake Technology

Are there coupons or discounts for Computer Vision: Python Face Swap & Quick Deepfake in Colab ? What is the current price?

The course costs $14.99. And currently there is a 82% discount on the original price of the course, which was $84.99. So you save $70 if you enroll the course now.
The average price is $14.7 of 36 Computer Vision courses. So this course is 2% more expensive than the average Computer Vision course on Udemy.

Will I be refunded if I'm not satisfied with the Computer Vision: Python Face Swap & Quick Deepfake in Colab course?

YES, Computer Vision: Python Face Swap & Quick Deepfake in Colab has a 30-day money back guarantee. The 30-day refund policy is designed to allow students to study without risk.

Are there any financial aid for this course?

Currently we could not find a scholarship for the Computer Vision: Python Face Swap & Quick Deepfake in Colab course, but there is a $70 discount from the original price ($84.99). So the current price is just $14.99.

Who will teach this course? Can I trust Abhilash Nelson?

Abhilash Nelson has created 20 courses that got 1,941 reviews which are generally positive. Abhilash Nelson has taught 39,763 students and received a 4.3 average review out of 1,941 reviews. Depending on the information available, we think that Abhilash Nelson is an instructor that you can trust.
Computer Engineering Master & Senior Programmer at Dubai
I am a pioneering, talented and security-oriented Android/iOS Mobile and PHP/Python Web Developer Application Developer offering more than eight years’ overall IT experience which involves designing, implementing, integrating, testing and supporting impact-full web and mobile applications.
I am a Post Graduate Masters Degree holder in Computer Science and Engineering.
My experience with PHP/Python Programming is an added advantage for server based Android and iOS Client Applications.
I am currently serving full time as a Senior Solution Architect managing my client’s projects from start to finish to ensure high quality, innovative and functional design.
Browse all courses by on Classbaze.

9.1

Classbaze Grade®

9.6

Freshness

8.1

Popularity

9.0

Material

Platform: Udemy
Video: 4h 5m
Language: English
Next start: On Demand

Classbaze recommendations for you