AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.

I see many people asking online: How toAI face-changing?

When watching videos, you should often see that the actors in the video are replaced with other people, your own, or a more suitable person imagined by you, or for experience, or entertainment. So how is this AI face-changing achieved? If we also want to make such a video ourselves, how should we operate it?

Now there are many tools that have been added with AI technology that can use the face-changing function. You can even find this section in commonly used photo beauty software. This article will introduce you to several AI face-changing video tools for entertainment purposes only!

1.DeepFaceLab
DeepFaceLab is an AI face-swapping tool that uses deep learning recognition to swap faces in pictures and videos. This technology can produce very realistic and natural face-swapping videos under certain circumstances. It was once a very popular open source project on Reddit.Deepfake.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
DeepFaceLab is easy to install, easy to use, and updates quickly. It has almost zero environment dependency, you can directly download the packaged APP and unzip it to run. It also adds many new models and new architectures that are easy to experiment with models.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
At the same time, user face pictures can be saved in JPG format to save space and improve efficiency. It supports multiple extractors such as MTCNN, DLIBCNN, S3FD, etc.; it supports manual extraction to obtain better results.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
Download and Installation

You can find relevant information on the official website and download the precompiled Windows version provided by the original author. This version already has dependent libraries, so you only need to install the nVidia driver yourself. There are also GPU and CPU versions available, which can be downloaded from MEGA:

https://mega.nz/#F!b9MzCK4B!zEAG9txu7uaRUjXz9PtBqg

Note: Because it is a Python program, after downloading the precompiled Windows version, please check whether the author has updated it. You can also directly git pull the author's latest version of the program:

% The directory where you installed DeepFaceLab

%\_internal\DeepFaceLab\

After downloading and unzipping, you can see the directory structure:

  1.  _internal
  2. Workspace
  3. 1) clear workspace.bat
  4. 2) extract images from video data_src.bat
  5. 3.1) cut video (drop video on me).bat
  6. 3.2) extract images from video data_dst FULL FPS.bat
  7. 3.other) denoise extracted data_dst.bat
  8. 4) data_src extract faces MANUAL.bat
  9. 4) data_src extract faces MT all GPU debug.bat
  10. 4) data_src extract faces MT all GPU.bat
  11. 4) data_src extract faces MT best GPU.bat
  12. 4) data_src extract faces S3FD all GPU debug.bat
  13. 4) data_src extract faces S3FD all GPU.bat
  14. 4) data_src extract faces S3FD best GPU.bat
  15. 4.1) data_src check result.bat
  16. 4.2.1) data_src sort by blur.bat
  17. 4.2.2) data_src sort by similar histogram.bat
  18. 4.2.4) data_src sort by dissimilar face.bat

In addition, there are a bunch of batch files. Please read the batch file names and pdf manuals carefully.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
How to use

After the download is complete, how to use it? You need to place the material file first, and its name is fixed.

1. Place the material files

  1. % The directory where you installed DeepFaceLab %\workspace\data_src.mp4

    # source video, with its face)

  2. % The directory where you installed DeepFaceLab %\workspace\data_dst.mp4

    # target video, replace it

2. Preprocess the video to generate frame images
  • 2) extract images from video data_src.bat

    # generates static frame images from the source video, and you can choose the frame rate (number of images).

  • 3.2) extract images from video data_dst FULL FPS.bat

    # generates all frame images from the target video, and you can first use 3.1 to capture small segments.

3. The generated frame images are placed in the following directory:
  • % The directory where you installed DeepFaceLab %\workspaceldata_dst\
  • % The directory where you installed DeepFaceLab %\workspace\data_srcl
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
4. Generate facial data
  1. 4) data_src extract faces S3FD all GPU.bat
  2. # generates source faces from source static frame images.
  3. 5) data_dst extract faces S3FD all GPU.bat
  4. # generates the target face from the target static frame image.
5. The generated face images are placed in the following directory:
  • % The directory where you installed DeepFaceLab %\workspace \data_dst\aligned\
  • % The directory where you installed DeepFaceLab %\workspace \data_src\laligned\
Next, you need to manually filter the images to remove blurry, obscured source faces, etc.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
6. Start training

After completing the material preparation, you can start training.

Note that a preview window will be displayed for the training, and you can see that the deviation of the image is getting lower and lower. You can press Enter to stop the training.

7. Synthetic Training Results

Just choose how to train and choose the corresponding synthesis method.

7.1 Directory of synthesized target frame images:

  • % The directory where you installed DeepFaceLab %\workspace\data_dst\merged\

7.2 Generated target video position:

  • % The directory where you installed DeepFaceLab %\workspace\result.mp4
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
Different training models and parameters
  1. 64 pixel model, and fakeapp,FaceSwapSimilar to , but with some improvements, using low configuration parameters can run in low video memory conditions.
  2. H128 (3GB+), 128-pixel model, similar to h64, but with higher pixel count and richer detail. Suitable for 3~4G video memory. More suitable for flat Asian faces.
  3. DF (5GB+), full face H128 model, strongly recommends not mixing various lighting conditions on the SRC surface.
  4. LIAEF128 (5GB+) is an improved 128 full face model that combines DF and IAE. The model attempts to deform the SRC face into DST while maintaining the SRC face features, but the deformation amplitude is small. The model has closed-eye recognition problems.
  5. SAE (minimum 2GB+, recommended 11GB+), stylized encoder, a new excellent model based on style loss. It can directly complete deformation/stylization through neural network. It can also better reconstruct faces with obstacles.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
Official website: deepfakes.club

Open Source:

www.oschina.net/p/deepfacelab

GitHub:

github.com/iperov/DeepFaceLab

Chinese website: deepfakescn.com

2.FaceSwap
Faceswap It is an excellent free and open source AI face-changing software. You can run and use it on Windows, macOS, and Linux.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
You can find the steps to download, install and use it on the homepage. Just follow the steps to download and install it!

How to operate

Faceswap provides a preview tool where you can preview the swap result and adjust the settings to better blend your face with the frame.

AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
1. Click to go to "Tools" - "Preview", where you can see the preview configuration options and function descriptions.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
2. Select the icon corresponding to the source video or image and navigate to the source you want to swap.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
Then Alignment File, you can click on the icon and navigate to the alignment file that corresponds to the video you entered in the previous field. If the alignment file is in the default location you extracted it from, then you don't need to do anything.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
3. Next, select the model directory, which is the folder specified during the training phase. It will contain a file and a file. .h5_state.json
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
4. Swap Models can prevent you from training your model in the wrong way. Enable this option to switch the model direction and make a note in your mind to train it in the right way next time.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
5. Start the preview tool, which will load the model, source video and alignment file, and then display different preview effects.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
Official website: faceswap.dev
3.OpenFaceSwap
Among the many face-changing software, the DeepFaceLab mentioned above is the easiest to install and use, and the fastest to update, but it does not have a user-friendly interface, so if you are a novice, it is still a bit difficult to get started.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
At this time, you can choose OpenFaceSwap, a face-changing software that is intuitive and easy to operate.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
Its installation and use are similar to Fakeapp, but because Fakeapp has been out of service for a long time, its kernel is more advanced. Openfaceswap is a customized graphical interface version based on the open source software Faceswap.
Compared to Faceswap, it is a better choice for amateurs. Its interface design is friendly and the operation steps are very clear. However, this tool has certain requirements for computer configuration. It is recommended to configure N card and video memory 4G+.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
1. How to install?

1.1 Preparation

The installation of OpenFaceSwap is the same as that of ordinary software. However, since it does not integrate CUDA and CuDNN like DFL, the dependent environment must be installed manually.

1. Install CUDA 9.02.

2. Install CuDnn 7.0.5 (note not 7.5.0)

3. Install VS20154. Install OpenFaceSwap

1.2 Installation Process

The installation is very simple. All its configurations are default. You can just click "Next" and then click "Finish" at the end.

After the installation is complete, open "Control Panel" - "Programs" - "Programs and Features" to view, there will be manyVisual C++Files starting with .

1.3 Install OpenFaceSwap

The above is ready. Its installation is very simple and the whole process is visualized without any scripts and commands.

 

How to use?

1. Click the setting icon after "IMAGES A" to set customized content, including:

Format: The format of the exported image, the default is jpg.

Frame/Sec: The frame rate of the cut picture. The default is 25. The A video should select the full frame rate (check the video properties, it is generally 24), and if the B video is longer, the frame rate can be reduced, for example, set to 10.

Prefix: file name prefix

jpg quality: Image quality, the number range is 2 to 31, 2 represents the highest quality.

AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
2. Click the settings icon after "FACES A":

Detector: The default is CNN, which is a picture extractor. You can also select other extractors through the small arrow. The difference between extractors is mainly reflected in the extraction effect, extraction time and memory required for extraction. The blue font description in the software: If the graphics card you are using has a memory of 2GB, then you need to use the low memory engine when extracting faces.

AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
3. Click the settings button after "MODEL" to select more configuration options.

Trainer: The default is Original. That is, the type of model. Different models will have different effects, and Original is the model supported by almost all face-changing software.

Batch size: Batch size. The larger the value, the better, but the more computer resources are required. The default value of this software is 64.

Show preview: Training process. Whether to display the preview window, select "Yes".

Epochs: Set the number of iterations. For example, if you set it to 1000, the model training will automatically stop when the number of times reaches 1000.

Save interval: Model save interval.

AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
4. Click on the settings after "SWAPS".

Trainer: Model

Converter:Converter

Direction: decide who replaces whom, A replaces B, or B replaces A

Detector: Extractor.

Mask options and Adjust options are configuration options for the converter.

AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
5. Click the settings button after "MOVIE".

This parameter operates similarly.

AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
In addition, you can use the function icons in the upper left corner, such as the save icon, to save the current configuration. When you open it for the second time, just click the folder icon and load the config configuration file to view the configuration.
AI video face-changing is so real now. Here are 3 AI face-changing videos and reference operations.
If you find it troublesome, some beauty apps such as Qingyan and Meitu XiuXiu can also achieve face changing.
statement:The content is collected from various media platforms such as public websites. If the included content infringes on your rights, please contact us by email and we will deal with it as soon as possible.
Encyclopedia

How to play voice cloning? Recommend these 6 AI dubbing tools

2024-2-22 9:29:41

TutorialEncyclopedia

GoEnhance: Recommend a new AI video conversion tool

2024-2-24 9:17:33

Search