A real-time spatiotemporal synthesis method for face region in video using speech information
Through the method of combining 3D face reconstruction and deep learning, the problem of traditional algorithms being unable to determine facial expressions and lack of identity information constraints is solved, and facial video generation consistent with the spoken content is achieved, ensuring the consistency and texture of the identity image. The natural changes meet real-time needs and are suitable for multiple application scenarios.
Patent Information
- Application Number
- CN202110750794.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-02
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-07-02
AI Technical Summary
The traditional face region generation algorithm cannot determine the facial expression in the image, and lacks identity information constraints and timing information correlation, resulting in inconsistent identities, timing jitter, and huge consumption of computing resources in the video, making it unable to meet real-time needs.
The 3D face reconstruction algorithm is used to extract facial identity, shape and texture information from visual features, combined with deep learning to extract facial expression information from audio features, fuse visual and auditory information, and adopt a more streamlined neural network structure to create a voice-driven 3D human face. Face model rendering and generative adversarial networks enable rich and consistent synthesis of facial expressions.
It realizes the generation of face videos that are consistent with the spoken content, ensures the consistency of the identity image and the natural texture changes, reduces the consumption of computing resources, meets real-time needs, and is suitable for video conferencing, virtual images and other fields.
Smart Images

Figure CN113470170B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical fields of deep learning, three-dimensional face reconstruction, face synthesis, and the like, and in particular to a method for temporally and spatially consistent synthesis of real-time video face regions using voice information. Background Art
[0002] Traditional face region generation algorithms are limited to a single face image and have the following problems: (1) The input information is single and cannot determine the expression of the face region in the image, nor can it synthesize a face video that is consistent with the voice. (2) There is a lack of identity information constraints, and it cannot guarantee that the face region synthesized for the same person in different postures and expressions still looks like the same person. When applied to videos, there will be problems with inconsistent identity images. (3) There is a lack of association and constraints between temporal information, and when applied to videos, there will be temporal jitter. (4) The required network structure is complex, the computing resources are huge, the inference time is too long, and it cannot meet real-time requirements. Traditional algorithms lack contextual constraint information on time, and are prone to texture jitter when used in videos, resulting in poor results. Finally, the neural network architecture required by traditional algorithms is relatively complex, and the inference time cost is high, which cannot meet real-time requirements. Summary of the invention
[0003] The purpose of the present invention is to provide a method for temporal and spatial consistent synthesis of real-time video face regions using voice information in response to the above-mentioned problems existing in the prior art. A three-dimensional face reconstruction algorithm is used to extract face identity information, face shape information, face posture information and face texture information from visual features, and deep learning technology is used to extract face expression information from audio features. The former visual information and the latter auditory information are integrated to enhance the richness of the neural network synthesized face expression, so that it can quickly and accurately synthesize a face speaking video consistent with the current speaking content.
[0004] The present invention comprises the following steps:
[0005] S1: Manually select a face identity reference image and extract its face identity parameters and face texture parameters;
[0006] S2: For each frame of the real-time video stream, the facial 3D reconstruction technology is used to extract the facial posture parameters and facial shape parameters corresponding to each frame;
[0007] S3: extracting audio features corresponding to each frame of video from the real-time audio stream, inputting the audio features to the first network, and outputting facial expression parameters corresponding to each frame of the video stream;
[0008] S4: inputting face identity parameters, face posture parameters, face shape parameters, face texture parameters, and face expression parameters, and using a three-dimensional face model rendering technology to render a corresponding three-dimensional face model rendering image.
[0009] S5: Input the original video stream frame, the three-dimensional face rendering image, the face identity reference image and the previous frame synthesized image on the second network to the second network, and output the synthesized image of the face area.
[0010] In step S1, the human face three-dimensional reconstruction technology is a human face 3D deformation statistical model (3DMM) method.
[0011] In step S2, the first network is a facial expression estimation network; the facial expression estimation network is divided into an audio feature extraction module and a facial expression parameter regression module.
[0012] In step S3, the three-dimensional face model rendering technology is driven by speech.
[0013] In step S5, the second network is a face texture synthesis network, and is a generative adversarial network; the face texture synthesis network includes a face identity encoding module, a face identity encoding projection module, a face texture synthesis module, and a discriminator module;
[0014] The constraints used by the face texture synthesis network include temporal consistency constraints, discriminator constraints, and face identity consistency constraints.
[0015] The face identity consistency constraint is used to ensure the consistency of the face identity images generated before and after. Specifically, the face identity code is introduced into the face texture synthesis module using adaptive instance normalization, and the synthesis result is constrained.
[0016] The temporal consistency constraint is used to ensure that the facial textures generated before and after change naturally. Specifically, the synthesis result of the previous frame is introduced into the facial texture synthesis module, and the texture jitter of the previous and next frames is constrained.
[0017] The present invention integrates multimodal information such as face shape and posture, which belongs to visual information, and audio feature information, which belongs to auditory information, so as to achieve information complementarity, so that the algorithm can synthesize face videos with rich expressions and consistent with the speech content. In terms of identity image consistency, the present invention introduces reference face identity parameters, which can constrain the identity image of the output video frames before and after to be consistent. At the same time, the present invention introduces contextual information and smooth constraints on timing, which effectively suppresses the occurrence of texture jitter, so that the face generation algorithm can be applied to video. Finally, the present invention adopts a more streamlined neural network structure, so that the algorithm can generate face speaking videos or remove face occluders in real time, which can be used in scenes such as removing face occluders and synthesizing virtual human anchor videos in video conferencing. It has extremely high practical value and good economic benefits in the fields of security monitoring, video conferencing, virtual images, animation driving, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1It is an overall flow chart of an embodiment of the present invention.
[0019] Figure 2 This is a diagram of the rendering process of a 3D face model according to an embodiment of the present invention.
[0020] Figure 3 This is a diagram of the face occlusion removal process according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] The following embodiments will further illustrate the present invention in conjunction with the accompanying drawings.
[0022] Example
[0023] refer to Figures 1 to 3 This embodiment proposes a method for temporally and spatially consistent synthesis of real-time video face regions using voice information, including the following steps:
[0024] S1: Manually select a face identity reference image and use face 3D reconstruction technology to extract its face identity parameters and face texture parameters;
[0025] S2: Input a video data stream of a human face speaking and perform audio and video separation. For each frame of the real-time video stream, use the human face 3D reconstruction technology to extract the human face related parameters corresponding to each frame. The human face related parameters include human face posture parameters and human face shape parameters.
[0026] S3: extracting audio features corresponding to each frame of video from the real-time audio stream, inputting the audio features to the first network, and outputting facial expression parameters corresponding to each frame of the video stream;
[0027] S4: inputting face identity parameters, face texture parameters, face posture parameters, face shape parameters, and face expression parameters, and using a three-dimensional face model rendering technology to render a corresponding three-dimensional face model rendering image;
[0028] S5: inputting the original video stream frame, the 3D face rendering image, the face identity reference image and the previous frame synthesized image on the second network to the second network, and outputting the synthesized image of the face area;
[0029] S6: Check whether the video stream has been read. If not, return to S1. If so, complete the spatiotemporal consistent synthesis of the real-time video face area.
[0030] The input of the present invention is a video stream of a human face speaking, and the output is a real-time face region synthesized video stream, which can be used in scenes such as face region occlusion removal. The following embodiments take face region occlusion removal as an example, but the applicable scenes of the present invention are not limited to this.
[0031] This embodiment includes two key parts: (1) a speech-driven 3D face model rendering algorithm, including steps S1 to S4; (2) a face region synthesis algorithm, including step S5. The speech-driven 3D face model rendering algorithm uses speech to constrain the generation of a rendered image, which is used to provide prior information such as the shape and texture of the 3D model for face region synthesis. Face region synthesis uses adversarial network technology to generate a de-occluded face texture with smooth texture changes in time sequence in real time.
[0032] 1) Voice-driven 3D face model rendering algorithm
[0033] In order to generate a speech-driven human face speaking video, so that the mouth shape and expression of the face in the synthesized video are consistent with the speech content, a speech-driven 3D face model rendering image is used as a priori information to guide the generation of the face area image. Among them, the speech signal is used to constrain the change of the facial model expression parameters, and other texture parameters, deformation parameters, etc. are consistent with the original face area image frame; the process of this algorithm includes the above steps S1 to S4, among which step S2 process diagram reference Figure 2 The key part of step S2 is the facial expression estimation network, which is divided into an audio feature extraction module and a facial expression parameter regression module. The specific steps are as follows:
[0034] (1) Audio features are extracted from the current real-time audio stream. This embodiment uses Mel-frequency cepstral coefficients.
[0035] (2) Divide the current audio feature sequence into frames and add windows.
[0036] (3) The audio features of each window are input into the audio feature extraction module, and deeper audio features are output.
[0037] (4) The deeper audio features obtained in step (3) are input into the facial expression parameter regression module to output the facial expression parameters.
[0038] (5) Steps (1) to (4) are repeated in a time-sequential manner to output the facial expression parameters corresponding to each video frame until the last frame of the output sequence is reached.
[0039] 2) Face region synthesis algorithm:
[0040] The process of synthesizing the face region into a face speaking video that is actually synthesized and has the same voice content as the voice content includes step S5 (the face occlusion removal process diagram of this embodiment is shown in FIG. Figure 3 ). This embodiment adopts adversarial network technology to realize face texture synthesis network, which includes face texture synthesis module, face identity encoding projection module and discriminator module, and has two key constraints: face identity consistency constraint and temporal consistency constraint.
[0041] The face identity consistency constraint is used to ensure that the identity features of the face before and after the synthesized video are consistent, and constrain the identity features of the face before and after the synthesized video to remain unchanged. This embodiment uses adaptive instance standardization to encode the identity information into the neural network generator, so that the neural network can synthesize a video frame sequence with consistent identity features before and after based on the identity information encoding; it is mainly divided into a face identity code extraction module, a face identity code projection module, and a face identity authentication module; the implementation process of the face identity consistency constraint (refer to Figure 3 )as follows:
[0042] (1) Face identity code extraction module 3D face reconstruction technology extracts the face identity code of the target speaker. This embodiment uses a 3D face deformation statistical model as the identity code extraction module.
[0043] (2) Input the face identity code obtained in step 1 to the face identity code projection module, and output the projected face identity features.
[0044] (3) Use adaptive instance normalization to encode the facial identity features obtained in step 2 into the generator, input the original image and the 3D face model rendering image, and output the de-occluded face image.
[0045] (4) Use the face identity verification module to calculate the difference in identity features between the original image and the synthesized image, which is used as a guide to optimize the generator. This implementation example uses a face recognition model.
[0046] (5) Repeat steps (1) to (4) until the generator converges.
[0047] The temporal consistency constraint is used to ensure that the texture changes before and after the face in the synthesized video are relatively smooth and natural, and to prevent the occurrence of jitter. This embodiment introduces the image generated by the previous frame into the network as prior information, so that the network synthesizes a face speaking video with natural texture changes. The specific implementation process is as follows: (reference Figure 3 )
[0048] (1) During the input process of the generator, add the face area video frame synthesized in the previous frame to the above, and output the face video frame corresponding to the current frame;
[0049] (2) Calculate the degree of jitter of the texture change in the face area synthesized by the front and back frame generators, and use it as a guide for optimizing the generator; this embodiment uses the rate of change of color differences between pixels to measure;
[0050] (3) Repeat steps (1) and (2) until the generator converges.
[0051] In this embodiment, the face identity consistency constraint and the temporal consistency constraint should be used in combination with the discriminator loss constraint to optimize the generator. The face expression estimation network and the face texture synthesis network in this embodiment respectively use a simple convolutional network architecture and a generative adversarial network with a small number of layers, which requires a small amount of calculation and can meet the needs of real-time face region synthesis. It has extremely high practical value and good economic benefits in the fields of security monitoring, video conferencing, virtual images, animation driving, etc.
[0052] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A method for temporal and spatial consistency synthesis of real-time video face regions using voice information, Features The following steps are involved: S1: Manually select a face identity reference image and extract its face identity parameters and face texture parameters; S2: For each frame of the real-time video stream, the facial 3D reconstruction technology is used to extract the facial posture parameters and facial shape parameters corresponding to each frame; S3: extracting audio features corresponding to each frame of video from the real-time audio stream, inputting the audio features to the first network, and outputting facial expression parameters corresponding to each frame of the video stream; S4: inputting face identity parameters, face posture parameters, face shape parameters, face texture parameters, and face expression parameters, and using a three-dimensional face model rendering technology to render a corresponding three-dimensional face model rendering image; S5: inputting the original video stream frame, the three-dimensional face rendering image, the face identity reference image and the previous frame of the synthesized image on the second network to the second network, and outputting the synthesized image of the face area; wherein the optimization constraints of the second network include a temporal consistency constraint, a discriminator constraint, and a face identity consistency constraint; The implementation process of the face identity consistency constraint is as follows: (1) A face identity code extraction module uses a three-dimensional face reconstruction technique to extract the face identity code of the target speaker, and the identity code extraction module uses a face 3D deformation statistical model; (2) inputting the face identity code obtained in step (1) into the face identity code projection module, and outputting the projected face identity features; (3) using adaptive instance normalization to encode the facial identity features obtained in step (2) into the generator, and input the original image and the 3D face model rendering image, and output the de-occluded face image; (4) Use the face authentication module to calculate the identity feature difference between the original image and the synthesized image as a guide for optimizing the generator; (5) Repeat steps (1) to (4) until the generator converges.
2. A method for temporal and spatial consistency synthesis of real-time video face regions using voice information as claimed in claim 1, Features In step S2, the first network is a facial expression estimation network.
3. A method for temporal and spatial consistency synthesis of real-time video face regions using voice information as claimed in claim 2, Features The facial expression estimation network is divided into an audio feature extraction module and a facial expression parameter regression module.
4. A method for temporal and spatial consistency synthesis of real-time video face regions using voice information as claimed in claim 1, Features In step S3, the three-dimensional face model rendering technology is driven by speech.
5. A method for temporal and spatial consistency synthesis of real-time video face regions using voice information as claimed in claim 1, Features In step S5, the second network is a face texture synthesis network, and is a generative adversarial network.
6. A method for temporal and spatial consistency synthesis of real-time video face regions using voice information as claimed in claim 5, Features The face texture synthesis network includes a face identity encoding module, a face identity encoding projection module, a face texture synthesis module, and a discriminator module.
7. A method for temporal and spatial consistency synthesis of real-time video face regions using voice information as claimed in claim 1, Features The temporal consistency constraint in step S5 is used to ensure that the facial texture generated before and after changes naturally. Specifically, the synthesis result of the previous frame is introduced into the facial texture synthesis module, and the texture jitter of the previous and next frames is constrained.
