Unbelievable Face Swapping with 5 Lines Code

preview_player
Показать описание
Easily swap faces between images using python with this tutorial on the open source python package InsightFace. This new python library allows you to swap faces in seconds.

00:00 InsightFace
01:10 Setup
02:40 Face Detection
05:22 Face Swapping
08:10 More Examples

Check out my other videos:

Links to my stuff:
Рекомендации по теме
Комментарии
Автор

From the perspective of a Photoshop user, this is insanely fast and accurate, trying it asap!
Thanks !

yahiarafik
Автор

Great tutorial. The Obi1 and Spock swap gave me and audible chuckle .Thanks for that.

sbhodges
Автор

Awesome! I'm going to have some fun with this.

randomhominid
Автор

This is amazing! Thank you for making this video🙏
You made me feel like I can create funny and joyful projects.

minsubLAB
Автор

Definitely gonna try it and apple my kids picture to NBA players 😁 the explanations were crystal clear and the examples very funny

molmock
Автор

I'd like to create a face filter. Something like the chadify filter. Would I start with the chad picture and then swap it onto a face? or, would i start wit the face and swap it onto chad's?

autonate_ai
Автор

Thank u Rob.
When i sit down to count my blessings
I count "finding robs YT channel" 10 times.
Just one request rob.
Could you please provide us with the ur YT videos code such as this over github or any ither forum if possible. Would love to take it as a canvas and start experimenting.
Thanks again for being my best DATA SCIENCE teacher.

irfanshaikh
Автор

I am encountering an InvalidProtobuf error while running this file on Colab. I have checked the file location as well. Any suggestions?

nikhilbhandari
Автор

This is great! So funny with just a few lines of code.

artistpw
Автор

I noticed that people has a big problem with the sawpping step in the reddit link ... including me

robertovalenzuela
Автор

Great tutorial, even if it's way above my coding skillset.:)

borisbadinoff
Автор

Hi Rob, thank you for this tutorial, the demonstration is really good, even as a novice, I can understand it quickly. I also followed your steps to implement it with code, but the resolution of the final generated picture is relatively low (lower than the two original pictures). Is there any good way to improve the clarity of the final picture? Looking forward to your reply, thanks again

ZhijianLiang-dk
Автор

Hey Mula can you please create a video on facial expression recognition I feel I understands better your tutorials

dominickipronoh
Автор

great Tutorial! Is there a way to generate higher resolution image outputs other than matplot does?

themaniacbluez
Автор

Amazing - thanks for your presentation!

tomparatube
Автор

Hey I'm doing this on Google Colab, so I've gotten to the:
- res = swapper.get(res, face, source_face, paste_back=True)

line, but I'm getting this error on it:
- 'NoneType' object has no attribute 'get'


So I'm assuming it has something to do with my swapper line:
- swapper = insightface.model_zoo.get_model('inswapper_128.onnx', download=False, download_zip=False)

I downloaded the file from the link and put it in the path like normal and linked it, however when I run the line i get this error:
- [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from inswapper_128.onnx failed:Protobuf parsing failed.

so to fix that I modified the line as such:
- swapper = ', download=False, download_zip=False)


But that returns the former error, so I'm not sure what I'm doing wrong. Any help would be greatly appreciated

mohammedbaig
Автор

Hi Rob,
Thanks for the tutorial and want to know if there are any other pre-trained models as the clarity is a bit low.
Got a clear picture of the pipe line of face swapping.
thanks for your tutorial.

appanamukesh
Автор

ähm where would i need the place the .onnx file?

ovrava
Автор

This is an amazing video! The tutorial was easy to follow

EniOnYouTube
Автор

Can you suggestions on how to do this in real time video ? Prexisting snapchat filters do a basic swap, not involving the eigen face values and swapping using AI, how can I do this?

whynesspower