Facial expression capture method and apparatus based on multi-scale feature fusion, and medium

By introducing a multi-scale feature fusion module and a confidence prediction network into the facial expression capture method, the problem of capturing subtle facial expressions and identity decoupling in the existing technology is solved, and more refined facial identity and expression prediction and Better decoupling effect.

WO2024198583A1PCT designated stage expired Publication Date: 2024-10-03SOUTH CHINA UNIV OF TECH

Patent Information

Application Number
PCT/CN2023/142434
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-30
Filing Date
2023-12-27
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing facial expression capture methods fail to consider both global and local information of the input image, making it difficult to capture subtle facial expressions, and fail to effectively decouple identity and expression, resulting in insufficient loss of identity consistency.

Method used

The multi-scale feature fusion module is used to fuse image features at different stages based on the backbone network, combined with the confidence prediction network, to optimize the confidence of the identity coefficient through the identity consistency loss function to achieve more refined facial identity and expression prediction.

Benefits of technology

Through the multi-scale feature fusion module, more refined facial identity, expression, and texture prediction results are obtained, and the identity consistency loss function of confidence weight is used to improve the decoupling effect of identity and expression, improving the accuracy of expression prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023142434_03102024_PF_FP_ABST
    Figure CN2023142434_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are a facial expression capture method and apparatus based on multi-scale feature fusion, and a medium. The method comprises: acquiring a facial image; and inputting the obtained facial image into a trained expression capture model, and outputting a facial coefficient, wherein the expression capture model comprises a coefficient prediction network, which comprises a backbone network, a fully connected layer and a multi-scale feature fusion module, and the multi-scale feature fusion module is used for fusing image features from the backbone network at different stages, and predicting an identity coefficient, an expression coefficient and a texture coefficient by means of a fused feature. According to the present invention, image features from a backbone network at different stages are continuously fused on the basis of the backbone network by means of a multi-scale feature fusion module, and a facial identity, an expression and texture are predicted by means of a fused feature, such that a finer prediction result can be obtained. The present invention can be widely applied to the field of facial image data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device and medium for capturing facial expression based on multi-scale feature fusion Technical Field

[0001] The present invention relates to the field of facial image data processing, and in particular to a facial expression capture method, device and medium based on multi-scale feature fusion. Background Art

[0002] In recent years, the field of virtual digital humans has garnered increasing attention, and facial expression capture is a crucial technology for enabling virtual digital human driving. This task typically takes as input an image or video containing a face. Deep neural networks are used to learn image features and predict facial coefficients. A 3D deformable model is then used to reconstruct the 3D face, ultimately obtaining the facial expression coefficients as the predicted result. However, existing methods have several drawbacks: First, they fail to simultaneously consider both global and local information in the input image, making it difficult to capture subtle facial expressions; second, they fail to account for differences in confidence levels across different input images, making it difficult to decouple facial identity from expression.

[0003] Summary of the Invention

[0004] In order to at least solve one of the technical problems existing in the prior art to a certain extent, the purpose of the present invention is to provide a method, device and medium for capturing facial expressions based on multi-scale feature fusion.

[0005] The technical solution adopted in the present invention is:

[0006] A method for capturing facial expressions based on multi-scale feature fusion, comprising the following steps:

[0007] Get face image;

[0008] Input the obtained facial image into the trained expression capture model and output the facial coefficient;

[0009] The expression capture model includes a coefficient prediction network, which includes a backbone network, a fully connected layer and a multi-scale feature fusion module; the multi-scale feature fusion module is used to fuse image features at different stages of the backbone network and predict identity coefficients, expression coefficients and texture coefficients through the fused features.

[0010] Furthermore, the expression capture model is trained by the following method:

[0011] Obtain facial data, preprocess the facial data, and obtain a training set;

[0012] Constructing an expression capture model, wherein the expression capture model is composed of a coefficient prediction network, a confidence prediction network, and a reconstruction and rendering module;

[0013] The constructed expression capture model is trained according to the training set and the loss function. After the expression capture model is trained, the confidence prediction network and the reconstruction and rendering module are removed to obtain the trained expression capture model;

[0014] The coefficient prediction network is used to learn image features and predict face coefficients. T face images I with the same identity but different expressions are input into the coefficient prediction network, and the identity coefficient α, expression coefficient β, texture coefficient δ, posture coefficient p and illumination coefficient γ of the face are output.

[0015] The confidence prediction network is used to predict the confidence of each of the multiple face images input during training to optimize the identity consistency loss; the reconstruction and rendering module is used to use the predicted face coefficients in combination with a three-dimensional deformable model (3DMM) to reconstruct the three-dimensional face and render it into a two-dimensional image.

[0016] Furthermore, the coefficient prediction network works as follows:

[0017] The fully connected layer receives the output of the backbone network and outputs the posture coefficient p and the illumination coefficient γ;

[0018] Define X l-1 With X l The multi-scale feature fusion module fuses the features of the previous and current stages of the backbone network in the following way:

[0019] Use 3x3 convolution (stride = 2) to the previous stage feature X l-1 Downsampling to obtain features The purpose is to make the spatial size of the feature map of the previous stage consistent with that of the feature map of the current stage;

[0020] The downsampled features obtained in the previous step With the current stage feature X l Perform the splicing operation and then use the 3x3 convolution layer to fuse the features to obtain the multi-scale fused feature X f .

[0021] Furthermore, the reconstruction and rendering module works as follows:

[0022] Construct a 3D face model based on the 3D deformable model and the identity coefficient α, expression coefficient β, and texture coefficient δ predicted by the coefficient prediction network;

[0023] Based on the constructed 3D face model, the pose coefficient p and the illumination coefficient γ are combined to render the 3D face model into a 2D image.

[0024] The obtained two-dimensional image is used to calculate the loss function.

[0025] Furthermore, the 3D face model is represented by two parts: shape S and texture T:

[0026] in, and is the mean face shape and mean texture of the 3D face model, B id ,B exp With B tex They represent the basis of facial identity, expression and texture in the three-dimensional face model after PCA dimensionality reduction.

[0027] Furthermore, the loss function includes an identity consistency loss function combined with a confidence weight;

[0028] By adding a confidence prediction network on the basis of the backbone network, the confidence coefficient c of the identity coefficient of T input images is predicted. 1…T , where the dimension of the confidence c is the same as the dimension of the identity coefficient α;

[0029] The identity consistency loss function is calculated as follows:

[0030] For T input images of the same identity, the coefficient prediction network obtains the identity coefficient prediction results α of T faces t (t=1,…,T), combined with the confidence of the identity coefficient output by the confidence prediction network, construct the pseudo labels of T identity coefficients Right now:

[0031] Constraining the T identity coefficients to be close to the pseudo labels, we get the function:

[0032] Among them, c t is the confidence of the t-th input image; α t is the identity coefficient of the t-th input image.

[0033] Furthermore, the loss function also includes a face area illumination loss function and a face key point loss function;

[0034] The expression of the face area illumination loss function is:

[0035] Where A is the face area mask;

[0036] The expression of the face key point loss function is:

[0037] Where P and are the 2D key point coordinates of the input image and the rendered image respectively, and n is the number of facial key points.

[0038] Furthermore, the pre-processing of the facial data to obtain a training set includes:

[0039] Crop the image in the face data into an image of a preset size;

[0040] The cropped face data is divided into three parts: training set, validation set, and test set;

[0041] Perform face segmentation on the images in the training set to obtain the face area segmentation results of the images; use the preset face key point detection method to obtain the two-dimensional key point coordinates of the face.

[0042] Another technical solution adopted in the present invention is:

[0043] A facial expression capture device based on multi-scale feature fusion, comprising:

[0044] at least one processor;

[0045] at least one memory for storing at least one program;

[0046] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.

[0047] Another technical solution adopted in the present invention is:

[0048] A computer-readable storage medium stores a program executable by a processor, wherein the program executable by the processor is used to perform the method described above when executed by the processor.

[0049] The beneficial effect of the present invention is that the present invention uses a multi-scale feature fusion module to continuously fuse image features at different stages of the backbone network on the basis of the backbone network, and uses the fused features to predict facial identity, expression, and texture, thereby obtaining more precise prediction results. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following introduction is made to the drawings of the embodiments of the present invention or the related technical solutions in the prior art. It should be understood that the drawings introduced below are only for the convenience of clearly describing some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative work.

[0051] FIG1 is a flow chart of training an expression capture model according to an embodiment of the present invention;

[0052] FIG2 is a structural diagram of an expression capture model based on multi-scale feature fusion in an embodiment of the present invention;

[0053] FIG3 is a structural diagram of a multi-scale feature fusion module according to an embodiment of the present invention;

[0054] FIG4 is a schematic diagram of constructing a pseudo identity tag according to an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention and are not to be construed as limiting the present invention. The step numbers in the following embodiments are provided for ease of explanation only and do not limit the order of the steps. The order of execution of the steps in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.

[0056] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, they cannot be understood as limitations on the present invention.

[0057] In the description of the present invention, "several" means one or more, "many" means more than two, "greater than," "less than," and "exceed" are understood to exclude the number itself, while "above," "below," and "within" are understood to include the number itself. The use of "first" and "second" in the description is solely for the purpose of distinguishing technical features and should not be construed as indicating or implying relative importance, implicitly specifying the number of the indicated technical features, or implicitly specifying the order of the indicated technical features.

[0058] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, and connecting should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0059] The existing expression capture methods based on 3D face reconstruction have the following problems: (1) They do not consider that the identity, expression, and texture information of the face should be predicted in combination with the global and local information of the image, resulting in the inability to capture subtle facial expressions. (2) When using identity consistency loss, the existing methods do not consider the confidence differences of multiple images, resulting in insufficient decoupling effect of facial identity and expression. In response to problem (1), the present invention proposes a multi-scale feature fusion module. Based on the existing backbone network, it continuously fuses the image features of different stages of the backbone network, and uses the fused features to predict facial identity, expression, and texture to obtain more precise prediction results. In response to problem (2), the present invention proposes an identity consistency loss function combined with confidence weights, uses an additional confidence prediction network to output identity coefficient confidence for multiple input images, and uses this to calculate identity pseudo labels, and then calculates the identity consistency loss function to achieve better decoupling of facial identity and expression.

[0060] This embodiment provides a method for capturing facial expressions based on multi-scale feature fusion, comprising the following steps:

[0061] S101, obtaining a face image;

[0062] S102, inputting the obtained facial image into the trained expression capture model and outputting the facial coefficient;

[0063] The expression capture model includes a coefficient prediction network, which includes a backbone network, a fully connected layer and a multi-scale feature fusion module; the multi-scale feature fusion module is used to fuse image features at different stages of the backbone network and predict identity coefficients, expression coefficients and texture coefficients through the fused features.

[0064] As an optional implementation, the training method of the above-mentioned expression capture model is as follows: the first step is to construct a facial image dataset for training the network model and perform certain data preprocessing. The second step is to construct a deep neural network model for predicting facial coefficients. In order to solve the problem of difficulty in capturing subtle facial expressions, a multi-scale feature fusion module is proposed, and the global and local information of the image are combined to obtain more accurate expression prediction results. In order to solve the problem of large differences between different input images, a confidence prediction branch network is added, and an identity consistency loss function combined with confidence weights is used to achieve better decoupling of identity and expression, thereby further improving the accuracy of expression prediction. Finally, the constructed coefficient prediction model is trained on the dataset until convergence. As an optional implementation, the model is trained in a self-supervised manner.

[0065] Referring to FIG1 , the above training steps specifically include steps A1-A3:

[0066] A1. Obtain and preprocess facial data to obtain a training set.

[0067] A2. Constructing an expression capture model, wherein the expression capture model is composed of a coefficient prediction network, a confidence prediction network, and a reconstruction and rendering module;

[0068] A3. Training the constructed expression capture model based on the training set and the loss function. After the expression capture model is trained, removing the confidence prediction network and the reconstruction and rendering module to obtain a trained expression capture model.

[0069] The coefficient prediction network is used to learn image features and predict face coefficients. T face images I with the same identity but different expressions are input into the coefficient prediction network, and the identity coefficient α, expression coefficient β, texture coefficient δ, posture coefficient p and illumination coefficient γ of the face are output.

[0070] The confidence prediction network is used to predict the confidence of each of the multiple face images input during training to optimize the identity consistency loss; the reconstruction and rendering module is used to use the predicted face coefficients in combination with the three-dimensional deformable model to reconstruct the three-dimensional face and render it into a two-dimensional image.

[0071] The above method is explained in detail below with reference to the accompanying drawings and specific embodiments.

[0072] S1: Collect and process face datasets

[0073] S1-1: Collect image data with different faces and expressions, and crop the image data to a specific size (e.g., 224*224 pixels).

[0074] S1-2: Divide the dataset into three parts: training set, validation set, and test set.

[0075] S1-3: For the images in the training set, use the existing face segmentation method to obtain the face region segmentation results of the image. At the same time, use the existing face key point detection method to obtain the 2D key point coordinates of the face.

[0076] S2: Build a network model

[0077] The task solved by the present invention is to capture the expression of an input 2D face image, that is, to predict the expression coefficients of the face in the image corresponding to a specific three-dimensional deformable model (3DMM). The overall structure of the model, as shown in Figure 2, is mainly divided into three parts: (1) Coefficient prediction network: using the backbone neural network to learn image features and predict facial coefficients; (2) Identity consistency loss combined with confidence weights: the confidence prediction network predicts the confidence of each of the multiple face images input during training, and uses this to optimize the identity consistency loss; (3) Reconstruction and rendering module: using the predicted facial coefficients, combined with the 3DMM, to reconstruct the 3D face and render it into a 2D image.

[0078] In this embodiment, the confidence prediction network and the information generated by the reconstruction and rendering modules are required to participate in the calculation of the loss function during training, while only the coefficient prediction network is required during testing and application, and the required expression coefficients can be generated by this module.

[0079] S2-1: Construct a coefficient prediction network: Input T facial images I of the same identity but different expressions into the coefficient prediction network to obtain the face's identity, expression, texture, posture, and illumination coefficients (α, β, δ, p, γ). The coefficient prediction network consists of a backbone network, a fully connected layer, and a multi-scale feature fusion module.

[0080] S2-1-1: Backbone network: ResNet50 model pre-trained on ImageNet. The fully connected layer receives the output of the backbone network and outputs the above-mentioned coefficients. Existing methods use the last layer of features output by the backbone network as the input of the fully connected layer to predict all coefficients. In this invention, we believe that the identity, expression, and texture of the face should take into account image features of different scales, that is, considering both global and local information of the image. Therefore, we use the multi-scale feature fusion module shown in Figure 3, and use the fused features to predict the above-mentioned three coefficients. For the posture and illumination coefficients, the last layer of features of the backbone network is still used for prediction.

[0081] S2-1-2: Multi-scale feature fusion module:

[0082] Define X l-1 With X l is the output feature of the previous stage and the current stage of the backbone network. This module is divided into two steps: (1) Use 3x3 convolution (stride = 2) to convolution the feature X l-1 Downsampling is performed to obtain The purpose is to make the spatial size of the feature map of the previous stage consistent with that of the feature map of the current stage. (2) The downsampled feature map obtained in the previous step is With the current stage feature X lPerform the splicing operation and then use the 3x3 convolution layer to fuse the features to obtain the multi-scale fused feature X f .

[0083] As shown in Figure 2, for the four stages of the backbone network ResNet50 model, this embodiment uses three feature fusion modules to continuously fuse the backbone network features of this stage and the fusion features of the previous stage to achieve multi-scale feature fusion of the image, and finally use the fusion features to predict the identity, expression and texture coefficient of the face.

[0084] S2-2: Confidence Prediction Network:

[0085] To achieve a better decoupling of facial identity and expression, the present invention proposes an identity consistency loss function combined with confidence weight (specifically in step S3-3). To implement this loss function, it is necessary to predict the identity coefficient confidence of T input images of the same identity. The specific implementation is to add a branch network on the basis of the backbone network to predict the identity coefficient confidence c of T input images. 1…T , where the confidence c has the same dimension as the identity coefficient α.

[0086] As an optional implementation, this example uses a lightweight MobileNetV3 model as the branch network to reduce training time. The last layer of MobileNetV3 is modified to a fully connected layer, and the output dimension is set to the same dimension as the identity coefficient α. This outputs the identity confidence of T images.

[0087] S2-3: Reconstruction and rendering module:

[0088] S2-3-1: After obtaining the face's identity, expression, texture, posture, and illumination coefficients (α, β, δ, p, γ in Figure 2) through the coefficient prediction network, we first need to use the 3D deformable model (3DMM) to reconstruct the 3D face. In the 3DMM, any 3D face can be represented as two parts: shape S and texture T, namely:

[0089] in and is the mean face shape and mean texture of the 3DMM model, B id ,B exp With B tex Respectively represent the face identity, expression, and texture basis of the 3DMM after PCA dimensionality reduction. The above formula, combined with the identity, expression, and texture coefficients α, β, δ predicted in step S2-1, can be used to obtain a 3D face model corresponding to the input image.

[0090] S2-3-2: Using the pinhole camera model and spherical harmonic illumination model included in the differentiable renderer, combined with the pose coefficient p and the illumination coefficient γ, the 3D face model can be rendered into a 2D image. This 2D image is used for subsequent loss function calculations.

[0091] S3: Calculate the loss function

[0092] The face identity coefficient predicted in step S2 and the final two-dimensional rendered image are used to construct the loss function used for training of the present invention.

[0093] S3-1: Face area illumination loss function. In T input images, for the t-th image I, calculate the rendered image The difference in facial pixel values ​​is used to obtain the loss function L p ,Right now:

[0094] Where A is the face area mask obtained in step S1-3.

[0095] S3-2: Face key point loss function. Calculate the difference between the 2D face key points of the input image and the rendered image, that is:

[0096] Where P and are the 2D key point coordinates of the input image and the rendered image respectively, and n is the number of facial key points.

[0097] S3-3: Identity consistency loss function combined with confidence weights.

[0098] In order to deal with the situation where the face confidence of multiple input images is different due to posture, blur, occlusion, etc., the present invention proposes this loss function. For T input images of the same identity, the coefficient prediction network obtains the identity coefficient prediction results α of T faces t (t=1,…,T), first combine the identity coefficient confidence output by the confidence prediction network in step S2 to construct the pseudo labels of T identity coefficients (As shown in Figure 4), that is:

[0099] Where c is the confidence of the T input images. Then constrain the T identity coefficients to be close to the pseudo labels, and obtain the loss function, which is:

[0100] Compared with the existing method of directly calculating the average value of the identity coefficient by using the identity coefficient pseudo-label calculated using the confidence level and the identity coefficient, it can reduce the impact of the differences between different input images and better achieve the decoupling between facial identity and expression.

[0101] S4: Using the coefficient prediction network model constructed in step S2, perform deep learning model training on the preprocessed and partitioned dataset. Using the loss function designed in step S3, update the model weights using stochastic gradient descent until the loss function converges. Save the model network weights. Finally, test and evaluate the model on the validation and test sets of the dataset.

[0102] In summary, this embodiment proposes a facial expression capture method based on multi-scale feature fusion. This multi-scale feature fusion solves the difficulty of capturing subtle facial expressions. Furthermore, the proposed identity consistency loss function, combined with confidence weights, achieves a better decoupling of the face and expression. Table 1 shows the experimental comparison results of the method of the present invention and existing expression capture methods on the FEAFA face dataset. The method of this embodiment surpasses the existing optimal method in terms of the expression coefficient prediction metric.

[0103] Table 1

[0104] Note: Table 1 shows the comparison results of the proposed method and other existing methods on different facial expressions in the FEAFA dataset. The values ​​represent the mean absolute error (MAE) between the predicted value and the true value of the expression coefficient.

[0105] This embodiment also provides a facial expression capture device based on multi-scale feature fusion, comprising:

[0106] at least one processor;

[0107] at least one memory for storing at least one program;

[0108] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.

[0109] A facial expression capture device based on multi-scale feature fusion in this embodiment can execute a facial expression capture method based on multi-scale feature fusion provided by an embodiment of the method of the present invention, can execute any combination of implementation steps of the method embodiment, and has the corresponding functions and beneficial effects of the method.

[0110] The present application also discloses a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium and execute the computer instructions, causing the computer device to perform the method shown in FIG1 .

[0111] This embodiment also provides a storage medium storing instructions or programs that can execute a facial expression capture method based on multi-scale feature fusion provided by an embodiment of the method of the present invention. When the instructions or program are run, any combination of implementation steps of the method embodiment can be executed, and the corresponding functions and beneficial effects of the method can be obtained.

[0112] In some optional embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided in an exemplary manner for the purpose of providing a more comprehensive understanding of the technology. The disclosed method is not limited to the operation and logic flow presented herein. Optional embodiments are contemplated in which the order of the various operations is changed and the sub-operations described as a part of a larger operation are performed independently.

[0113] Furthermore, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise indicated, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It will also be understood that a detailed discussion of the actual implementation of each module is not necessary for understanding the present invention. More specifically, given the properties, functions, and internal relationships of the various functional modules in the devices disclosed herein, the actual implementation of the module will be understood within the ordinary skill of an engineer. Therefore, a person skilled in the art using ordinary skill will be able to implement the present invention set forth in the claims without undue experimentation. It will also be understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0114] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0115] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device.

[0116] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic devices), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering, or processing in another suitable manner as necessary, and then stored in a computer memory.

[0117] It should be understood that various parts of the present invention can be implemented using hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0118] In the above description of this specification, reference to the terms "one embodiment / example," "another embodiment / example," or "certain embodiments / examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0119] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the claims and their equivalents.

[0120] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A method for capturing facial expression based on multi-scale feature fusion, It is characterized in that The following steps are involved: Get face image; Input the acquired face image into the trained expression capture model and output the face coefficient; The expression capture model includes a coefficient prediction network, which includes a backbone network, a fully connected layer and a multi-scale feature fusion module; the multi-scale feature fusion module is used to fuse image features at different stages of the backbone network, and predict identity coefficients, expression coefficients and texture coefficients through fused features.

2. The method for capturing facial expressions based on multi-scale feature fusion according to claim 1, It is characterized in that The expression capture model is trained by the following method: Obtain face data, pre-process the face data, and obtain a training set; Constructing an expression capture model, wherein the expression capture model is composed of a coefficient prediction network, a confidence prediction network, and a reconstruction and rendering module; The constructed expression capture model is trained according to the training set and the loss function. After the expression capture model is trained, the confidence prediction network and the reconstruction and rendering module are removed to obtain the trained expression capture model; The coefficient prediction network is used to learn image features and predict face coefficients. T face images I with the same identity but different expressions are input into the coefficient prediction network, and the identity coefficient α, expression coefficient β, texture coefficient δ, posture coefficient p and illumination coefficient γ of the face are output; The confidence prediction network is used to predict the confidence of each of the multiple face images input during training to optimize the identity consistency loss; the reconstruction and rendering module is used to use the predicted face coefficients in combination with the three-dimensional deformable model to reconstruct the three-dimensional face and render it into a two-dimensional image.

3. A method for capturing facial expressions based on multi-scale feature fusion according to claim 1 or 2, It is characterized in that The coefficient prediction network works as follows: The fully connected layer receives the output of the backbone network and outputs a posture coefficient p and an illumination coefficient γ; Define X l-1 With X l is the output feature of the previous stage and the current stage of the backbone network. The multi-scale feature fusion module fuses the features in the following way: For the previous stage feature X l-1 Downsampling to obtain features The downsampled features obtained in the previous step With the current stage feature X l Perform the splicing operation to fuse the features and obtain the multi-scale fused feature X f .

4. The method for capturing facial expressions based on multi-scale feature fusion according to claim 2, It is characterized in that The reconstruction and rendering module works as follows: Construct a three-dimensional face model based on the three-dimensional deformable model and the identity coefficient α, expression coefficient β, and texture coefficient δ predicted by the coefficient prediction network; According to the constructed 3D face model, the pose coefficient p and the illumination coefficient γ are combined to render the 3D face model into a 2D image; The obtained two-dimensional image is used to calculate the loss function.

5. The method for capturing facial expressions based on multi-scale feature fusion according to claim 4, It is characterized in that The 3D face model is represented by two parts: shape S and texture T: in, and is the mean face shape and mean texture of the 3D face model, B id ,B exp With B tex They respectively represent the basis of facial identity, expression and texture in the three-dimensional face model after PCA dimensionality reduction.

6. The method for capturing facial expressions based on multi-scale feature fusion according to claim 2, It is characterized in that The loss function includes an identity consistency loss function combined with a confidence weight; By adding a confidence prediction network on the basis of the backbone network, the confidence c of the identity coefficient of T input images is predicted. 1…T , where the dimension of the confidence c is the same as the dimension of the identity coefficient α; The identity consistency loss function is calculated as follows: For T input images of the same identity, the coefficient prediction network obtains the identity coefficient prediction results α of T faces t (t=1,…,T), combined with the confidence of the identity coefficient output by the confidence prediction network, construct pseudo labels of T identity coefficients Right now: Constraining the T identity coefficients to be close to the pseudo-labels, we get the function: Among them, c t is the confidence of the t-th input image; α t is the identity coefficient of the t-th input image.

7. The method for capturing facial expressions based on multi-scale feature fusion according to claim 6, It is characterized in that The loss function also includes a face area illumination loss function and a face key point loss function; The expression of the illumination loss function of the face area is: Where A is the face area mask; The expression of the face key point loss function is: In the formula, P and are the 2D key point coordinates of the input image and the rendered image respectively, and n is the number of facial key points.

8. The method for capturing facial expressions based on multi-scale feature fusion according to claim 2, It is characterized in that The preprocessing of the face data to obtain a training set includes: Crop the image in the face data into an image of a preset size; The cropped face data is divided into three parts: training set, validation set, and test set; Perform face segmentation on the images in the training set to obtain the face area segmentation results of the images; use the preset face key point detection method to obtain the two-dimensional key point coordinates of the face.

9. A facial expression capture device based on multi-scale feature fusion, It is characterized in that include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 8.

10. A computer-readable storage medium having a program executable by a processor stored therein, It is characterized in that The processor-executable program is used to perform the method according to any one of claims 1 to 8 when executed by the processor.

Citation Information

Patent Citations

  • A multi-view facial expression recognition method based on mobile terminal

    CN109409222A

  • Information processing method and device, computer equipment and storage medium

    CN114783022A

  • Face motion capture method and system based on three-dimensional face reconstruction

    CN114821750A

  • Expression recognition method and device based on deep and shallow multi-feature fusion

    CN115424313A

  • Facial expression capturing method and device based on multi-scale feature fusion and medium

    CN116434303A

Cited By

  • Online portrait generation method and system based on node type artificial intelligence

    CN119600140A

  • Method and system for migrating from zero sample video to video expression

    CN119741189A

  • Three-dimensional face reconstruction method, electronic equipment and readable storage medium

    CN120563746A

  • Repair and 3D reconstruction method and system based on polluted face picture

    CN120852248A

  • Fine-grained facial expression digital human head portrait generation method and system based on consistent identity recognition

    CN121600139A