DeepFaceLab: There are more than video, replace only certain method of face!

DeepFaceLab own video clip, a Tony Stark is Iron Man, a Transformers actor Sam. Each video is only one person. So when you first play when very smooth, do not control everything, step by step tutorials to press on to take up.

Until one day you change to a new video. The figures appear in a video more than one picture or a group of people in there. This time you will encounter a problem : how to change only the person you want to change?

By default process to go, then, it is the owner of the face will be replaced.

At this point, you have to learn a new skill, how to specify the object's face transplant. This problem, in fact, the software itself has been taken into account. Here I specifically explain how to implement only for one person.

Suppose we have a video, a "power game" Wolf 4 siblings embarrassing Well, three silly, two Ah, a fragment of Britney together. And we just want to put embarrassing ex replaced. Then we normal process, transfer video images, extract the face from the picture, and then get back a bunch of face.

Because the characters appearing in the video there are four, but there have been three people the same screen. So by default, after completion of the extraction face in workspace \ data_dst \ aligned  generates all faces. Roughly as follows:

 

And this aligned catalog is the key to solve our problems. Remember a rule, as long as it exists in the directory in aligned human face will be replaced , in other words if you do not want to replace two Ah, three silly, Britney, you just need to direct their avatar can be deleted from this directory .

So it should be clear now. aligned avatar is deleted, leaving just head to the target person. Such swap out the video that you want to look up.

 

If you feel a bit of a hassle to delete, you can sort of picture with a bat file names with a sort of, the same person will be sorted together, delete them much more convenient.

 

--------------------------------------------------------

For more Deepfakes / AI face transplant Content Accessibility  deepfakes Chinese network

The first time access to relevant articles may be concerned about micro-channel public number: Tony Stark (TonyIsStark)

Guess you like

Origin www.cnblogs.com/wangpg/p/11478842.html