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 swap, Colab script usage method!

Talents in the field of AI are emerging one after another, and suddenly a big shot named "s0md3v" appeared, open-sourcing a project that can perform face swapping in videos with just a single image. It's better to enjoy together than to enjoy alone.

Without further ado, let's get straight to the point. Classic demonstration.#

image
The project homepage provides a very convincing face swapping animation, 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 advantage is that it's simple and fast, simple and fast, simple and fast! However, setting up locally requires downloading and configuring a bunch of things, which may still be a bit challenging for ordinary people. Those with better hands-on skills may also need to tinker for a while.
In order 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!

With the power of magic, no need for local configuration, no need for high-performance computers, just click the mouse.

Now let's briefly introduce the usage~~

First, open this address:

Single picture, one click, video face swap! Use Colab scripts, no need to burn the graphics card, no need to go to the sauna!

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. This will complete the entire face swapping process. When the mouse is moved to the "brackets", a clickable "play" button will appear.

image
You can also find "Runtime" -> "Run all" in the top menu, so you can run it with just one click!

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 step ①, you can check 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, 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, replace them with your own uploaded photos and videos with these two names, and then run step ⑤.

After step ⑤ is completed, a video file named out.mp4 will be generated, which is the result of the face swapping.

image
Right-click in the left file manager, and click "Download". You can then view the result directly on your local computer.

This demonstration should be easy to understand! If not, then a video is needed. Haha!

The script was written relatively 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.