Facial expression capture model training method, facial expression driving method and device

By generating sample face parameters and emotion classification, calculating the emotion category loss to adjust the deep learning model parameters, it solves the problem of poor training effect of the existing facial expression capture model, improves the prediction accuracy of the facial expression capture model and the three-dimensional digital human Facial expressions drive the effect.

CN117218499BActive Publication Date: 2024-09-24BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311286394.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-29
Publication Date
2024-09-24
Estimated Expiration
2043-09-29

AI Technical Summary

Technical Problem

The training effect of existing facial expression capture models is poor, mainly because the loss value calculated between the face parameter prediction results output by the model and the real label is not effective enough.

Method used

By using the deep learning model to be trained to generate sample face parameters, and generating three-dimensional face models and rendered images based on these parameters, using the pre-trained emotion classification model to perform emotion classification, calculating the emotion category loss and adjusting the deep learning model parameters to Improve facial expression capture models.

Benefits of technology

By using emotion classification information as supervision information, the prediction accuracy and training effect of the facial expression capture model are improved, and more accurate facial parameter prediction and three-dimensional digital human facial expression driving are achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117218499B
    Figure CN117218499B
Patent Text Reader

Abstract

The present disclosure provides a training method for a facial expression capture model, a facial expression driving method and a device, which relate to the field of artificial intelligence technology, specifically computer vision, augmented reality, virtual reality, deep learning and other technical fields, and can be applied to scenes such as the metaverse and digital humans. The method includes: obtaining a sample face image; predicting face parameters using a deep learning model to obtain sample face parameters; generating a sample three-dimensional face model using a three-dimensional face reconstruction model, and rendering to obtain a predicted face image; using a pre-trained emotion classification model to classify the sample face image and the predicted face image, respectively, to obtain a first emotion category corresponding to the sample face image and a second emotion category corresponding to the predicted face image; calculating the emotion category loss based on the first emotion category and the second emotion category; and adjusting the parameters of the deep learning model based at least on the emotion category loss to obtain a facial expression capture model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, specifically computer vision, augmented reality, virtual reality, deep learning and other technical fields, and can be applied to scenes such as the metaverse and digital humans, and in particular to a facial expression capture model training method, a facial expression driving method, a facial expression capture model training device, a facial expression driving device, an electronic device, a computer-readable storage medium and a computer program product. Background Art

[0002] Artificial intelligence is a discipline that studies how to use computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0003] Facial expression capture technology is one of the important technologies in three-dimensional digital humans. Its task is to obtain facial expressions through three-dimensional face reconstruction technology, and transfer the driving person's expressions to the digital human, so as to achieve controllable expressions of virtual humans.

[0004] The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention

[0005] The present disclosure provides a facial expression capture model training method, a facial expression driving method, a facial expression capture model training device, a facial expression driving device, an electronic device, a computer-readable storage medium, and a computer program product.

[0006] According to one aspect of the present disclosure, a training method for a facial expression capture model is provided, comprising: obtaining a sample face image; predicting face parameters based on the sample face image using a deep learning model to obtain sample face parameters; generating a sample three-dimensional face model based on the sample face parameters using a three-dimensional face reconstruction model, and rendering to obtain a predicted face image; performing emotion classification on the sample face image and the predicted face image respectively using a pre-trained emotion classification model to obtain a first emotion category corresponding to the sample face image and a second emotion category corresponding to the predicted face image; calculating the emotion category loss based on the first emotion category and the second emotion category; and adjusting the parameters of the deep learning model based at least on the emotion category loss to obtain the facial expression capture model.

[0007] According to one aspect of the present disclosure, a facial expression driving method is provided, comprising: acquiring a target image; based on the target image, predicting facial parameters using a facial expression capture model to obtain target facial parameters, wherein the facial expression capture model is obtained by training using the above-mentioned training method; and based on the target facial parameters, performing facial expression driving on a target three-dimensional digital human.

[0008] According to one aspect of the present disclosure, a training device for a facial expression capture model is provided, comprising: a first face image acquisition unit, configured to acquire a sample face image; a first face parameter prediction unit, configured to predict face parameters based on the sample face image using a deep learning model to obtain sample face parameters; a reconstruction rendering unit, configured to generate a sample three-dimensional face model based on the sample face parameters using a three-dimensional face reconstruction model, and render to obtain a predicted face image; an emotion classification unit, configured to perform emotion classification on the sample face image and the predicted face image respectively using a pre-trained emotion classification model to obtain a first emotion category corresponding to the sample face image and a second emotion category corresponding to the predicted face image; an emotion category loss calculation unit, configured to calculate an emotion category loss based on the first emotion category and the second emotion category; and a parameter adjustment unit, configured to adjust the parameters of the deep learning model based at least on the emotion category loss to obtain a facial expression capture model.

[0009] According to one aspect of the present disclosure, a facial expression driving device is provided, comprising: a second face image acquisition unit, configured to acquire a target image; a second face parameter prediction unit, configured to perform face parameter prediction based on the target image using a facial expression capture model to obtain target face parameters, wherein the facial expression capture model is obtained by training using the above-mentioned training device; and a driving unit, configured to perform facial expression driving on a target three-dimensional digital human based on the target face parameters.

[0010] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the above method.

[0011] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the above method.

[0012] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the above method when executed by a processor.

[0013] According to one or more embodiments of the present disclosure, by utilizing a deep learning model to be trained to generate sample facial parameters corresponding to a sample facial image, and generating a sample three-dimensional facial model and a corresponding rendered image based on the sample facial parameters, and then utilizing a pre-trained emotion classification model to perform emotion classification on the sample facial image and the rendered image, and using the obtained emotion categories to calculate loss values ​​and adjust the parameters of the deep learning model used to generate facial parameters, the effect of utilizing emotion classification information as supervision to enhance the facial expression capture model is achieved.

[0014] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0016] Figure 1 A schematic diagram showing an exemplary system in which the various methods described herein may be implemented according to an embodiment of the present disclosure;

[0017] Figure 2 A flowchart of a method for training a facial expression capture model according to an exemplary embodiment of the present disclosure is shown;

[0018] Figure 3 A flowchart of predicting facial parameters of a sample facial image using a deep learning model according to an exemplary embodiment of the present disclosure is shown;

[0019] Figure 4A flowchart of a method for training a facial expression capture model according to an exemplary embodiment of the present disclosure is shown;

[0020] Figure 5 A schematic diagram showing a deep learning model and loss according to an exemplary embodiment of the present disclosure is shown;

[0021] Figure 6 A flowchart of a facial expression driving method according to an exemplary embodiment of the present disclosure is shown;

[0022] Figure 7 A structural block diagram of a facial expression capture model training device according to an exemplary embodiment of the present disclosure is shown;

[0023] Figure 8 A structural block diagram showing a training device for a facial expression driving device according to an exemplary embodiment of the present disclosure; and

[0024] Fig. 9 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0025] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0026] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.

[0027] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.

[0028] In the related art, when training a facial expression capture model, the facial parameter prediction results output by the model and the true labels of the facial parameters are usually used to calculate the corresponding loss values ​​to train the model, but such training effect is not good.

[0029] To solve the above problems, the present invention utilizes the deep learning model to be trained to generate sample facial parameters corresponding to the sample facial images, and generates a sample three-dimensional facial model and a corresponding rendered image based on the sample facial parameters, and then utilizes the pre-trained emotion classification model to perform emotion classification on the sample facial images and the rendered images, and uses the obtained emotion categories to calculate the loss value and adjust the parameters of the deep learning model used to generate facial parameters, thereby achieving the effect of using emotion classification information as supervision to improve the facial expression capture model.

[0030] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0031] Figure 1 FIG. 1 is a schematic diagram of an exemplary system 100 in which various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 1 , the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.

[0032] In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable execution of the methods of the present disclosure.

[0033] In some embodiments, server 120 may also provide other services or software applications that may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) network.

[0034] exist Figure 1 In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may in turn utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.

[0035] The user can use client devices 101, 102, 103, 104, 105 and / or 106 to perform human-computer interaction. The client device can provide an interface that enables the user of the client device to interact with the client device. The client device can also output information to the user via the interface. Figure 1 Only six client devices are depicted, but one skilled in the art will appreciate that the present disclosure may support any number of client devices.

[0036] Client devices 101, 102, 103, 104, 105 and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptop computers), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, game systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices may run various types and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux or Linux-like operating systems (such as GOOGLE Chrome OS); or include various mobile operating systems, such as MICROSOFT Windows Mobile OS, iOS, Windows Phone, Android. Portable handheld devices may include cellular phones, smart phones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Game systems may include various handheld game devices, Internet-enabled game devices, etc. Client devices are capable of executing various different applications, such as various Internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and may use various communication protocols.

[0037] The network 110 may be any type of network known to those skilled in the art that may support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, the one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.

[0038] Server 120 may include one or more general purpose computers, dedicated server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.

[0039] The computing units in the server 120 may run one or more operating systems including any of the above operating systems and any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.

[0040] In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.

[0041] In some embodiments, the server 120 may be a server of a distributed system, or a server combined with a blockchain. The server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. A cloud server is a host product in a cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.

[0042] The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as audio files and video files. The databases 130 may reside in various locations. For example, the data repository used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The databases 130 may be of different types. In some embodiments, the database used by the server 120 may be a database, such as a relational database. One or more of these databases may store, update, and retrieve data to and from the database in response to a command.

[0043] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.

[0044] Figure 1 The system 100 may be configured and operated in various ways to enable the application of various methods and apparatuses described in the present disclosure.

[0045] According to one aspect of the present disclosure, a method for training a facial expression capture model is provided. Figure 2 As shown, the training method of the facial expression capture model includes: step S201, obtaining a sample face image; step S202, based on the sample face image, using a deep learning model to predict face parameters to obtain sample face parameters; step S203, based on the sample face parameters, using a three-dimensional face reconstruction model to generate a sample three-dimensional face model, and rendering to obtain a predicted face image; step S204, using a pre-trained emotion classification model to perform emotion classification on the sample face image and the predicted face image, respectively, to obtain a first emotion category corresponding to the sample face image and a second emotion category corresponding to the predicted face image; step S205, based on the first emotion category and the second emotion category, calculating the emotion category loss; and step S206, at least based on the emotion category loss, adjusting the parameters of the deep learning model to obtain the facial expression capture model.

[0046] Therefore, by using the deep learning model to be trained to generate sample facial parameters corresponding to the sample facial image, and generating a sample three-dimensional facial model and a corresponding rendered image based on the sample facial parameters, and then using the pre-trained emotion classification model to perform emotion classification on the sample facial image and the rendered image, and using the obtained emotion category to calculate the loss value and adjust the parameters of the deep learning model used to generate facial parameters, the effect of using emotion classification information as supervision to improve the facial expression capture model is achieved.

[0047] In some embodiments, in step S201, the sample face image may be an image including a face obtained by various means.

[0048] In some embodiments, in step S202, the deep learning model can be used to generate sample face parameters corresponding to the input sample face image, which may specifically include a 150-dimensional face shape vector, a 52-dimensional face expression vector, a 12-dimensional face posture vector, and a 200-dimensional texture vector.

[0049] According to some embodiments, the deep learning model may include an image feature extraction backbone network and a face parameter prediction network. Figure 3 As shown, step S202 in the training method of the facial expression capture model described above, using a deep learning model to predict facial parameters of a sample facial image to obtain sample facial parameters may include: step S301, based on the sample facial image, using an image feature extraction backbone network to extract image features to obtain sample facial image features; and step S302, based on the sample facial image features, using a facial parameter prediction network to predict facial parameters to obtain sample facial parameters.

[0050] Therefore, by generating facial image features and then predicting facial parameters based on the facial image features, accurate facial parameter prediction results can be obtained.

[0051] In some embodiments, the image feature extraction backbone network may be, for example, ResNet18, or other networks including convolutional layers and pooling layers. The face parameter prediction network may be, for example, a network for regression and / or classification.

[0052] In some embodiments, in step S203, the 3D face reconstruction model may be, for example, a 3D deformable model (3DMorphable Model, 3DMM). In an exemplary embodiment, a FaceVerse model may be used as a 3D face reconstruction model. By inputting sample face parameters (e.g., face shape vectors, face expression vectors, posture vectors, and texture vectors output by a deep learning model) into the FaceVerse model, a predicted 3D face model, i.e., a sample 3D face model, may be obtained. Furthermore, the sample 3D face model may be rendered (e.g., differentiable rendering) to ultimately obtain a corresponding predicted face image.

[0053] In some embodiments, in step S204, a pre-trained emotion classification model may be used to perform emotion classification on the sample facial image and the predicted facial image respectively to obtain a first emotion category corresponding to the sample facial image and a second emotion category corresponding to the predicted facial image.

[0054] According to some embodiments, the pre-trained emotion classification model may be obtained by pre-training with video data having human faces and corresponding emotion category labels. The corresponding emotion category labels may be obtained, for example, by segmenting and labeling continuous video frames including human faces in the video data. In some embodiments, the video frames including human faces and the emotion category labels corresponding to the video frames may be used as sample data to train the emotion classification model.

[0055] Therefore, by using the above method, a large number of training samples of the emotion classification model can be obtained at a low cost, thereby reducing the training cost and obtaining an emotion classification model that outputs accurate results.

[0056] In some embodiments, at step S205, a classification loss between the first emotion category and the second emotion category, i.e., an emotion category loss, may be calculated. Further, at step S206, parameters of the deep learning model may be adjusted based on the loss to obtain a trained facial expression capture model.

[0057] According to some embodiments, Figure 4 Another embodiment of a training method for a facial expression capture model is shown. It is understandable that Figure 4 The operations of steps S401-S403, S408-S410 and Figure 2 The operations of step S201 to step S206 in are similar and will not be described in detail here. Figure 4 As shown, the training method may further include: step S404, obtaining facial key points of the sample face image and the predicted face key points of the face image, and calculating the facial key point loss. The parameters of the deep learning model may be adjusted based on the facial key point loss and the emotion category loss.

[0058] Therefore, by using the facial key point loss between the sample face image and the predicted face image based on the sample three-dimensional face model obtained after three-dimensional face reconstruction as supervision of the deep learning model used for facial expression capture, the prediction ability of the trained facial expression capture model is improved.

[0059] According to some embodiments, step S201 of the training method of the facial expression capture model described above, obtaining a sample face image, may include: performing key point detection on the original face image to obtain the face key points of the original face image; and based on the face key points of the original face image, cropping, resizing and normalizing the original face image to obtain the sample face image and the face key points of the sample face image. In some embodiments, the face key points in the sample face image may be the face key points of the original face image obtained after cropping and resizing the original face image.

[0060] Therefore, through the above method, the part corresponding to the face can be cropped from the original collected image, and the image can be standardized by means of size change and normalization, so that different images are comparable. At the same time, the model can be trained and predicted more stably, improving the generalization ability, prediction accuracy and training speed of the model.

[0061] According to some embodiments, the training method may further include: extracting three-dimensional key points from the sample three-dimensional face model; and mapping the three-dimensional key points to obtain the face key points of the predicted face image. Since the sample three-dimensional face model has been obtained, the above method can accurately obtain the face key point information.

[0062] According to some embodiments, Figure 4 As shown, the training method may further include: step S405, calculating the image pixel loss based on the pixel values ​​of multiple pixels in the sample face image and the pixel values ​​of multiple pixels in the predicted face image. The parameters of the deep learning model may be adjusted based on the image pixel loss, the face key point loss and the emotion category loss.

[0063] Therefore, by using the image pixel loss between the sample face image and the predicted face image based on the sample three-dimensional face model obtained after three-dimensional face reconstruction as supervision of the deep learning model used for facial expression capture, the prediction ability of the trained facial expression capture model is improved.

[0064] In some embodiments, the image pixel loss may adopt L1 loss.

[0065] According to some embodiments, the sample face parameters output by the deep learning model may include sample micro-expression coefficients. Figure 4 As shown, the training method may further include: step S406, obtaining micro-expression labels of sample face images; and step S407, calculating micro-expression losses based on sample micro-expression coefficients and micro-expression labels. The parameters of the deep learning model may be adjusted based on micro-expression losses, image pixel losses, face key point losses, and emotion category losses.

[0066] Therefore, by using the micro-expression loss between the sample face image and the predicted face image based on the sample three-dimensional face model obtained after three-dimensional face reconstruction as the supervision of the deep learning model used for facial expression capture, the prediction ability of the trained facial expression capture model is improved.

[0067] In some embodiments, the micro-expression loss may adopt a classification loss. The micro-expression coefficient may be a facial parameter used to determine whether there is a mouth movement or change. In an exemplary embodiment, the micro-expression coefficient may be a tongue sticking coefficient indicating whether the face sticks out the tongue. Accordingly, the micro-expression label may be a ground truth indicating whether the face sticks out the tongue.

[0068] Understandably, Figure 4 The combination of step S406 and step S407, step S404 and step S405 can be executed one by one, or partially or completely, which is not limited here.

[0069] In some embodiments, Figure 5 FIG. 2 shows a schematic diagram of a deep learning model and loss according to an exemplary embodiment of the present disclosure. Figure 5 As shown, the deep learning model 502 can receive a sample face image 504 and output a sample face parameter 506, and then the sample face parameter 506 can be input into a three-dimensional face reconstruction model 508, and the obtained sample three-dimensional face model can be rendered to finally generate a predicted face image 510. Then, the sample face image 504 and the predicted face image 510 can be classified by emotion using a pre-trained emotion classification model 512, and the emotion category loss 514 can be calculated based on the classification result, and the image pixel loss 516 can be calculated using the sample face image 504 and the predicted face image 510. In addition, the micro-expression parameter in the sample face parameter 506 and the micro-expression label 518 of the sample face image obtained in advance can be used to calculate the micro-expression loss 520.

[0070] According to another aspect of the present disclosure, a facial expression driving method is provided. Figure 6 As shown, the method includes: step S601, obtaining a target image; step S602, based on the target image, using a facial expression capture model to predict facial parameters to obtain target facial parameters, the facial expression capture model is obtained by training using the above training method; and step S603, based on the target facial parameters, driving the target three-dimensional digital human with facial expressions.

[0071] Thus, by using the training method described above, a facial expression capture model capable of outputting accurate facial parameters is obtained. By using such a facial expression capture model to predict facial parameters, accurate target facial parameters can be obtained, and then, accurate three-dimensional digital human facial expression driving results can be obtained using the target facial parameters.

[0072] According to another aspect of the present disclosure, a training device for a facial expression capture model is provided. Figure 7As shown, the device 700 includes: a first face image acquisition unit 710, configured to acquire a sample face image; a first face parameter prediction unit 720, configured to predict face parameters based on the sample face image using a deep learning model to obtain sample face parameters; a reconstruction rendering unit 730, configured to generate a sample three-dimensional face model based on the sample face parameters using a three-dimensional face reconstruction model, and render to obtain a predicted face image; an emotion classification unit 740, configured to perform emotion classification on the sample face image and the predicted face image respectively using a pre-trained emotion classification model to obtain a first emotion category corresponding to the sample face image and a second emotion category corresponding to the predicted face image; an emotion category loss calculation unit 750, configured to calculate the emotion category loss based on the first emotion category and the second emotion category; and a parameter adjustment unit 760, configured to adjust the parameters of the deep learning model based at least on the emotion category loss to obtain a facial expression capture model.

[0073] It is understood that the operations and effects of the units 710 to 760 in the device 700 can be referred to above. Figure 2 The description of steps S201 to S206 in the process will not be repeated here.

[0074] According to some embodiments, the deep learning model may include an image feature extraction backbone network and a face parameter prediction network. The first face parameter prediction unit may include: an image feature extraction subunit configured to extract image features based on a sample face image using an image feature extraction backbone network to obtain sample face image features; and a face parameter prediction subunit configured to predict face parameters based on sample face image features using a face parameter prediction network to obtain sample face parameters.

[0075] According to some embodiments, the pre-trained emotion classification model may be obtained by pre-training using video data having human faces and corresponding emotion category labels.

[0076] According to some embodiments, the training device of the facial expression capture model described above may further include: a face key point loss calculation unit configured to obtain face key points of a sample face image and face key points of a predicted face image, and calculate face key point loss. The parameters of the deep learning model may be adjusted based on the face key point loss and the emotion category loss.

[0077] According to some embodiments, the first facial image acquisition unit in the training device of the facial expression capture model described above may include: a key point detection unit, configured to perform key point detection on the original facial image to obtain facial key points of the original facial image; and an image processing unit, configured to crop, resize and normalize the original facial image based on the facial key points of the original facial image to obtain a sample facial image and facial key points of the sample facial image.

[0078] According to some embodiments, the training device of the facial expression capture model described above may also include: a three-dimensional key point extraction unit, configured to extract three-dimensional key points from a sample three-dimensional face model; and a mapping unit, configured to map the three-dimensional key points to obtain facial key points of a predicted face image.

[0079] According to some embodiments, the training device of the facial expression capture model described above may further include: an image pixel loss calculation unit configured to calculate the image pixel loss based on the pixel values ​​of multiple pixels in the sample face image and the pixel values ​​of multiple pixels in the predicted face image. The parameters of the deep learning model may be adjusted based on the image pixel loss, the face key point loss and the emotion category loss.

[0080] According to some embodiments, the sample face parameters may include sample micro-expression coefficients. The training device may also include: a micro-expression label acquisition unit configured to acquire micro-expression labels of sample face images; and a micro-expression loss calculation unit configured to calculate micro-expression loss based on the sample micro-expression coefficients and micro-expression labels. The parameters of the deep learning model may be adjusted based on micro-expression loss, image pixel loss, face key point loss, and emotion category loss.

[0081] According to another aspect of the present disclosure, a facial expression driving device is provided. Figure 8 As shown, the device 800 includes: a second facial image acquisition unit 810, configured to acquire a target image; a second facial parameter prediction unit 820, configured to perform facial parameter prediction based on the target image using a facial expression capture model to obtain target facial parameters, wherein the facial expression capture model is obtained by training using the device 700; and a driving unit 830, configured to perform facial expression driving on the target three-dimensional digital human based on the target facial parameters.

[0082] It is understood that the operations and effects of the units 810 to 830 in the device 800 can be referred to above. Figure 6 The description of steps S601 to S603 in the process are not repeated here.

[0083] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0084] According to an embodiment of the present disclosure, an electronic device, a readable storage medium and a computer program product are also provided.

[0085] refer to Fig. 9 , a block diagram of an electronic device 900 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0086] like Fig. 9 As shown, the device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0087] Multiple components in the device 900 are connected to the I / O interface 905, including: an input unit 906, an output unit 907, a storage unit 908, and a communication unit 909. The input unit 906 can be any type of device that can input information to the device 900. The input unit 906 can receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device, and can include but is not limited to a mouse, a keyboard, a touch screen, a trackpad, a trackball, a joystick, a microphone and / or a remote control. The output unit 907 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator and / or a printer. The storage unit 908 can include but is not limited to a disk, an optical disk. The communication unit 909 allows the device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver and / or a chipset, such as Bluetooth TM devices, 802.11 devices, WiFi devices, WiMax devices, cellular communication devices, and / or the like.

[0088] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning network algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above, such as the training method of the facial expression capture model and / or the facial expression driver. For example, in some embodiments, the training method of the facial expression capture model and / or the facial expression driver may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the training method of the facial expression capture model and / or the facial expression driver described above may be executed. Alternatively, in other embodiments, the computing unit 901 may be configured to execute the training method of the facial expression capture model and / or the facial expression driving in any other appropriate manner (eg, by means of firmware).

[0089] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0090] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0091] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0092] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0093] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0094] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0095] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0096] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.

Claims

1. A method for training a facial expression capture model, comprising: Get a sample face image; Based on the sample face image, using a deep learning model to predict face parameters to obtain sample face parameters; Based on the sample face parameters, a sample three-dimensional face model is generated using a three-dimensional face reconstruction model, and a predicted face image is rendered, wherein the sample face parameters include a sample micro-expression coefficient, which is a face parameter used to determine whether there is a mouth movement or change; Using a pre-trained emotion classification model, the sample face image and the predicted face image are respectively subjected to emotion classification to obtain a first emotion category corresponding to the sample face image and a second emotion category corresponding to the predicted face image; Calculating an emotion category loss based on the first emotion category and the second emotion category; Obtaining micro-expression labels of the sample facial image; Calculating micro-expression loss based on the sample micro-expression coefficient and the micro-expression label; and Based at least on the emotion category loss and the micro-expression loss, parameters of the deep learning model are adjusted to obtain a facial expression capture model.

2. The method according to claim 1, further comprising: Obtaining facial key points of the sample facial image and facial key points of the predicted facial image, and calculating facial key point losses, Wherein, the parameters of the deep learning model are adjusted based on the facial key point loss, the emotion category loss and the micro-expression loss.

3. The method according to claim 2, wherein: Obtaining sample face images includes: Performing key point detection on the original face image to obtain face key points of the original face image; and Based on the facial key points of the original facial image, the original facial image is cropped, resized and normalized to obtain the sample facial image and the facial key points of the sample facial image.

4. The method according to claim 2, further comprising: Extracting three-dimensional key points from the sample three-dimensional face model; as well as The three-dimensional key points are mapped to obtain the facial key points of the predicted facial image.

5. The method according to claim 2, further comprising: Calculating image pixel loss based on pixel values ​​of multiple pixels in the sample face image and pixel values ​​of multiple pixels in the predicted face image, Among them, the parameters of the deep learning model are adjusted based on the image pixel loss, the facial key point loss, the emotion category loss and the micro-expression loss.

6. The method according to any one of claims 1 to 5, wherein: The pre-trained emotion classification model is obtained by pre-training using video data with human faces and corresponding emotion category labels.

7. The method according to any one of claims 1 to 5, wherein: The deep learning model includes an image feature extraction backbone network and a face parameter prediction network. The deep learning model is used to predict the face parameters of the sample face image, and the sample face parameters obtained include: Based on the sample face image, extract image features using the image feature extraction backbone network to obtain sample face image features; and Based on the sample facial image features, the facial parameter prediction network is used to perform facial parameter prediction to obtain the sample facial parameters.

8. A facial expression driving method, comprising: Get the target image; Based on the target image, predicting facial parameters using a facial expression capture model to obtain target facial parameters, wherein the facial expression capture model is trained using the method according to any one of claims 1 to 7; as well as Based on the target face parameters, facial expression driving is performed on the target three-dimensional digital human.

9. A training device for a facial expression capture model, comprising: A first face image acquisition unit is configured to acquire a sample face image; A first face parameter prediction unit is configured to predict face parameters based on the sample face image using a deep learning model to obtain sample face parameters; A reconstruction rendering unit is configured to generate a sample three-dimensional face model based on the sample face parameters using a three-dimensional face reconstruction model, and render to obtain a predicted face image, wherein the sample face parameters include a sample micro-expression coefficient, which is a face parameter used to determine whether there is a mouth movement or change; An emotion classification unit is configured to use a pre-trained emotion classification model to perform emotion classification on the sample face image and the predicted face image respectively, to obtain a first emotion category corresponding to the sample face image and a second emotion category corresponding to the predicted face image; an emotion category loss calculation unit, configured to calculate an emotion category loss based on the first emotion category and the second emotion category; A micro-expression label acquisition unit, configured to acquire a micro-expression label of the sample face image; a micro-expression loss calculation unit configured to calculate a micro-expression loss based on the sample micro-expression coefficient and the micro-expression label; and A parameter adjustment unit is configured to adjust the parameters of the deep learning model based at least on the emotion category loss and the micro-expression loss to obtain a facial expression capture model.

10. The apparatus according to claim 9, further comprising: A face key point loss calculation unit is configured to obtain face key points of the sample face image and face key points of the predicted face image, calculate face key point losses, Wherein, the parameters of the deep learning model are adjusted based on the facial key point loss, the emotion category loss and the micro-expression loss.

11. The device according to claim 10, wherein: The first face image acquisition unit comprises: A key point detection unit is configured to perform key point detection on the original face image to obtain face key points of the original face image; and The image processing unit is configured to crop, resize and normalize the original face image based on the face key points of the original face image to obtain the sample face image and the face key points of the sample face image.

12. The apparatus according to claim 10, further comprising: A three-dimensional key point extraction unit, configured to extract three-dimensional key points from the sample three-dimensional face model; as well as A mapping unit is configured to map the three-dimensional key points to obtain the facial key points of the predicted facial image.

13. The apparatus according to claim 10, further comprising: an image pixel loss calculation unit, configured to calculate the image pixel loss based on the pixel values ​​of the plurality of pixels in the sample face image and the pixel values ​​of the plurality of pixels in the predicted face image, Among them, the parameters of the deep learning model are adjusted based on the image pixel loss, the facial key point loss, the emotion category loss and the micro-expression loss.

14. The device according to any one of claims 9 to 13, wherein: The pre-trained emotion classification model is obtained by pre-training using video data with human faces and corresponding emotion category labels.

15. The device according to any one of claims 9 to 13, wherein: The deep learning model includes an image feature extraction backbone network and a face parameter prediction network, and the first face parameter prediction unit includes: An image feature extraction subunit is configured to extract image features based on the sample face image using the image feature extraction backbone network to obtain sample face image features; and The face parameter prediction subunit is configured to perform face parameter prediction based on the sample face image features using the face parameter prediction network to obtain the sample face parameters.

16. A facial expression driving device, comprising: A second face image acquisition unit is configured to acquire a target image; A second facial parameter prediction unit is configured to predict facial parameters based on the target image using a facial expression capture model to obtain target facial parameters, wherein the facial expression capture model is obtained by training using the device according to any one of claims 9 to 15; as well as The driving unit is configured to drive the target three-dimensional digital human to perform facial expression based on the target human face parameters.

17. An electronic device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions to be executed by the at least one processor, and the instructions are executed by the at least one processor so as to enable the at least one processor to perform the method according to any one of claims 1 to 8.

18. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-8.

19. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.