banner
andrewji8

Being towards death

Heed not to the tree-rustling and leaf-lashing rain, Why not stroll along, whistle and sing under its rein. Lighter and better suited than horses are straw sandals and a bamboo staff, Who's afraid? A palm-leaf plaited cape provides enough to misty weather in life sustain. A thorny spring breeze sobers up the spirit, I feel a slight chill, The setting sun over the mountain offers greetings still. Looking back over the bleak passage survived, The return in time Shall not be affected by windswept rain or shine.
telegram
twitter
github

Roop: Single image, video, one-click face swapping, Colab script usage!

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#

image
The project homepage provides a very convincing animated image of face swapping, truly a picture is worth a thousand words.

image
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!

image
Then click "Open in Colab"

image
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.

image
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.

image
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.

image
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.

image
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.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.