Table of Contents
Opening Chapter
Optimization
Facial Surface
Testing
Translator introduction
Home Technology peripherals AI Using machine learning to reconstruct faces in videos

Using machine learning to reconstruct faces in videos

Apr 08, 2023 pm 07:21 PM
machine learning cgi facial structure

Translator|Cui Hao

Reviser|Sun Shujuan

Opening Chapter

Using machine learning to reconstruct faces in videos

##A project from China and Britain Collaborative research devises a new way to recreate faces in videos. This technology can enlarge and reduce facial structure with high consistency and no trace of artificial trimming.

Using machine learning to reconstruct faces in videos

Generally speaking, this transformation of facial structure is achieved through traditional CGI methods, which rely on detailed and expensive motion capping, rigging and texturing procedure to completely reconstruct the face.

Different from traditional methods, CGI in the new technology is integrated into the neural pipeline as a parameter for 3D facial information and serves as the basis for the machine learning workflow.

Using machine learning to reconstruct faces in videos

The author pointed out:

"Our goal is to deform and edit the facial contours based on natural faces in the real world. , thereby generating high-quality portrait reshaping videos [results]. This technology can be used for visual effect applications such as facial beautification and facial exaggeration.

Although consumers have been able to use 2D faces since the advent of Photoshop distortion technology (and led to a subculture of facial distortion and body dysmorphia), but it is still a difficult technology to achieve facial reconstruction for video without using CGI.

Using machine learning to reconstruct faces in videos

Mark Zuckerberg’s facial size expands and shrinks due to new technology

Body reshaping is currently a hot topic in the field of computer vision, mainly because of its potential in fashion e-commerce , for example: making people look taller and more skeletally diverse, but there are still some challenges.

Similarly, changing the shape of faces in videos in a convincing way has been at the core of the researchers' work, Although the implementation of this technology has been affected by artificial processing and other limitations. As a result, the new product migrates the previously studied capabilities from static expansion to dynamic video output.

The new system is equipped with AMD Ryzen 9 3950X Training is performed on a desktop PC with 32GB of memory, and motion maps are generated using OpenCV’s optical flow algorithm and smoothed through the StructureFlow framework; Facial Alignment Network (FAN) component for feature estimation, also used in the popular deepfakes component package Medium; Working with Ceres Solver to solve facial optimization problems.

Using machine learning to reconstruct faces in videos

Example of using the new system to enlarge the face

The title of this paper is Parametric Reshaping of Portraits in Videos, whose authors are three researchers from Zhejiang University and one researcher from the University of Bath.

About Face

In the new system, videos are extracted into image sequences, starting with faces Build a base model. Then connect representative subsequent frames to build consistent personality parameters along the entire image running direction (i.e., the direction of the video frame).

Using machine learning to reconstruct faces in videos

Face The architectural process of the deformation system

Next, according to the calculation expression, the shaping parameters implemented by linear regression are generated. Then the 2D mapping of the facial contour is constructed through the signed distance function (SDF) before and after facial reshaping. .

Finally, the output video is subjected to morphing optimization for content recognition.

Facial parameterization

This process utilizes the 3D Morphable Face Model (3DMM) , it is a face synthesis auxiliary tool based on neural and GAN, and is also suitable for deepfake detection systems.

Using machine learning to reconstruct faces in videos

Example from 3D Morphable face Model (3DMM) - a parametric prototype face used in a new project. Top left, iconic application on 3DMM surface. Top right, 3D mesh vertices of isomap. The lower left corner shows the feature fit; the bottom middle picture, the isomap of the extracted facial texture; and the lower right corner, the final fit and shape

The workflow of the new system will take into account occlusion situations, such as when an object moves away from the line of sight. This is also one of the biggest challenges for deepfake software, as FAN landmarks can barely account for these situations and their translation quality tends to degrade as faces are avoided or occluded.

The new system avoids the above problems by defining "contour energy" that matches the boundaries of 3D faces (3DMM) and 2D faces (defined by FAN landmarks).

Optimization

The application scenario of this system is real-time deformation, such as real-time transformation of face shape in a video chat filter. Currently, frameworks cannot achieve this, so providing the necessary computing resources to enable "real-time" deformation becomes a significant challenge.

According to the assumptions of the paper, the latency of each frame operation of the 24fps video relative to the material per second in the pipeline is 16.344 seconds. At the same time, for feature estimation and 3D facial deformation, it is also accompanied by one hit (respectively 321 ms and 160 ms).

As a result, optimization has made key progress in reducing latency. Since joint optimization across all frames would significantly increase system overhead, and optimization of the initialization style (assuming consistent speaker characteristics throughout) may lead to anomalies, the authors adopted a sparse mode to calculate coefficients at realistic intervals of sampled frames.

Joint optimization is then performed on this subset of frames, resulting in a leaner reconstruction process.

Facial Surface

The morphing technology used in this project is an adaptation of the author’s 2020 work Deep Shapely Portraits (DSP).

Using machine learning to reconstruct faces in videos

Deep Shapely Portraits, 2020 submission to ACM Multimedia. The paper was led by researchers from the Zhejiang University-Tencent Joint Laboratory for Game and Intelligent Graphics Innovation Technology

The authors observed that “we extend this method from reshaping a single image to reshaping an entire image sequence.”

Testing

The paper points out that there is no comparable historical data to evaluate the new method. Therefore, the authors compared their curved video output frames with static DSP output.

Using machine learning to reconstruct faces in videos

Testing the new system against static images from Deep Shapely Portraits

The author pointed out that due to the use of sparse mapping, the DSP method will have traces of artificial modification— —The new framework solves this problem through dense mapping. Furthermore, the paper argues that videos produced by DSP lack smoothness and visual coherence.

The authors pointed out:

“The results show that our method can stably and coherently generate reshaped portrait videos, while image-based methods can easily lead to obvious flickering artifacts (artificial Traces of modification)."

Translator introduction

Cui Hao, 51CTO community editor, senior architect, has 18 years of software development and architecture experience, and 10 years of distributed architecture experience. Formerly a technical expert at HP. He is willing to share and has written many popular technical articles with more than 600,000 reads. Author of "Principles and Practice of Distributed Architecture".

Original title: Restructuring Faces in Videos With Machine Learning, author: Martin Anderson


The above is the detailed content of Using machine learning to reconstruct faces in videos. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

This article will take you to understand SHAP: model explanation for machine learning This article will take you to understand SHAP: model explanation for machine learning Jun 01, 2024 am 10:58 AM

In the fields of machine learning and data science, model interpretability has always been a focus of researchers and practitioners. With the widespread application of complex models such as deep learning and ensemble methods, understanding the model's decision-making process has become particularly important. Explainable AI|XAI helps build trust and confidence in machine learning models by increasing the transparency of the model. Improving model transparency can be achieved through methods such as the widespread use of multiple complex models, as well as the decision-making processes used to explain the models. These methods include feature importance analysis, model prediction interval estimation, local interpretability algorithms, etc. Feature importance analysis can explain the decision-making process of a model by evaluating the degree of influence of the model on the input features. Model prediction interval estimate

Transparent! An in-depth analysis of the principles of major machine learning models! Transparent! An in-depth analysis of the principles of major machine learning models! Apr 12, 2024 pm 05:55 PM

In layman’s terms, a machine learning model is a mathematical function that maps input data to a predicted output. More specifically, a machine learning model is a mathematical function that adjusts model parameters by learning from training data to minimize the error between the predicted output and the true label. There are many models in machine learning, such as logistic regression models, decision tree models, support vector machine models, etc. Each model has its applicable data types and problem types. At the same time, there are many commonalities between different models, or there is a hidden path for model evolution. Taking the connectionist perceptron as an example, by increasing the number of hidden layers of the perceptron, we can transform it into a deep neural network. If a kernel function is added to the perceptron, it can be converted into an SVM. this one

The evolution of artificial intelligence in space exploration and human settlement engineering The evolution of artificial intelligence in space exploration and human settlement engineering Apr 29, 2024 pm 03:25 PM

In the 1950s, artificial intelligence (AI) was born. That's when researchers discovered that machines could perform human-like tasks, such as thinking. Later, in the 1960s, the U.S. Department of Defense funded artificial intelligence and established laboratories for further development. Researchers are finding applications for artificial intelligence in many areas, such as space exploration and survival in extreme environments. Space exploration is the study of the universe, which covers the entire universe beyond the earth. Space is classified as an extreme environment because its conditions are different from those on Earth. To survive in space, many factors must be considered and precautions must be taken. Scientists and researchers believe that exploring space and understanding the current state of everything can help understand how the universe works and prepare for potential environmental crises

Identify overfitting and underfitting through learning curves Identify overfitting and underfitting through learning curves Apr 29, 2024 pm 06:50 PM

This article will introduce how to effectively identify overfitting and underfitting in machine learning models through learning curves. Underfitting and overfitting 1. Overfitting If a model is overtrained on the data so that it learns noise from it, then the model is said to be overfitting. An overfitted model learns every example so perfectly that it will misclassify an unseen/new example. For an overfitted model, we will get a perfect/near-perfect training set score and a terrible validation set/test score. Slightly modified: "Cause of overfitting: Use a complex model to solve a simple problem and extract noise from the data. Because a small data set as a training set may not represent the correct representation of all data." 2. Underfitting Heru

Implementing Machine Learning Algorithms in C++: Common Challenges and Solutions Implementing Machine Learning Algorithms in C++: Common Challenges and Solutions Jun 03, 2024 pm 01:25 PM

Common challenges faced by machine learning algorithms in C++ include memory management, multi-threading, performance optimization, and maintainability. Solutions include using smart pointers, modern threading libraries, SIMD instructions and third-party libraries, as well as following coding style guidelines and using automation tools. Practical cases show how to use the Eigen library to implement linear regression algorithms, effectively manage memory and use high-performance matrix operations.

Explainable AI: Explaining complex AI/ML models Explainable AI: Explaining complex AI/ML models Jun 03, 2024 pm 10:08 PM

Translator | Reviewed by Li Rui | Chonglou Artificial intelligence (AI) and machine learning (ML) models are becoming increasingly complex today, and the output produced by these models is a black box – unable to be explained to stakeholders. Explainable AI (XAI) aims to solve this problem by enabling stakeholders to understand how these models work, ensuring they understand how these models actually make decisions, and ensuring transparency in AI systems, Trust and accountability to address this issue. This article explores various explainable artificial intelligence (XAI) techniques to illustrate their underlying principles. Several reasons why explainable AI is crucial Trust and transparency: For AI systems to be widely accepted and trusted, users need to understand how decisions are made

Five schools of machine learning you don't know about Five schools of machine learning you don't know about Jun 05, 2024 pm 08:51 PM

Machine learning is an important branch of artificial intelligence that gives computers the ability to learn from data and improve their capabilities without being explicitly programmed. Machine learning has a wide range of applications in various fields, from image recognition and natural language processing to recommendation systems and fraud detection, and it is changing the way we live. There are many different methods and theories in the field of machine learning, among which the five most influential methods are called the "Five Schools of Machine Learning". The five major schools are the symbolic school, the connectionist school, the evolutionary school, the Bayesian school and the analogy school. 1. Symbolism, also known as symbolism, emphasizes the use of symbols for logical reasoning and expression of knowledge. This school of thought believes that learning is a process of reverse deduction, through existing

Is Flash Attention stable? Meta and Harvard found that their model weight deviations fluctuated by orders of magnitude Is Flash Attention stable? Meta and Harvard found that their model weight deviations fluctuated by orders of magnitude May 30, 2024 pm 01:24 PM

MetaFAIR teamed up with Harvard to provide a new research framework for optimizing the data bias generated when large-scale machine learning is performed. It is known that the training of large language models often takes months and uses hundreds or even thousands of GPUs. Taking the LLaMA270B model as an example, its training requires a total of 1,720,320 GPU hours. Training large models presents unique systemic challenges due to the scale and complexity of these workloads. Recently, many institutions have reported instability in the training process when training SOTA generative AI models. They usually appear in the form of loss spikes. For example, Google's PaLM model experienced up to 20 loss spikes during the training process. Numerical bias is the root cause of this training inaccuracy,

See all articles