AI talents emerge in the field, and suddenly a big shot "s0md3v" comes out and open sources a project that can perform video face swapping with just a single image. Sharing joy is better than enjoying it alone.
Without further ado, let's get straight to the point. Classic demonstration#
The project homepage provides a very convincing animated image of face swapping, truly a picture is worth a thousand words.
Quickly set up an environment locally and verified it, it's indeed not bad. The main point is, simple, fast, simple, fast, simple, fast! However, local configuration requires downloading a bunch of things, configuring a bunch of things, which may still be a bit challenging for ordinary people. Even for those with a bit more hands-on ability, it might take some time to figure it out.
To save everyone's time and brain cells, the big shot has quickly written another script based on Google Colab. Those who need it can directly use it!
As long as you have the magic, no need for local configuration, no need for a high-performance computer, just click the mouse.
Below is a brief introduction on how to use it~~
First, open this address:
Then click on the ipynb file in the red circle!
Then click "Open in Colab"
After entering the Google Colab platform, click on the script in order. Then you can complete the entire face swapping process. When you hover over the "parentheses", a clickable "play" button will appear.
You can also find "Runtime" -> "Run all" in the top menu, so you can run it all at once!
In order to allow everyone to quickly and smoothly experience the fun of face swapping with a single image, I have prepared demonstration pictures and video materials.
After running ①, you can view it in the file manager on the left. If you want to replace the pictures and videos, just replace these two files. After replacing them, simply click on ⑤ again.
If the file is not too large, you can right-click on the roop_colab folder, click "Upload", and find the video file on your computer to upload.
After successful upload, delete the original 1.jpg and 2.MP4, change your own uploaded photo and video to these two names, and then run step ⑤ again.
After step ⑤ is completed, a video file named out.mp4 will be generated, which is the result of the face swapping.
In the left file manager, right-click and select "Download". Download it to your local computer and you can directly view the result.
This demonstration should be easy to understand! If not, then we have to resort to videos. Haha!
The script was written quickly and is not perfect, but it can be used normally and will be improved in the future.