Face motion capture method and device and electronic equipment
By combining unsupervised and supervised data learning methods to train neural network models, it solves the shortcomings of traditional two-dimensional face key point fitting methods in depth information and parameter settings, and achieves a low-cost, high-performance method suitable for ordinary users. Precision facial facial motion capture.
Patent Information
- Application Number
- CN202310180510.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
AI Technical Summary
The traditional facial motion capture method of monocular cameras for ordinary users is based on the fitting of two-dimensional facial key points and lacks the assistance of depth information, resulting in poor expression effects, and it is difficult to find parameter settings suitable for all users, making it difficult to implement Low-cost and high-accuracy facial motion capture.
Combining self-supervised learning of unsupervised data and strongly supervised learning of supervised data, the neural network model is trained to capture facial movements, using the facial key point information and facial mask information in the unsupervised data, combined with the supervised data. Expression information and pose information to achieve the training and application of facial motion capture models.
It provides a low-cost and high-precision facial motion capture method suitable for ordinary users, which improves the capture effect of expressions related to depth information. It is suitable for ordinary users, reduces costs, and improves the accuracy of the model. Generalization ability.
Smart Images

Figure CN118570833A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and specifically to a method and device for capturing facial motions, and electronic equipment. Background Art
[0002] With the development of metaverse-related industries, more and more technologies related to applications such as 3D vision and digital twins have gained attention from academia and industry. Among them, digital virtual characters in the metaverse are one of the areas that users pay the most attention to, and related technologies and applications have set off a boom in recent years. Since the quality of facial expressions of digital virtual characters is one of the most sensitive parts for users, although there are very mature facial capture systems in the fields of film, television and animation production, they are not suitable for ordinary users due to their high costs.
[0003] Traditional facial motion capture methods for ordinary users and monocular cameras are mostly based on fitting of two-dimensional facial key points. Since this method only considers the information of two-dimensional key points and lacks depth information assistance, it is less effective for expressions that are strongly related to depth information, such as puffing and pouting. At the same time, this method requires multiple parameters to be preset due to the use of fitting, and it is difficult to find a set of parameter settings that can be applied to all users. Therefore, finding a low-cost and high-precision facial motion capture method suitable for ordinary users has become an urgent problem to be solved. Summary of the invention
[0004] The present application provides a method and device for capturing facial motions, and an electronic device, in the hope of providing a low-cost and highly accurate facial motion capture method suitable for ordinary users.
[0005] In the first aspect, a method for capturing facial motion of a human face is provided in the present application, comprising:
[0006] Acquire unsupervised data, wherein the unsupervised data includes facial key point information and facial mask information;
[0007] Acquire supervised data, wherein the supervised data includes facial expression information and facial posture information;
[0008] Training a facial motion capture model according to a combination of the self-supervised learning of the unsupervised data and the strong supervised learning of the supervised data, wherein the facial motion capture model is a neural network model;
[0009] The trained facial motion capture model is used to capture facial motion of a human face.
[0010] It can be seen that the present application utilizes a large amount of supervised data and a small amount of unsupervised data, combines the advantages of self-supervised learning of unsupervised data and strong supervised learning of supervised data, and trains a facial motion capture model for facial motion capture, thereby providing a low-cost and high-precision facial motion capture method suitable for ordinary users through the facial motion capture model.
[0011] In a second aspect, a facial motion capture device of the present application includes:
[0012] An acquisition unit, used for acquiring unsupervised data, wherein the unsupervised data includes facial key point information and facial mask information;
[0013] The acquisition unit is further used to acquire supervised data, wherein the supervised data includes facial expression information and facial posture information;
[0014] A training unit, configured to train a facial motion capture model according to a combination of the self-supervised learning of the unsupervised data and the strong supervised learning of the supervised data, wherein the facial motion capture model is a neural network model;
[0015] The motion capture unit is used to capture facial motions of a human face using the trained facial motion capture model.
[0016] The third aspect is an electronic device of the present application, comprising a processor, a memory, and a computer program or instructions stored in the memory, wherein the processor executes the computer program or instructions to implement the steps in the method designed in the first aspect.
[0017] The fourth aspect is a computer-readable storage medium of the present application, wherein the computer-readable storage medium stores a computer program or instructions, and when the computer program or instructions are executed by a processor, the steps in the method designed in the first aspect are implemented.
[0018] The fifth aspect is a computer program product of the present application, comprising a computer program or instructions, wherein the computer program or instructions, when executed by a processor, implement the steps in the method designed in the first aspect above.
[0019] The beneficial effects brought about by the technical solutions of the second to fifth aspects can be referred to the technical effects brought about by the technical solution of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments of the present application are briefly introduced below.
[0021] Figure 1It is a flowchart of a method for capturing facial motion of a human face according to an embodiment of the present application;
[0022] Figure 2 It is a structural schematic diagram of a GAN model in an embodiment of the present application;
[0023] Figure 3 It is a structural schematic diagram of a training process of a GAN model in an embodiment of the present application;
[0024] Figure 4 is a structural diagram of a multi-task learning model in an embodiment of the present application;
[0025] Figure 5 is a schematic diagram of a structure of a bounding box where a face in image data is located in an embodiment of the present application;
[0026] Figure 6 It is a structural schematic diagram of a training process of a facial motion capture model in an embodiment of the present application;
[0027] Figure 7 is a schematic diagram of a process of searching for a facial motion capture model according to an embodiment of the present application;
[0028] Figure 8 This is a schematic diagram of a structure for determining a digital virtual character according to an embodiment of the present application;
[0029] Fig. 9 It is a block diagram of the functional units of a facial motion capture device according to an embodiment of the present application;
[0030] Fig.10 It is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to help those skilled in the art better understand the technical solutions of the present application, the following is a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the description of the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0032] It should be understood that the terms "first", "second", etc. involved in the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, software, product, or device that includes a series of steps or units is not limited to the listed steps or units, but also includes steps or units that are not listed, or also includes other steps or units inherent to these processes, methods, products, or devices.
[0033] The "embodiment" involved in the embodiments of the present application means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0034] In the embodiments of the present application, "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent the following three situations: A exists alone; A and B exist at the same time; B exists alone. Among them, A and B can be singular or plural.
[0035] In the embodiment of the present application, the symbol " / " can indicate that the objects associated with each other are in an "or" relationship. In addition, the symbol " / " can also indicate a division sign, that is, performing a division operation. For example, A / B can indicate A divided by B.
[0036] In the embodiments of the present application, "at least one item" or similar expressions refer to any combination of these items, including any combination of single items or plural items, and refer to one or more, and multiple refers to two or more. For example, at least one item of a, b, or c can represent the following seven situations: a, b, c, a and b, a and c, b and c, a, b, and c. Among them, each of a, b, and c can be an element or a set containing one or more elements.
[0037] The technical solutions and related concepts involved in the embodiments of the present application are described in detail below.
[0038] 1. Electronic equipment
[0039] The technical solution of the embodiment of the present application can be applied to electronic devices. Among them, the electronic device can be a handheld device, a vehicle-mounted device, a wearable device, an augmented reality (AR) device, a virtual reality (VR) device, a projection device, a projector, or other devices connected to a wireless modem, or a user equipment (UE), a terminal device, a terminal, a mobile terminal, a mobile phone (smartphone), a smart screen, a smart TV, a smart watch, a laptop, a smart speaker, a camera, a game controller, a microphone, a station (STA), an access point (AP), a mobile station (MS), a personal digital assistant (PDA), a personal computer (PC) or a relay device, etc.
[0040] In an embodiment of the present application, the electronic device may include a processor.
[0041] In some possible implementations, the processor may be used to run or load an operating system, which may be any one or more computer operating systems that implement business processing through processes, such as Linux operating system, Unix operating system, Android operating system, iOS operating system, Windows operating system, Zephyr operating system, real-time operating system (RTOS), DOS operating system, Mac operating system, ThreadX operating system, embedded operating system, NucleusPlus operating system, etc.
[0042] In some possible implementations, the processor may be a complete system on chip (SOC), may be a single chip, or may be an integration of multiple chips, and there is no specific limitation on this.
[0043] In some possible implementations, the processor may include one or more chips. For example, the chip may be a neural-network processing unit (NPU), a graphics processing unit (GPU), a central processing unit (CPU), an application processor (AP), a microcontroller unit (MCU), a single chip microcomputer (SCM), a single chip microcomputer, an image signal processor (ISP), a controller, a digital signal processor (DSP), a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a baseband processor, etc. Among them, different chips may be separated or integrated together as a SOC.
[0044] In some possible implementations, the processor may be single-core or multi-core.
[0045] In some possible implementations, the processor may run or load a multi-core subsystem, wherein the multi-core subsystem may be an operating system with multi-core processing capabilities.
[0046] In some possible implementations, the processor may also include a memory (also called a memory) for storing computer programs, instructions, data, etc.
[0047] For example, the processor may call a program stored in the memory to run an operating system.
[0048] For another example, the memory in the processor can store or cache instructions that the processor has just used or circulated. If the processor needs to use the instruction or data again, it can be directly called from the memory, thereby avoiding repeated access, reducing the waiting time of the processor and improving system efficiency.
[0049] For another example, the memory in the processor may also store or cache data, and the data may be synchronized or transmitted to other processors for execution.
[0050] In some possible implementations, the processor may include one or more communication interfaces, wherein the communication interface may include at least one of a serial peripheral interface (SPI), an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, a universal serial bus (USB) interface, and the like.
[0051] In an embodiment of the present application, the hardware and software structure of the electronic device may include a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer.
[0052] In some possible implementations, the hardware layer may include hardware such as a processor, a memory management unit (MMU), and a memory (also called storage).
[0053] In some possible implementations, the memory can be used to store software programs / computer programs / computer instructions / data, etc., and can include a program storage area and a data storage area. Among them, the program storage area can be used to store the software programs / computer programs / computer instructions required for the operating system or at least one function, and the software programs / computer programs / computer instructions required for the at least one function can be used to execute the technical solution of the embodiment of the present application; the data storage area can be used to store the data involved in the embodiment of the present application, etc.
[0054] It should be noted that the embodiments of the present application do not specifically limit the specific structure of the subject that executes the present solution, as long as it can be processed by running a computer program or instruction that records the method provided by the embodiments of the present application, or according to the method provided by the embodiments of the present application. For example, the subject that executes the technical solution of the embodiments of the present application can be an electronic device, or a processor / chip / device / module / unit that calls a computer program or instruction to execute the method described in the present application, and no specific limitation is made to this.
[0055] 2. A method for capturing facial motion
[0056] Traditional facial motion capture methods for ordinary users and monocular cameras are mostly based on the fitting of two-dimensional facial key points. Since this method only considers the two-dimensional key point information and lacks depth information assistance, it is less effective for expressions that are strongly related to depth information, such as puffing and pouting. At the same time, this method requires the preset of multiple parameters due to the use of fitting, and it is difficult to find a set of parameter settings that are suitable for all users. In this regard, an embodiment of the present application proposes a facial motion capture method, which is not only conducive to providing a low-cost and highly accurate facial motion capture method suitable for ordinary users. The following is a detailed description.
[0057] like Figure 1 As shown, Figure 1 : is a flowchart of a method for capturing facial motion of a human face according to an embodiment of the present application, which may include the following steps:
[0058] S110, obtaining unsupervised data, where the unsupervised data includes facial key point information and facial mask information.
[0059] S120: Obtain supervised data, where the supervised data includes facial expression information and facial posture information.
[0060] S130. According to the combination of self-supervised learning of unsupervised data and strong supervised learning of supervised data, a facial motion capture model is trained, where the facial motion capture model is a neural network model.
[0061] S140, performing facial motion capture of a human face using the trained facial motion capture model.
[0062] It can be seen that the present application utilizes a large amount of supervised data and a small amount of unsupervised data, combines the advantages of self-supervised learning of unsupervised data and strong supervised learning of supervised data, and trains a facial motion capture model for facial motion capture, thereby providing a low-cost and high-precision facial motion capture method suitable for ordinary users through the facial motion capture model.
[0063] 2. Specific implementation instructions
[0064] The following is the above Figure 1 Some implementation methods involved are described in detail.
[0065] 1) Unsupervised Data
[0066] a. Description
[0067] It should be noted that the unsupervised data may be unlabeled data, which has the characteristics of large quantity and good generalization, etc. The unsupervised data may include facial key point information and facial mask information.
[0068] For example, the facial key point information can be automatically detected by a facial key point detector. Among them, facial key point detection is also called facial key point positioning or face alignment, which refers to locating the key area positions of the face in a certain face image, including eyebrows, eyes, nose, mouth, facial contour, etc.
[0069] For example, face mask information can be automatically detected by a face mask detector.
[0070] b. Obtaining unsupervised data
[0071] It should be noted that the present application can perform facial key point detection and facial mask detection on image data (such as public face pictures and video data sets, etc.) to obtain unsupervised data, thereby achieving the acquisition of unsupervised data.
[0072] Since this application requires a large amount of unsupervised data, a large amount of image data is also required. However, the image data that can be collected publicly is limited. Therefore, this application introduces a generative adversarial network (GAN) model and generates more image data through the GAN model to obtain a large amount of unsupervised data.
[0073] For example, obtaining unsupervised data includes:
[0074] Input the images in the preset image dataset into the trained generative adversarial network model to obtain generated images;
[0075] The images in the preset image dataset and the generated images are respectively subjected to facial key point detection and facial mask detection to obtain unsupervised data.
[0076] Among them, the preset image data set can be understood as a set consisting of public image data (such as public face pictures and video data, etc.).
[0077] It can be seen that the present application can perform face key point detection and face facial mask detection on images in a preset image data set to obtain partial unsupervised data, and then input the images in the preset image data set into the trained GAN model to obtain generated images, and finally perform face key point detection and face facial mask detection on the generated images to obtain the remaining unsupervised data, thereby ensuring that a large amount of unsupervised data can be obtained.
[0078] c.GAN model
[0079] In the fields of image processing, computer graphics, and computer vision, many problems can be viewed as generating the corresponding output image from the input image. The representation of an image includes RGB images, edge images, and semantic images. The image generation problem based on a deep neural network model can be expressed as converting the representation of an image into another representation given enough training data, such as converting a sketch into a real image. The GAN model is a deep neural network model that is commonly considered for image generation problems. The GAN model can not only learn the mapping relationship from the input image to the output image, but also learn the loss function used to train the mapping relationship.
[0080] The GAN model includes a generative network and a discriminative network. The generative network G can capture the distribution of sample data and use noise that obeys a certain distribution to generate a sample similar to the real training data. The closer to the real sample, the better. The discriminative network D is generally a multi-classification model used to estimate the probability that the sample data tends to the real sample.
[0081] d. How to train the GAN model
[0082] It should be noted that if the sample data comes from a real sample, the judgment network D outputs a larger probability value, otherwise, it outputs a smaller probability value. In addition, during the training process of the GAN model, the network parameters of the generating network G are usually fixed to update the network parameters of the judging network D, and then the network parameters of the judging network D are fixed to update the network parameters of the generating network G, and the training is iterated alternately. During the entire training process, the generating network G and the judging network D both optimize their respective network parameters as much as possible, thereby forming a competitive confrontation until they reach a dynamic equilibrium state. At this point, the data samples generated by the generating network G are almost the same as the distribution of the real samples, and the judging network D can no longer judge the true or false of the generated data samples.
[0083] See also Figure 2 , Figure 2: This is a schematic diagram of the structure of a GAN model provided in an embodiment of the present application. The generating network G inputs a noise vector z, and generates an image G(z) through hidden layers such as convolution, activation function, pooling, and deconvolution, and then inputs the generated G(z) together with the real sample x obtained from the image data set into the judgment network D; the judgment network D calculates the probability values D(G(z)) and D(x) through hidden layers such as convolution and activation function, and optimizes the objective function of the GAN model through the cross entropy function. The objective function of the optimized GAN model is expressed as:
[0084]
[0085] Below Figure 3 Take as an example to illustrate the training process of the GAN model of this application.
[0086] In some possible implementations, the training of the GAN model includes the following steps:
[0087] ◆Acquire a first sample image and a second sample image from a preset image database;
[0088] It should be noted that the preset image data set may include a "sketch-real image" sample pair, wherein the sketch and the real image are in one-to-one correspondence. In addition, the preset image data set may also include a "sketch portrait-real portrait" sample pair. For example, in the case where the preset image data set is a "sketch-real image" sample pair, the first sample image is a sketch A, and the second sample image is a real image B corresponding to the sketch A. Alternatively, in the case where the preset image data set is a "simple hand-drawn picture-sketch" sample pair, the first sample image is a simple hand-drawn picture C, and the second sample image is a sketch D corresponding to the simple hand-drawn picture C, and no specific limitation is made here.
[0089] exist Figure 3 In the example, a first sample image X and a second sample image Y are obtained from a preset image dataset.
[0090] ◆ Multiple image blocks of the first sample image (such as X = [x1, x2, ..., x M ]) and a plurality of image blocks of a second sample image (such as Y = [y1, y2, ..., y M ]) Input the judgment network D to obtain the first probability average value;
[0091] It should be noted that in Figure 3 In (a), for the first sample image X, M image blocks of X are obtained, that is, X = [x1, x2, ..., x M ]; perform image block processing on the second sample image Y to obtain M image blocks of Y, that is, Y = [y1, y2, ..., y M], M is a positive integer.
[0092] X=[x1,x2,…,x M ] and Y=[y1,y2,…,y M ] Input the judgment network D, and get M probability values D(X,Y)={log[D(x1,y1)],…,log[D(x M ,y M )]}, and calculate the average value of D(X,Y) to get the first probability average value
[0093] ◆ Input multiple image blocks of the first sample image into the generation network G to obtain multiple target image blocks;
[0094] It should be noted that in Figure 3 In (b), replace X = [x1, x2, …, x M ] Input the generative network G, and get M image blocks G(X)=[G(x1),…,G(x M )].
[0095] ◆ Input multiple image blocks of the first sample image and multiple target image blocks into the judgment network D to obtain a second probability average value;
[0096] It should be noted that in Figure 3 In (b), replace X = [x1, x2, …, x M ] and G(X)=[G(x1),…,G(x M )] Input the judgment network D, and get M probability values G(X,G(X))={log[1-D(x1,G(x1))],…,log[1-D(x M ,G(x M ))]}, and calculate the average value of G(X,G(X)) to get the second probability average value
[0097] ◆ Calculate the average value of the norm value of the difference between multiple image blocks of the second sample image and multiple target image blocks;
[0098] It should be noted that in Figure 3 In the calculation, Y=[y1,y2,…,y M ] and G(X)=[G(x1),…,G(x M )], we get ||*||1 indicates the L1 norm.
[0099] Under the condition that the average value of the norm value is used as the Lagrange multiplier method, the objective function of the GAN model is determined with the goal of maximizing the first probability average value and minimizing the second probability average value;
[0100] It should be noted that in Figure 3 In the above example, the objective function of the GAN model can be:
[0101]
[0102] Where λ represents the Lagrange multiplier parameter.
[0103] In addition, the objective function of the GAN model can be composed of the objective function of the judgment network D and the objective function of the generation network G. They are explained below.
[0104] The objective function of the judgment network D can be:
[0105]
[0106] It can be seen that in the case of optimizing the discriminant model D, the first term D(x,y) in the objective function of the discriminant model D is equivalent to the average probability value obtained from the true sample (real image), so the larger its value, the better. In other words, the closer the prediction result of the true sample is to 1, the better. The second term D(x,G(x)) in the objective function of the judgment network D is equivalent to the average probability value obtained from the false sample (sketch image), and the prediction structure of the false sample that needs to be optimized is as close to 0 as possible. In addition, the third term of the objective function of the judgment network D is the Lagrange multiplier method condition. In order to ensure that the first and second terms can be maximized at the same time, the second term is changed to 1-D(x,G(x)).
[0107] The objective function of the generated model G can be:
[0108]
[0109] It can be seen that when optimizing the generated network G, the average probability value of D(x, G(x)) obtained by the false sample (sketch) in the first term of the objective function of the generated network G needs to be optimized to be as close to 1 as possible. In addition, the second term of the objective function of the generated network G is the Lagrange multiplier method condition. In order to unify the 1-D(x, G(x)) form consistent with the above, the first term is minimized. Then, the objective function of the judgment network D and the objective function of the generated network G are combined to obtain the objective function of the GAN model.
[0110] ◆Alternately train the generation network and the judgment network according to the preset image data set and objective function to obtain the trained GAN model.
[0111] It should be noted that the judgment network D is iteratively optimized by maximizing the objective function of the judgment network D, and the generation network G is iteratively optimized by minimizing the objective function of the generation network G. Finally, the judgment network D and the generation network G are continuously and alternately trained according to the preset image data set to obtain the trained GAN model.
[0112] 2) Supervised Data
[0113] a. Description
[0114] It should be noted that the supervised data may be labeled data, which has the characteristics of deep information and high data accuracy. The supervised data may include facial expression information and facial posture information.
[0115] For example, facial expression information can be obtained by facial expression detection; facial posture information can be obtained by facial posture detection.
[0116] b. How to obtain supervised data
[0117] It should be noted that facial expression detection and facial posture information usually require the deployment of multiple neural network models to achieve. Since facial expression and facial posture are actually two related and dependent tasks, using multiple neural network models will lead to poor correlation and dependence between facial expression detection and facial posture detection, resulting in poor accuracy, deployability and generalization of the entire model.
[0118] In addition, since the deployment of neural network models requires a certain amount of space resources and consumes a certain amount of power, the more neural network models are deployed, the more space resources are occupied and the more power is consumed.
[0119] In order to improve the accuracy, deployability and generalization of the model, as well as reduce the occupancy of space resources and power consumption, this application adopts multi-task learning (MTL) to simultaneously detect facial expressions and facial postures.
[0120] In the specific implementation, the present application adopts a multi-task learning approach to define facial expression detection as a facial expression detection task, and defines facial posture detection as a facial posture detection task, and finally deploys the facial expression detection task and the facial posture detection task on a multi-task learning model, which can also be regarded as a neural network model.
[0121] In this way, the present application can input the collected image data into the trained multi-task learning model to obtain supervised data, thereby achieving the acquisition of supervised data.
[0122] The following are detailed explanations respectively.
[0123] c. Multi-task learning, facial expression detection task, facial pose detection task
[0124] Multi-task learning is a promising field in machine learning. Its goal is to learn multiple related tasks together so that during the learning process of multiple tasks, these tasks can share their learned information to help their own learning, so as to achieve better accuracy and generalization than single-task learning.
[0125] Based on this, this application adopts a multi-task learning approach to define facial expression detection as a facial expression detection task, and defines facial posture detection as a facial posture detection task, to achieve synchronous / simultaneous detection of facial expression and facial posture, so as to improve accuracy and generalization effect.
[0126] d. Multi-task learning model
[0127] ①Description
[0128] like Figure 4 As shown, the multi-task learning model includes a main network, a first branch network and a second branch network, and the output of the last layer of the main network is connected to the first branch network and the second branch network respectively.
[0129] Among them, the main network can be used to extract features from the collected image data to obtain a feature map, and is a neural network.
[0130] Among them, the first branch network can be used to detect facial expressions based on the feature map, and is a neural network to achieve the facial expression detection task.
[0131] Among them, the second branch network can be used to detect face posture according to the feature map, and is a neural network to achieve the face posture detection task.
[0132] It can be seen that compared to the method of deploying multiple neural network models to realize facial expression detection and facial posture detection, the present application uses the multi-task learning model to realize the synchronous / simultaneous detection of facial expression and facial posture by multi-task learning.
[0133] Since only the multi-task learning model needs to be deployed, it is helpful to reduce the space resource occupation and power consumption, and reduce the model size to improve the deployability of the model. In addition, since the multi-task learning method is used to synchronously / simultaneously detect facial expressions and facial postures, it has higher accuracy and generalization than detecting facial expressions and facial postures separately.
[0134] In addition, since the output of the last layer of the main network is connected to the first branch network and the second branch network respectively, the facial expression detection task and the facial pose detection task share a main network, so that the facial expression detection task uses the relevant information in the facial pose detection task as a regular term to improve the accuracy and generalization of this task, and the facial pose detection task uses the relevant information in the facial expression detection task as a regular term to improve the accuracy and generalization of this task, so that the two tasks can share information, be related to each other, rely on each other and improve their respective effects, and ultimately improve the accuracy and generalization of the model.
[0135] ②Center point
[0136] In the process of detecting facial expressions and facial postures, the multi-task learning model of the embodiment of the present application can be used to describe the facial expressions and facial postures as the center point of the bounding box where the face is located, and to describe the facial expressions and facial postures as a center point for detection. In other words, the center point corresponds to the facial expression or facial posture.
[0137] For example, Figure 5 As shown, there is a bounding box 520 where the face is located in the image data 510. The center point of the bounding box 520 is point 530.
[0138] It should be noted that in target detection algorithms, most neural network models describe targets as bounding boxes that enclose the target and assign corresponding categories to each bounding box. However, this method generally requires setting bounding boxes in advance and performing complex and repetitive calculations, resulting in low operating efficiency and large amount of calculations.
[0139] Since the present application needs to detect facial expressions and facial postures, the present application regards the targets as facial expressions and facial postures, and describes facial expressions and facial postures as center points, while other characteristics of facial expressions and facial postures (such as size, direction, and posture, etc.) can be directly regressed in the feature map extracted by the main network. In this way, the multi-task learning model of the present application uses the center point for detection, which is conducive to better sharing a main network for the facial expression detection task and the facial posture detection task.
[0140] ③Main Network
[0141] In an embodiment of the present application, the main network, which can be used to extract features from the collected image data to obtain a feature map, is a neural network.
[0142] In specific implementation, the main network can be used to extract features from the collected image data by downsampling first and then upsampling to obtain a feature map, can be used to extract features from the image data by upsampling first and then downsampling to obtain a feature map, and can be used to extract features from the image data by downsampling first and then downsampling to obtain a feature map.
[0143] It should be noted that, whether the method of downsampling first and then upsampling is adopted, or the method of upsampling first and then downsampling is adopted, the embodiment of the present application needs to ensure that the feature map is a downsampling of the image data. This is because, since the feature map is a downsampling of the image data, the subsequent first branch network and the second branch network can reduce the amount of calculation when processing the feature map, prevent overfitting, and increase the receptive field, so that the first branch network and the second branch network can learn more global information from each other, thereby improving the accuracy and generalization effect.
[0144] For example, the size of the image data is H*W, where H is the height of the image data and W is the width of the image data. After feature extraction by the main network, a feature map of size H / 4*W / 4 is obtained, where 4 is the stride of downsampling, i.e., the downsampling multiple is 4.
[0145] In some possible implementations, the image data may be an image captured of a user's face, etc.
[0146] In some possible implementations, the main network can be a convolutional neural network (CNN).
[0147] For example, the main network may be one of the main networks of AlexNet, VGGNet, GooLeNet, ResNet, InceptionNet, MobileNet, and centerNet, and may be a neural network with a decoder-encoder structure.
[0148] ④The first branch network
[0149] In an embodiment of the present application, the first branch network can be used to detect facial expressions based on the feature map, and is a neural network to achieve the facial expression detection task.
[0150] It can be understood that the first branch network is a neural network with a facial expression detection function, and facial expression detection is achieved by training the first branch network.
[0151] In an embodiment of the present application, the first branch network may be composed of three sub-networks, and each sub-network outputs a different feature map.
[0152] For the convenience of description and distinction, the present application refers to the three sub-networks as "the first sub-network", "the second sub-network" and "the third sub-network", respectively.
[0153] ◆First sub-network
[0154] In an embodiment of the present application, the first sub-network can be used to utilize the feature map output by the main network to output a feature map for describing a facial expression category (expression classification, cls).
[0155] For the convenience of description and distinction, this application refers to the feature map as the "first category feature map". Each coordinate point in the first category feature map corresponds to a score value (for the convenience of distinction and description, the score value is called the "first score value"), and the first score value is used to indicate the confidence that the coordinate point corresponding to the first score value is the center point of the bounding box where the facial expression is located.
[0156] It should be noted that, in the embodiment of the present application, the confidence that each coordinate point in the first category feature map is the center point can be represented by the first scoring value. The higher the value of the first scoring value, the greater the confidence that the coordinate point corresponding to the first scoring value is the center point; otherwise, the smaller the confidence.
[0157] In some possible implementations, the number of output channels of the first subnetwork is C expression , C expression is the number of facial expression categories. That is, the first sub-network outputs C expression The first category feature map.
[0158] It should be noted that the size of the feature map output by the main network is H / k*W / k*C, where H is the height of the feature map, W is the width of the feature map, k is the downsampling step of the main network, and C is the number of output channels of the last layer of the main network. Therefore, after the feature map is input into the first sub-network, the size of the first category feature map output by the first sub-network is H / k*W / k*C expreseion .
[0159] ◆Second sub-network
[0160] In an embodiment of the present application, the second sub-network can be used to utilize the feature map output by the main network to output a feature map for describing the width / height / size (twth) of the bounding box where the facial expression is located.
[0161] For the convenience of description and distinction, this application refers to the feature map as a "first width-height feature map". That is, the first width-height feature map can be used to regress the width and height / size of the bounding box where the facial expression is located.
[0162] In some possible implementations, the number of output channels of the second sub-network is 2. That is, the second sub-network outputs two first width-height feature maps, wherein the coordinate points in one first width-height feature map represent the width of the bounding box where the facial expression is located, and the coordinate points in the other first width-height feature map represent the height of the bounding box where the facial expression is located.
[0163] It should be noted that the size of the feature map output by the main network is H / k*W / k*C. Therefore, after the feature map is input into the second sub-network, the size of the first width and height feature map output by the second sub-network is H / k*W / k*2.
[0164] ◆The third sub-network
[0165] In an embodiment of the present application, the third sub-network can be used to utilize the feature map output by the main network to output the offset (offset / txty) of the center point of the bounding box describing the facial expression.
[0166] It should be noted that when remapping the feature map output by the main network to the image data, there will be accuracy errors. Therefore, for each center point, an additional center point offset is required. to compensate.
[0167] For the convenience of description and distinction, the present application refers to the feature map as a “first offset feature map.” That is, the first offset feature map can be used to offset the center point of the boundary box where the facial expression is regressed.
[0168] In some possible implementations, the number of output channels of the third sub-network is 2. That is, the third sub-network outputs two first offset feature maps. The coordinate point in one first offset feature map represents the offset tx of the center point of the bounding box where the facial expression is located, and the coordinate point in the other first offset feature map represents the offset ty of the center point of the bounding box where the facial expression is located.
[0169] It should be noted that the size of the feature map output by the main network is H / k*W / k*C. Therefore, after the feature map is input into the third sub-network, the size of the first offset feature map output by the third sub-network is H / k*W / k*2.
[0170] ⑤The second branch network
[0171] In an embodiment of the present application, the second branch network can be used to perform face pose detection based on the feature map, and is a neural network to achieve the face pose detection task.
[0172] It can be understood that the second branch network is a neural network with a face pose detection function, and face pose detection is achieved by training the second branch network.
[0173] In an embodiment of the present application, the second branch network may be composed of two sub-networks, and each sub-network outputs a different feature map.
[0174] For the convenience of description and distinction, the present application refers to the two sub-networks as the "fourth sub-network" and the "fifth sub-network", respectively.
[0175] ◆The fourth sub-network
[0176] In an embodiment of the present application, the fourth sub-network can be used to utilize the feature map output by the main network to output a feature map for describing the facial posture category.
[0177] For the convenience of description and distinction, this application refers to the feature map as the "second category feature map". Each coordinate point in the second category feature map corresponds to a score value (for the convenience of distinction and description, the score value is called the "second score value"), and the second score value is used to indicate the confidence that the coordinate point corresponding to the second score value is a face pose.
[0178] It should be noted that in the embodiment of the present application, the confidence that each coordinate point in the second category feature map is the center point corresponding to the face posture can be represented by the second scoring value. The higher the value of the second scoring value, the greater the confidence that the coordinate point corresponding to the second scoring value is the face posture; otherwise, the smaller the confidence.
[0179] In some possible implementations, the number of output channels of the fourth subnetwork is C posture , C posture is the number of face pose categories. In other words, the fourth subnetwork outputs C posture The second category feature map.
[0180] It should be noted that the size of the feature map output by the main network is H / k*W / k*C. Therefore, after the feature map is input into the fourth sub-network, the size of the second category feature map output by the fourth sub-network is H / k*W / k*C posture .
[0181] ◆Fifth sub-network
[0182] In an embodiment of the present application, the fifth sub-network can be used to utilize the feature map output by the main network to output an offset (offset / txty) of the center point corresponding to the facial posture.
[0183] It should be noted that when remapping the feature map output by the main network to the input image, there will be accuracy errors. Therefore, for each center point, an additional center point offset is required. to compensate.
[0184] For the convenience of description and distinction, the present application refers to the feature map as a “second offset feature map.” That is, the second offset feature map can be used to regress the offset of the center point corresponding to the face pose.
[0185] In some possible implementations, the number of output channels of the fifth sub-network is 2. That is, the fifth sub-network outputs two second offset feature maps. Among them, the coordinate point in one second offset feature map represents the offset tx of the center point corresponding to the face posture, and the coordinate point in the other second offset feature map represents the offset ty of the center point corresponding to the face posture.
[0186] It should be noted that the size of the feature map output by the main network is H / k*W / k*C. Therefore, after the feature map is input into the fifth sub-network, the size of the second offset feature map output by the fifth sub-network is H / k*W / k*2.
[0187] ⑥ Training of the first branch network
[0188] It should be noted that the present application trains the first branch network and the second branch network simultaneously. For the training of the first branch network, when the reference truth (ground truth) is used as the input to the main network, the center point in the ground truth (i.e., the center point of the bounding box where the facial expression is located) p∈R 2 , R is the Gaussian kernel radius. Therefore, after the ground truth is input into the main network, in the feature map output by the main network, the center point p corresponds to the coordinate point in the feature map r is the downsampling step of the main network. In order to make the training process smoother, this application uses Gaussian kernel to smooth the ground truth. For this, the values of the pixels around the center point p after Gaussian kernel processing are:
[0189]
[0190] in, is the standard deviation of the size of the bounding box around the center point p.
[0191] ◆The loss function L of the first sub-network cls_1
[0192] In the embodiment of the present application, combined with the principle of focal loss function, the loss function L of the first sub-network is cls_1 for:
[0193]
[0194] in, Yesxyc The corresponding prediction value is the first scoring value; a and β are two hyperparameters of focal loss, for example, a=2, β=4; N1 is the number of center points of the bounding box where the facial expression in the ground truth is located.
[0195] ◆The loss function L of the second sub-network twth
[0196] In the embodiment of the present application, the size of the bounding box where the center point p is located is The corresponding predicted value is Therefore, the loss function L of the second sub-network is twth for:
[0197]
[0198] ◆The loss function L of the third sub-network txty_
[0199] When remapping the feature map output by the main network to the ground truth, it will cause accuracy errors, so for the coordinate points An additional coordinate point is required Offset Therefore, the loss function L of the third sub-network is txty_ for:
[0200]
[0201] ◆The loss function L of the first branch network expression
[0202] In combination with the above, this application can cls_1 , L twth and L txty_ Weighted to obtain the loss function of the first branch network. Therefore, the loss function L of the first branch network is expression for:
[0203] L expression = cls_1 + txty * txty_ + twth * twth ;
[0204] Among them, μ txty It is used to adjust L txty_ Account for L expression The ratio of the hyperparameters, for example, μ txty =1;μ twth It is used to adjust L twth Account for L expression The ratio of the hyperparameters, for example, μtwth =0.1.
[0205] ⑦ Training of the second branch network
[0206] It should be noted that the present application trains the first branch network and the second branch network simultaneously. For the training of the second branch network, when the ground truth is used as the input to the main network, the center point (i.e., face position) p∈R 2 , R is the Gaussian kernel radius. Therefore, after the ground truth is input into the main network, in the feature map output by the main network, the center point p corresponds to the coordinate point in the feature map r is the downsampling step of the main network. In order to make the training process smoother, this application uses Gaussian kernel to smooth the ground truth. For this, the values of the pixels around the center point p after Gaussian kernel processing are:
[0207]
[0208] in, is the standard deviation of the size of the bounding box around the center point p.
[0209] ◆The loss function L of the fourth sub-network cls_2
[0210] In the embodiment of the present application, combined with the principle of focal loss function, the loss function L of the fourth sub-network is cls_2 for:
[0211]
[0212] in, Yes xyc The corresponding prediction value is the second scoring value; a and β are two hyperparameters of focal loss, for example, a=2, β=4; N2 is the number of face poses in the input image.
[0213] ◆The loss function L of the fifth sub-network txty_
[0214] When remapping the feature map output by the main network to the ground truth, it will cause accuracy errors, so for the coordinate points An additional coordinate point is required Offset Therefore, the loss function L of the fifth sub-network is txty_ for:
[0215]
[0216] ◆The loss function L of the second branch network posture
[0217] In combination with the above, this application can cls_2 and L txty_ The weighting is performed to obtain the loss function of the second branch network. Therefore, the loss function L of the second branch network is posture for:
[0218] L posture = cls_2 + txty ◆ txty_ ;
[0219] Among them, γ txty It is used to adjust L txty_ Account for L posture The ratio of hyperparameters, for example, γ txty =1.
[0220] ⑧ Loss function L of the neural network model multi_task
[0221] In combination with the above, this application can expression and L posture Weighted to get the loss function of the neural network model. Therefore, the loss function L of the neural network model multi_task for:
[0222] L multi_task = expression L expression + posture L posture ;
[0223] Among them, μ expression It is used to adjust l expression Account for L multi_task The ratio of the hyperparameters, for example, μ expression =1;γ posture It is used to adjust L expression Account for L multi_task The ratio of hyperparameters, for example, γ posture =1.
[0224] 3) Facial MoCap Model
[0225] a. Facial MoCap Model
[0226] It should be noted that the facial motion capture model can be a neural network model and can have any network structure.
[0227] For example, the facial motion capture model consists of a lightweight encoder and a differentiable renderer as a decoder.
[0228] b. Training of facial motion capture model
[0229] It should be noted that the present application can train the facial motion capture model based on a combination of self-supervised learning of unsupervised data and strong supervised learning of supervised data.
[0230] In this way, the present application not only utilizes the characteristics of large quantity and good generalization of unsupervised data, but also utilizes the characteristics of deep information and high data accuracy of supervised data, and combines the advantages of self-supervised learning of unsupervised data and strong supervised learning of supervised data to train the facial motion capture model, so that the trained facial motion capture model has better accuracy and generalization effect, thereby providing a low-cost and high-precision facial motion capture method suitable for ordinary users through the facial motion capture model.
[0231] In some possible implementations, training a facial motion capture model based on a combination of self-supervised learning of unsupervised data and strongly supervised learning of supervised data may include the following steps:
[0232] Perform self-supervised learning on unsupervised data, and use the learned unsupervised data to train the facial motion capture model by combining the error constraints of facial key points and the error constraints of facial rendering results;
[0233] Strong supervised learning is performed on the supervised data, and the learned supervised data is used to train the facial motion capture model by combining facial key point error constraints, facial rendering result error constraints, facial expression information error constraints and facial pose information error constraints.
[0234] It should be noted that the core points of facial motion capture model training are training data, network structure and loss function. Among them, the facial motion capture model is trained through training data, and the goal of the training process is to minimize the loss function.
[0235] For training data, the present application can perform self-supervised training on unsupervised data, and perform strong-supervised training on supervised data.
[0236] As for the network structure, the facial motion capture model of the present application may include a lightweight encoder and a differentiable renderer as a decoder. The encoder and the differentiable renderer are required to participate in training, while only the encoder is required during deployment, which has a low computational cost.
[0237] For the loss function, when the facial motion capture model is trained using the learned unsupervised data, the loss function can be:
[0238] Loss function = face key point error constraint + face rendering result error constraint;
[0239] Among them, the facial key point error constraint can represent the error between the facial key point information estimated by the facial motion capture model and the actual facial key point information (i.e., the facial key point information in the unsupervised data after learning).
[0240] Among them, the face rendering result error constraint can represent the pixel error between the face rendering result estimated by the facial motion capture model and the input image data (ie, the image data in the unsupervised data after learning).
[0241] For the loss function, when the facial motion capture model is trained using the learned supervised data, the loss function can be:
[0242] Loss function = face key point error constraint + face rendering result error constraint + face expression information error constraint + face pose information error constraint;
[0243] Among them, the facial key point error constraint can represent the error between the facial key point information estimated by the facial motion capture model and the actual facial key point information (i.e., the facial key point information in the supervised data after learning).
[0244] Among them, the face rendering result error constraint can represent the pixel error between the face rendering result estimated by the facial motion capture model and the input image data (ie, the image data in the supervised data after learning).
[0245] Among them, the facial expression information error constraint can represent the error between the facial expression information estimated by the facial motion capture model and the real facial expression information (ie, the facial expression information in the supervised data after learning).
[0246] Among them, the face pose information error constraint can represent the error between the face pose information estimated by the facial motion capture model and the actual face pose information (ie, the face pose information in the supervised data after learning).
[0247] It can be seen that the present application uses a combination of facial key point error constraints and facial rendering result error constraints to train the facial motion capture model for unsupervised data. In addition, the facial key point error constraints, facial rendering result error constraints, facial expression information error constraints, and facial posture information error constraints are used to train the facial motion capture model for supervised data, thereby achieving strong supervised learning of supervised data.
[0248] For example, a facial motion capture model consists of a lightweight encoder and a differentiable renderer as a decoder, such as Figure 6As shown, the supervised data is input into the encoder, and then input into the differentiable renderer through the error constraints of facial expression information and facial pose information. Finally, the facial key point error constraints and facial rendering result error constraints are passed to realize the training of the facial motion capture model.
[0249] c. Neural Architecture Search (NAS)
[0250] NAS is one of the hottest research topics in the field of artificial intelligence in recent years. The core elements of the NAS algorithm include search space, search strategy, and performance evaluation strategy. The search space defines the set of searchable neural network structures, that is, the solution space. The search strategy defines how to find the optimal neural network structure in the search space. The performance evaluation strategy defines how to evaluate the network performance of the searched neural network structure, and the network performance of the neural network structure can be measured by indicators such as accuracy and computing power (abbreviated as computing power).
[0251] The principle of the NAS algorithm can be as follows: define the search space; in each iteration of the search process, a neural network structure called a "sub-network" is searched from the search space through a search strategy; the sub-network is trained on the training sample set, and the performance of the sub-network is evaluated on the validation set through a performance evaluation strategy, so as to gradually optimize the network structure until the sub-network with the best performance is found.
[0252] ① Search space
[0253] The search space defines the types and sets of neural network structures that the NAS algorithm can search, that is, the solution space, and also defines how the neural network structure should be described.
[0254] The calculations implemented by a neural network can be abstracted into a directed acyclic graph (DAG) with no isolated nodes. The nodes of the DAG represent the layers of the neural network, or the feature maps in the convolutional network; the edges of the DAG represent the flow of data, or operations (OP), which can also be called operators, such as convolution and pooling.
[0255] Each node of the DAG can receive data from its predecessor node (with edge injection), and after calculation, output the data to the subsequent node (with edge injection). Theoretically, as long as it is a DAG without isolated nodes, it is a legal neural network structure. According to different scales, the structural definition of the neural network contains the following levels of information:
[0256] ◆Network topology
[0257] The topology of a network can describe how many layers a neural network has and the connections between these layers. Among them, the simplest neural network is a linear chain structure, and its corresponding graph has at most one predecessor node and one successor node, which is similar to a linked list in a data structure. When describing the topology of a network, the predecessor node is generally used to define it, that is, to define the predecessor node of each node. Once this information is determined, the network topology is determined.
[0258] ◆Type of each layer
[0259] In the neural network structure, the first layer is the input layer, the last layer is the output layer, and the types of the layers in the middle are optional. They represent various operations (operations / operators), i.e., the types of layers. Typical ones include full connection, convolution, deconvolution, separable convolution, dilated convolution, pooling, activation function, etc.
[0260] Hyperparameters within each layer
[0261] The hyperparameters of the convolution layer include the size of the convolution kernel, the number of convolution kernels, the number of channels of the convolution kernel, the height, width, horizontal stride, vertical stride, etc.
[0262] The hyper parameters of the pooling layer include pooling kernel height, pooling kernel width, horizontal step size, vertical step size, etc.
[0263] The hyperparameters of the fully connected layer include the number of neurons.
[0264] The hyperparameters of the activation function layer include the type of activation function, the parameters of the activation function, etc.
[0265] In order to improve the search efficiency, the search space is sometimes limited or simplified. For example, the network is divided into basic cells, and these cells are stacked to form a more complex network. A cell consists of multiple nodes and multiple edges, which are repeated many times in the entire network, but with different weight parameters.
[0266] ②Search strategy
[0267] The search strategy defines how to find the optimal neural network structure in the search space. For example, the search strategy includes search strategies based on reinforcement learning, search strategies based on genetic algorithms, search strategies based on gradient descent, etc.
[0268] ③Performance evaluation strategy
[0269] The performance evaluation strategy defines how to evaluate the performance of the searched neural network structure, and the performance of the neural network structure can be measured by indicators such as accuracy and computing power (abbreviated as computing power).
[0270] d. Acquisition of facial motion capture model
[0271] ①Description
[0272] It should be noted that the facial motion capture model of the present application can be searched from the supernet of the trained target neural network architecture search; wherein the supernet of the target neural network architecture search is obtained by adjusting the hyperparameters of the target subnetwork in the supernet of the preset neural network architecture search.
[0273] It can be seen that the present application achieves the construction of a target neural network architecture search supernet by adjusting the hyperparameters of the target subnetwork in the supernet of the preset neural network architecture search, so that the supernet of the target neural network architecture search and the target subnetwork can have the same performance.
[0274] In this way, when the target subnetwork has the best network performance, the supernet of the target neural network architecture search may also have the best network performance. Then, the facial motion capture model is searched from the supernet of the trained target neural network architecture search, so that the facial motion capture model meets the requirements of computing power and accuracy, and the possibility of searching for a facial motion capture model with excellent computing power and accuracy is realized.
[0275] ②Preset neural network architecture search
[0276] In an embodiment of the present application, the preset neural network architecture search may be a NAS based on a gradient descent search strategy, may be a NAS with a continuously relaxed search space, or may be a NAS with a continuously relaxed search space and based on a gradient descent search strategy.
[0277] For example, the preset neural network architecture search may include Differentiable Architecture Search (DARTS).
[0278] ③ Target neural network architecture search
[0279] In an embodiment of the present application, the target neural network architecture search may be a NAS in which the training and search processes are decoupled.
[0280] For example, targeted neural network architecture search can include training one network and specializing it for efficient deployment (TrainOne Network and Specialize it for Efficient Deployment, Once-For-All).
[0281] ④ Search process of facial motion capture model
[0282] like Figure 7 As shown, Figure 7 This is an overall flow chart of searching for a facial motion capture model in an embodiment of the present application, and the specific steps are as follows:
[0283] Step 1: Define the search space for the preset neural network architecture search
[0284] It should be noted that the search space for the preset neural network architecture search may include a list of operators (operations), wherein the operator types may include convolution, pooling, identity, and the like.
[0285] Step 2: Build a supernet for the preset neural network architecture search
[0286] It should be noted that the supernet of the preset neural network architecture search can be regarded as a stack of cells. Among them, the cell represents a directed acyclic graph (DAG). Each node in the DAG represents a feature graph, and each node is connected by at least one edge, and each edge represents an operator (operation). Each edge corresponds to a weight parameter (such as the weight of the convolution kernel).
[0287] Step 3: Get the preset training data
[0288] Step 4: Train the supernet for the preset neural network architecture search
[0289] It should be noted that the embodiment of the present application can use the preset training data obtained in step 3 to train the supernet of the preset neural network architecture search.
[0290] Step 5: Search for the target subnetwork
[0291] It should be noted that the embodiment of the present application can search for the target subnetwork from the supernet of the pre-trained neural network architecture search, wherein the search strategy adopted by the search is a search strategy based on gradient descent.
[0292] In addition, the target subnetwork can be a subnetwork whose accuracy meets the preset requirements, and the architecture parameter corresponding to the edge (operator / operation) connecting each pair of nodes in the subnetwork is the largest. In other words, the target subnetwork is the subnetwork with the best accuracy in the supernet searched by the preset neural network architecture.
[0293] In order to ensure the performance of the target sub-network, the embodiment of the present application may retrain the target sub-network, for example, by retraining the target sub-network to ensure that the accuracy meets the requirements.
[0294] Step 6: Adjust the hyperparameters of the target subnetwork to obtain the target neural network architecture search supernetwork
[0295] It should be noted that the target sub-network has hyperparameters.
[0296] For example, the hyperparameter includes at least one of the following: network width (i.e., the number of channels in each layer of the target subnetwork), network depth (i.e., the number of layers in the target subnetwork), convolution kernel size (i.e., the size of the convolution kernel in the target subnetwork), number of convolution kernels (i.e., the number of convolution kernels in the target subnetwork), and feature map resolution (i.e., the feature map resolution of each layer in the target subnetwork).
[0297] It can be seen that the embodiments of the present application can adjust at least one of the network width, network depth, convolution kernel size, number of convolution kernels, feature map resolution, etc. of the target subnetwork to obtain a supernet for the target neural network architecture search, thereby realizing the construction of a supernet for the target neural network architecture search based on the target subnetwork, so that the supernet for the target neural network architecture search and the target subnetwork can have the same performance.
[0298] In this way, when the target sub-network has the best accuracy, the super-network of the target neural network architecture search can also have the best accuracy.
[0299] In addition, the adjustment may include increasing, decreasing, and keeping unchanged. For example, increasing the network width, decreasing the network depth, increasing the convolution kernel size, keeping the number of convolution kernels unchanged, increasing the feature map resolution, etc.
[0300] For example, increase the convolution kernel size from 3×3 to 5×5.
[0301] Step 7: Train the supernet for target neural network architecture search
[0302] It should be noted that the embodiments of the present application can combine knowledge distillation to use the preset neural network architecture search supernet as a teacher network to train the target neural network architecture search supernet, so that the trained target neural network architecture search supernet can achieve better network performance.
[0303] In specific implementation, the training of the supernet for the target neural network architecture search may include the following steps:
[0304] ◆Use the supernet of the preset neural network architecture search as the teacher network of the supernet of the target neural network architecture search in knowledge distillation;
[0305] It should be noted that the embodiment of the present application can use the supernet of the preset neural network architecture search as the teacher network in knowledge distillation, thereby realizing the construction of the teacher network.
[0306] ◆ Input the preset training data into the teacher network and the supernet of the target neural network architecture search, and obtain the first value of the loss function between the teacher network and the supernet of the target neural network architecture search;
[0307] It should be noted that the preset training data can be a kind of preset data, such as images, data, feature points, etc., and the embodiment of the present application can input the preset training data into the supernet of the teacher network and the target neural network architecture search to obtain respective output results.
[0308] Then, in the process of inputting the preset training data into the teacher network and the supernet of the target neural network architecture search, the embodiment of the present application needs to calculate the value of the loss function according to the output results between layers to obtain the first value.
[0309] ◆ Input the preset training data into the ground truth and the supernet of the target neural network architecture search, and obtain the second value of the loss function between the ground truth and the supernet of the target neural network architecture search;
[0310] It should be noted that the embodiments of the present application can input preset training data into the supernet of Ground Truth and the target neural network architecture search to obtain respective output results.
[0311] Then, in the process of inputting the preset training data into the supernet of Ground Truth and the target neural network architecture search, the embodiment of the present application needs to calculate the value of the loss function according to the output results between layers to obtain the second value.
[0312] ◆Calculate the regularization coefficient of the loss function for knowledge distillation between the teacher network and the target neural network architecture search supernet;
[0313] It should be noted that, since knowledge distillation is used, the embodiment of the present application also needs to calculate the regularization of the loss function of the knowledge distillation between the teacher network and the supernet of the target neural network architecture search, and calculate the product between the first value and the regularization term coefficient to obtain the value of the regularized loss function.
[0314] The regularization term coefficient can be determined by the first value, the second value and the weight parameters of the supernet of the target neural network architecture search (such as the weight of the convolutional layer).
[0315] For example, the value of the regularized loss function is a*R, where a represents the regularization term coefficient. Where a is:
[0316] a=cos(dR / dw,dL / dw);
[0317] Among them, dR represents the gradient of the first value; dL represents the gradient of the second value; w represents the weight parameter of the supernet of the target neural network architecture search; cos() represents the cosine calculation.
[0318] In this way, the present application can measure the vector difference between two gradient optimization vectors (ie, dR / dw, dL / dw) through cosine calculation, thereby improving the accuracy and precision of network optimization.
[0319] ◆Calculate the product of the first value and the regularization coefficient plus the second value to get the target value, and train the target neural network architecture search supernet with the goal of minimizing the target value
[0320] It should be noted that, based on the above, the target value is a*R+L.
[0321] In this way, the present application completes the training of the supernet for the target neural network architecture search by training the supernet for the target neural network architecture search with the goal of minimizing the target value.
[0322] Step 8. Search for facial motion capture models
[0323] It should be noted that the embodiment of the present application can search for a facial motion capture model from a supernet of a trained target neural network architecture search.
[0324] It can be understood that the facial motion capture model can be a sub-network in the supernet of the target neural network architecture search.
[0325] In some possible implementations, searching for a facial motion capture model may include the following steps:
[0326] ◆Collect training data
[0327] It should be noted that the embodiment of the present application can collect training data to train the accuracy predictor, wherein the accuracy predictor can be regarded as a prediction model for calculating the accuracy of the sub-network, such as a multi-layer perceptron machine (MLP).
[0328] In some possible implementations, the embodiments of the present application can collect subnetworks from the supernet searched by the target neural network architecture, encode the subnetworks, and calculate the accuracy corresponding to the subnetworks to form data pairs in the training data. In other words, the data pairs can be expressed in the form of [encoding of the subnetwork, accuracy of the subnetwork]. Generally, the embodiments of the present application can collect 5,000 data pairs to form training data to ensure the quality of training.
[0329] ◆Training accuracy predictor
[0330] ◆Search for subnetworks that meet the preset computing power constraints
[0331] It should be noted that the embodiment of the present application can search for subnetworks from the supernetwork of the trained target neural network architecture search to meet the preset computing power constraint condition to obtain at least one candidate subnetwork. Therefore, each candidate subnetwork meets the preset computing power requirement.
[0332] In some possible implementations, the preset computing power constraint may include the number of floating point operations per second (FLOPs) or the number of parameters (#Params).
[0333] ◆Search in at least one candidate subnetwork based on the trained accuracy predictor
[0334] It should be noted that the embodiment of the present application can calculate the accuracy of at least one candidate sub-network according to the trained accuracy predictor, so as to perform the search through the accuracy of each candidate sub-network.
[0335] ◆Search for facial motion capture models
[0336] It should be noted that the embodiment of the present application can search for a facial motion capture model in accordance with the maximum accuracy constraint.
[0337] That is to say, the candidate sub-network corresponding to the maximum value of the respective accuracies of at least one candidate sub-network is used as the facial motion capture model.
[0338] In this way, the facial motion capture model meets the performance constraints of computing power and accuracy, making it possible to search for a sub-network with both excellent computing power and accuracy.
[0339] 4) Deployment of facial motion capture models and driving digital avatars
[0340] It should be noted that the present application can be deployed on an electronic device to realize real-time facial capture of a target person, thereby obtaining facial capture information, which may include the target person's facial expression information and posture information.
[0341] Then, the present application can use the facial capture information to drive the digital virtual character of the target person, so that the digital virtual character can make various facial expressions according to the target person, such as Figure 8 shown.
[0342] 3. Exemplary description of a facial motion capture device
[0343] 1. Description
[0344] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process of the method side. It is understandable that, in order to realize the above functions, the device includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should know that, in combination with the methods, functions, modules, units or steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain method, function, module, unit or step is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described methods, functions, modules, units or steps for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0345] The embodiment of the present application can divide the electronic device into functional units / modules according to the above method example. For example, each functional unit / module can be divided according to each function, or two or more functions can be integrated into one functional unit / module. The above integrated functional unit / module can be implemented in hardware or in software program. It should be noted that the division of functional units / modules in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.
[0346] In the case of an integrated unit, Fig. 9 The functional unit composition block diagram of a human face facial motion capture device according to an embodiment of the present application is shown in FIG. The human face facial motion capture device 900 specifically includes: an acquisition unit 910 , a training unit 920 and a motion capture unit 930 .
[0347] It should be noted that the acquisition unit 910 may be a module unit for collecting or processing data.
[0348] The training unit 920 may be a module unit for processing data and the like.
[0349] The motion capture unit 930 may be a module unit for processing data, etc.
[0350] In some possible implementations, the acquisition unit 910, the training unit 920, and the motion capture unit 930 may be integrated into one unit.
[0351] For example, the acquisition unit 910, the training unit 920 and the motion capture unit 930 can be integrated in the processing unit. The processing unit can be a processor or a controller, such as a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in combination with the contents disclosed in this application. The processing unit can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessors, etc.
[0352] In some possible implementations, the facial motion capture device 900 may further include a storage unit for storing computer programs or instructions executed by the facial motion capture device 900 .
[0353] For example, the storage unit may be a memory.
[0354] In some possible implementations, the facial motion capture device 900 may be a chip / chip module / processor, etc.
[0355] In specific implementation, the facial motion capture device 900 is used to execute the steps described in the above method embodiment.
[0356] An acquisition unit 910 is used to acquire unsupervised data, where the unsupervised data includes facial key point information and facial mask information;
[0357] The acquisition unit 910 is further used to acquire supervised data, where the supervised data includes facial expression information and facial posture information;
[0358] A training unit 920, configured to train a facial motion capture model based on a combination of self-supervised learning of unsupervised data and strong supervised learning of supervised data, wherein the facial motion capture model is a neural network model;
[0359] The motion capture unit 930 is used to perform facial motion capture of a human face using the trained facial motion capture model.
[0360] It can be seen that the present application utilizes a large amount of supervised data and a small amount of unsupervised data, combines the advantages of self-supervised learning of unsupervised data and strong supervised learning of supervised data, and trains a facial motion capture model for facial motion capture, thereby providing a low-cost and high-precision facial motion capture method suitable for ordinary users through the facial motion capture model.
[0361] It should be noted that the specific implementation of each operation performed by the facial motion capture device 900 can refer to the corresponding description of the method embodiment shown above, which will not be repeated here.
[0362] 2. Some other possible implementations
[0363] In some possible implementations, training a facial motion capture model based on a combination of self-supervised learning of unsupervised data and strongly supervised learning of supervised data may include the following steps:
[0364] Perform self-supervised learning on unsupervised data, and use the learned unsupervised data to train the facial motion capture model by combining the error constraints of facial key points and the error constraints of facial rendering results;
[0365] Strong supervised learning is performed on the supervised data, and the learned supervised data is used to train the facial motion capture model by combining facial key point error constraints, facial rendering result error constraints, facial expression information error constraints and facial pose information error constraints.
[0366] It should be noted that, combined with the content of "b. Training of facial motion capture model" in the above "3) Facial motion capture model", it can be seen that this is not repeated here.
[0367] In some possible implementations, the facial motion capture model is searched from a supernet of a trained target neural network architecture search;
[0368] The supernet of the target neural network architecture search is obtained by adjusting the hyperparameters of the target subnetwork in the supernet of the preset neural network architecture search.
[0369] It should be noted that, combined with the content in the above “d. Acquisition of facial motion capture model”, it can be seen that this is not elaborated on.
[0370] In some possible implementations, training of a supernet for target neural network architecture search includes the following steps:
[0371] The supernet of the preset neural network architecture search is used as the teacher network of the supernet of the target neural network architecture search in knowledge distillation;
[0372] Inputting the preset training data into the teacher network and the supernet of the target neural network architecture search, obtaining a first value of the loss function between the teacher network and the supernet of the target neural network architecture search;
[0373] Inputting the preset training data into the benchmark truth and the target neural network architecture search supernet to obtain a second value of the loss function between the benchmark truth and the target neural network architecture search supernet;
[0374] Calculate the regularization coefficient of the loss function for knowledge distillation between the teacher network and the target neural network architecture search supernet;
[0375] The product of the first value and the regularization coefficient is calculated and then added to the second value to obtain a target value, and the supernet of the target neural network architecture search is trained with the goal of minimizing the target value.
[0376] It should be noted that, combined with the content of step 7 of the above “④ Search process of facial motion capture model”, it can be seen that it will not be repeated here.
[0377] In some possible implementations, unsupervised data is obtained, including:
[0378] Input the images in the preset image dataset into the trained generative adversarial network model to obtain generated images;
[0379] The images in the preset image dataset and the generated images are respectively subjected to facial key point detection and facial mask detection to obtain unsupervised data.
[0380] It should be noted that, combined with the content of "b. Obtaining unsupervised data" in the above "1) Unsupervised data", it can be seen that this is not repeated here.
[0381] In some possible implementations, the training of the generative adversarial network model includes the following steps:
[0382] Acquire a first sample image and a second sample image from a preset image data set;
[0383] Inputting a plurality of image blocks of the first sample image and a plurality of image blocks of the second sample image into a judgment network of a generative adversarial network model to obtain a first probability average value;
[0384] Inputting a plurality of image blocks of the first sample image into a generative network of a generative adversarial network model to obtain a plurality of target image blocks;
[0385] Inputting a plurality of image blocks of the first sample image and a plurality of target image blocks into a judgment network to obtain a second probability average value;
[0386] Calculating an average value of norm values of differences between a plurality of image blocks of the second sample image and a plurality of target image blocks;
[0387] Under the condition that the average value of the norm value is used as the Lagrange multiplier method, the objective function of the generative adversarial network model is determined with the goal of maximizing the first probability average value and minimizing the second probability average value;
[0388] According to the preset image data set and objective function, the generation network and the judgment network are alternately trained to obtain a trained generative adversarial network model.
[0389] It should be noted that, combined with the content in the above "d. How to train the GAN model", it can be seen that this will not be repeated here.
[0390] In some possible implementations, obtaining supervised data includes:
[0391] The collected image data is input into a trained multi-task learning model to obtain supervised data, and the multi-task learning model is used to simultaneously detect facial expressions and facial postures using multi-task learning;
[0392] The multi-task learning model includes a main network, a first branch network and a second branch network, and the output of the last layer of the main network is connected to the first branch network and the second branch network respectively;
[0393] A main network, used for extracting features from the collected image data to obtain a feature map;
[0394] The first branch network is used for detecting facial expressions based on the feature map;
[0395] The second branch network is used to detect face pose based on the feature map.
[0396] It should be noted that, combined with the content in the above "d. Multi-task learning model", it can be seen that this is not repeated here.
[0397] IV. Exemplary description of an electronic device
[0398] The following is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Fig.10 The electronic device 1000 includes a processor 1010 , a memory 1020 , and at least one communication bus for connecting the processor 1010 and the memory 1020 .
[0399] In some possible implementations, the processor 1010 may be one or more central processing units (CPUs). In the case where the processor 1010 is a CPU, the CPU may be a single-core CPU or a multi-core CPU. The memory 1020 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM), and the memory 1020 is used to store computer programs or instructions.
[0400] In some possible implementations, the electronic device 1000 further includes a communication interface, which is used to receive and send data.
[0401] In some possible implementations, the processor 1010 in the electronic device 1000 is used to execute the computer program or instruction 1021 stored in the memory 1020 to implement the following steps:
[0402] Obtain unsupervised data, which includes facial key point information and facial mask information.
[0403] Obtain supervised data, which includes facial expression information and facial posture information.
[0404] The facial motion capture model is trained based on the combination of self-supervised learning of unsupervised data and strong supervised learning of supervised data. The facial motion capture model is a neural network model.
[0405] Use the trained facial motion capture model to perform facial motion capture.
[0406] It can be seen that the present application utilizes a large amount of supervised data and a small amount of unsupervised data, combines the advantages of self-supervised learning of unsupervised data and strong supervised learning of supervised data, and trains a facial motion capture model for facial motion capture, thereby providing a low-cost and high-precision facial motion capture method suitable for ordinary users through the facial motion capture model.
[0407] It should be noted that the specific implementation of each operation performed by the electronic device 1000 can refer to the corresponding description of the method embodiment shown above, which will not be repeated here.
[0408] V. Other Explanations
[0409] An embodiment of the present application also provides a computer-readable storage medium, wherein a computer program or instructions are stored on the computer-readable storage medium, and when the computer program or instructions are executed by a processor, the steps described in the above embodiment are implemented.
[0410] The present application also provides a computer program product, including a computer program or instructions, wherein the computer program or instructions are executed by a processor to implement the steps described in the above embodiment. Exemplarily, the computer program product may be a software installation package.
[0411] In addition, a computer program product should be understood as a software product that mainly implements the technical solution of the present application through computer programs or instructions.
[0412] It should be noted that, for the above-mentioned various embodiments, for the sake of simple description, they are all expressed as a series of action combinations. Those skilled in the art should be aware that the present application is not limited by the described order of actions, because some steps in the embodiments of the present application can be performed in other orders or simultaneously. In addition, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions, steps, modules or units involved are not necessarily required by the embodiments of the present application.
[0413] In the above embodiments, the embodiments of the present application have different focuses on the description of each embodiment. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0414] Those skilled in the art should be aware that the methods, steps or functions of related modules / units described in the embodiments of the present application can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product, or it can be implemented by a processor executing a computer program instruction. Wherein, the computer program product includes at least one computer program instruction, and the computer program instruction can be composed of corresponding software modules, and the software module can be stored in RAM, flash memory, ROM, EPROM, EEPROM, register, hard disk, mobile hard disk, read-only compact disk (CD-ROM) or any other form of storage medium known in the art. The computer program instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program instruction can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium, or a semiconductor medium (eg, an SSD), etc.
[0415] The modules / units included in the devices or products described in the above embodiments may be software modules / units, hardware modules / units, or may be partially software modules / units and partially hardware modules / units. For example, for each device or product applied to or integrated in a chip, each module / unit included therein may be implemented in the form of hardware such as circuits; or, a portion of the modules / units included therein may be implemented in the form of a software program, which runs on a processor integrated inside the chip, while a portion of the modules / units of another portion (if any) may be implemented in the form of hardware such as circuits. The same is true for each device or product applied to or integrated in a chip module, or each device or product applied to or integrated in a terminal.
[0416] The above specific implementation methods further describe the purpose, technical solutions and beneficial effects of the embodiments of the present application in detail. It should be understood that the above are only specific implementation methods of the embodiments of the present application and are not intended to limit the protection scope of the embodiments of the present application. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application shall be included in the protection scope of the embodiments of the present application.
Claims
1. A method for capturing facial motion, It is characterized in that include: Acquire unsupervised data, wherein the unsupervised data includes facial key point information and facial mask information; Acquire supervised data, wherein the supervised data includes facial expression information and facial posture information; Training a facial motion capture model according to a combination of the self-supervised learning of the unsupervised data and the strong supervised learning of the supervised data, wherein the facial motion capture model is a neural network model; The trained facial motion capture model is used to capture facial motion of a human face.
2. The method according to claim 1, It is characterized in that The training of the facial motion capture model based on the combination of the self-supervised learning of the unsupervised data and the strong supervised learning of the supervised data comprises the following steps: Performing self-supervised learning on the unsupervised data, and using the learned unsupervised data to train a facial motion capture model by combining a facial key point error constraint and a facial rendering result error constraint; The supervised data is subjected to strong supervised learning, and the learned supervised data is used to train the facial motion capture model by combining facial key point error constraints, facial rendering result error constraints, facial expression information error constraints and facial posture information error constraints.
3. The method according to claim 1, It is characterized in that The facial motion capture model is obtained by searching the supernet of the trained target neural network architecture search; The target neural network architecture search supernet is obtained by adjusting the hyperparameters of the target subnetwork in the preset neural network architecture search supernet.
4. The method according to claim 3, It is characterized in that The training of the supernet for the target neural network architecture search comprises the following steps: Using the supernet of the preset neural network architecture search as the teacher network of the supernet of the target neural network architecture search in the knowledge distillation; Inputting preset training data into the teacher network and the supernet of the target neural network architecture search to obtain a first value of the loss function between the teacher network and the supernet of the target neural network architecture search; Inputting the preset training data into a reference truth and a supernet of the target neural network architecture search to obtain a second value of a loss function between the reference truth and the supernet of the target neural network architecture search; Calculating a regularization coefficient of a loss function for knowledge distillation between the teacher network and the target neural network architecture search supernet; The product of the first value and the regularization coefficient is calculated and then added to the second value to obtain a target value, and the supernet of the target neural network architecture search is trained with the goal of minimizing the target value.
5. The method according to claim 1, It is characterized in that The obtaining of unsupervised data comprises: Input the images in the preset image dataset into the trained generative adversarial network model to obtain generated images; The images in the preset image data set and the generated images are respectively subjected to facial key point detection and facial mask detection to obtain unsupervised data.
6. The method according to claim 5, It is characterized in that The training of the generative adversarial network model includes the following steps: Acquire a first sample image and a second sample image from the preset image data set; Inputting a plurality of image blocks of the first sample image and a plurality of image blocks of the second sample image into a judgment network of the generative adversarial network model to obtain a first probability average value; Inputting a plurality of image blocks of the first sample image into a generation network of the generative adversarial network model to obtain a plurality of target image blocks; Inputting the plurality of image blocks of the first sample image and the plurality of target image blocks into the judgment network to obtain a second probability average value; Calculating an average value of norm values of differences between a plurality of image blocks of the second sample image and the plurality of target image blocks; Under the condition that the average value of the norm value is used as the Lagrange multiplier method, the objective function of the generative adversarial network model is determined with the goal of maximizing the first probability average value and minimizing the second probability average value; The generation network and the judgment network are alternately trained according to the preset image data set and the objective function to obtain the trained generative adversarial network model.
7. The method according to claim 1, It is characterized in that The obtaining of supervised data comprises: Inputting the collected image data into a trained multi-task learning model to obtain supervised data, wherein the multi-task learning model is used to synchronously detect facial expressions and facial postures using multi-task learning; The multi-task learning model includes a main network, a first branch network and a second branch network, and the output of the last layer of the main network is connected to the first branch network and the second branch network respectively; The main network is used to extract features from the collected image data to obtain a feature map; The first branch network is used to detect facial expressions according to the feature map; The second branch network is used to perform face pose detection based on the feature map.
8. A facial motion capture device, It is characterized in that include: An acquisition unit, used for acquiring unsupervised data, wherein the unsupervised data includes facial key point information and facial mask information; The acquisition unit is further used to acquire supervised data, wherein the supervised data includes facial expression information and facial posture information; A training unit, configured to train a facial motion capture model according to a combination of the self-supervised learning of the unsupervised data and the strong supervised learning of the supervised data, wherein the facial motion capture model is a neural network model; The motion capture unit is used to capture facial motions of a human face using the trained facial motion capture model.
9. An electronic device comprising a processor, a memory and a computer program or instruction stored in the memory, It is characterized in that The processor executes the computer program or instructions to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer stores a computer program or an instruction, and when the computer program or the instruction is executed, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Vehicle-mounted CAN bus intrusion detection system and method based on comparison self-supervised learning
CN121388896A
