Automatic alignment method and system for digital population types

By extracting facial and audio features and combining them with a constrained optimization algorithm, high-quality lip synchronization videos are generated, which solves the problem of poor lip synchronization effects in the existing technology and achieves more accurate mouth movement and mouth details. Improved the quality of video generation.

CN118612490APending Publication Date: 2024-09-06SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 7 Cited by

Patent Information

Application Number
CN202410640349.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

When the existing technology generates high-quality speaker videos, the lip synchronization effect is not good and is easily affected by the input reference face, which cannot meet actual needs.

Method used

Extract facial image features and audio semantic features through the image encoder and audio encoder, use preset evaluation indicators and constraints for iterative optimization, generate the best reference face, and combine with the transposed convolution network to generate high-quality mouth shapes Sync videos.

Benefits of technology

It achieves more accurate and rich mouth movement effects and mouth details, improving the quality and stability of video generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612490A
    Figure CN118612490A
Patent Text Reader

Abstract

The invention discloses an automatic alignment method for a digital population type, and the method comprises the following steps: obtaining a character speaking video and a driving audio, carrying out the preprocessing of the character speaking video and the driving audio, and obtaining a character face image sequence and a voice audio sequence; initializing a reference frame according to the human face image sequence to obtain a reference human face sequence, masking a human half face, and splicing the masked human face and the reference human face to obtain a spliced image sequence; inputting the spliced image sequence into an image encoder to obtain a face image feature vector, and inputting the voice audio sequence into an audio encoder to obtain an audio semantic feature vector; splicing and fusing the human face image feature vector and the audio semantic feature vector of the character, and inputting the spliced and fused features into a generator to generate a character mouth shape synchronous video; and evaluating the quality of the mouth shape synchronization video according to the evaluation index and the constraint condition, and carrying out iterative optimization on the reference face sequence by using a constraint optimization algorithm until an optimal mouth shape synchronization video is generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular, to an automatic alignment method and system for digital population types used in video content creation. Background Art

[0002] With the exponential growth of audio and video content consumption, the rapid creation of video content has become an essential requirement. In the past few years, the advancement of deep learning has changed the dynamics of video creation. Now, users can easily create and edit videos with the help of deep learning. Lip synchronization can generate a speaking video of a person based on audio or text, providing convenience for video content creation. Lip synchronization is a basic and challenging topic in the field of multimedia and computer vision. Lip synchronization has a wide range of applications in many fields, providing creativity and convenience for content creation, education, entertainment, and assisting the hearing-impaired. Most of the existing technologies take the reference face, the lower half of the target face occluded, and the driving audio as input, and output the complete target face with the lip shape completed. When generating high-quality speaking videos, they cannot meet the actual needs and are easily affected by the current input reference face. When the output generates an arbitrary speaking video, there is still the problem of poor lip synchronization. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art and to provide a method and system for automatic alignment of digital population faces. Facial image features and audio semantic features are extracted through an image encoder and an audio encoder. The best reference face can be quickly calculated through preset evaluation indicators and constraints, and high-quality lip-synced video can be generated.

[0004] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0005] A method for automatically aligning a digital population, comprising the following steps:

[0006] S1. Obtain a person speaking video and a driving audio, and pre-process the person speaking video and the driving audio to obtain a person face image sequence and a speech audio sequence;

[0007] S2. Initialize the reference frame according to the face image sequence, obtain the reference face sequence, mask the half face of the person, and splice the masked face with the reference face to obtain a spliced ​​image sequence;

[0008] S3. Input the spliced ​​image sequence into the image encoder to obtain a face image feature vector, and input the speech audio sequence into the audio encoder to obtain an audio semantic feature vector;

[0009] S4. Concatenate and fuse the facial image feature vector and the audio semantic feature vector of the character, input the concatenated and fused features into the generator, and generate a lip-sync video of the character;

[0010] S5. Evaluate the quality of the lip-sync video based on the evaluation indicators and constraints, and iteratively optimize the reference face sequence using a constrained optimization algorithm until an optimal lip-sync video is generated.

[0011] Furthermore, in step S1, a face recognition model is used to pre-process the person speaking video to obtain the person's face position and key point information; the sound waveform of the person driving audio is converted into a Mel spectrum, and the characteristics of the sound signal in the frequency domain are expressed in a manner consistent with human auditory perception.

[0012] Furthermore, in step S2, the facial image sequence is first arranged in ascending order to initialize the reference frame, and then Gaussian noise is added to change the arrangement order to obtain a reference facial sequence with random disturbance within a suitable range.

[0013] Furthermore, in step S3, the spliced ​​image sequence and the speech audio sequence are respectively input into the image encoder and the audio encoder of the pre-trained model to obtain the face image feature vector and the audio semantic feature vector.

[0014] Furthermore, in step S4, the generator uses a transposed convolutional network to upsample the fused features to ensure that the character's lip shape is synchronized with the voice and generate a lip-synced video.

[0015] Furthermore, in step S5, the evaluation index includes a lip synchronization index and a visual quality index. The lip synchronization index calculates the Euclidean distance between the facial image feature vector and the audio semantic feature vector. The visual quality index uses a PSNR index to evaluate the image or video quality.

[0016] Furthermore, the constraints include facial smoothness and identity consistency. The key point model is used to detect the coordinates of the key points of the lower half of the face, and the average Euclidean distance of the key point motion of the original face image and the generated face image is calculated to ensure facial smoothness. The ArcFace model is used to encode the original face image and the generated face image, and the cosine similarity of the feature vector of the original face image and the feature vector of the generated face image is calculated to ensure identity consistency.

[0017] A digital population type automatic alignment system, using any of the above digital population type automatic alignment methods, comprising:

[0018] The data processing module is used to obtain the person's speaking video and driving audio, and pre-process the person's speaking video and driving audio respectively to obtain the person's face image sequence and speech audio sequence;

[0019] A reference selection module is used to initialize a reference frame according to a facial image sequence, obtain a reference facial sequence, mask a half face of a person, and splice the masked face with the reference face to obtain a spliced ​​image sequence;

[0020] A feature extraction module is used to input the spliced ​​image sequence into an image encoder to obtain a face image feature vector, and input the speech audio sequence into an audio encoder to obtain an audio semantic feature vector;

[0021] A data generation module is used to splice and fuse the facial image feature vector and the audio semantic feature vector of the character, input the spliced ​​and fused features into the generator, and generate a lip-sync video of the character;

[0022] The evaluation and optimization module is used to evaluate the quality of the lip-sync video according to the evaluation indicators and constraints, and iteratively optimize the reference face sequence using the constrained optimization algorithm until the best lip-sync video is generated.

[0023] An electronic device comprises a memory and a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the automatic alignment method of digital population types described in any one of the above items are implemented.

[0024] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned methods for automatically aligning digital population types are implemented.

[0025] Compared with the prior art, the automatic alignment method of digital human faces of the present invention can accurately select a reference face that matches the driving audio by using a constrained optimization algorithm. The reference face contains the optimal lip shape state and facial details of the character, providing the generator with more accurate and richer information, effectively improving the lip movement effect and mouth details of the generated video. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a schematic diagram of the flow of the automatic alignment method of the digital population type of the present invention.

[0027] Figure 2 Schematic diagram of recording a video for the experiment.

[0028] Figure 3 A schematic diagram of a sound waveform.

[0029] Figure 4 This is a schematic diagram of the Mel spectrum.

[0030] Figure 5 Schematic diagram of the obtained reference face sequence.

[0031] Figure 6 Schematic diagram of the generated lip-sync video. DETAILED DESCRIPTION

[0032] The automatic alignment method and system for digital population types of the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0033] See also Figure 1 The present invention discloses a method for automatically aligning a digital population, comprising the following steps:

[0034] S1. Obtain a person's speaking video and a driving audio, and pre-process the person's speaking video and the driving audio respectively to obtain a person's face image sequence and a speech audio sequence.

[0035] S2. Initialize a reference frame according to the face image sequence, obtain a reference face sequence, mask half of the person's face, and splice the masked face with the reference face to obtain a spliced ​​image sequence.

[0036] S3. Input the spliced ​​image sequence into the image encoder to obtain the face image feature vector, and input the speech audio sequence into the audio encoder to obtain the audio semantic feature vector.

[0037] S4. Concatenate and fuse the facial image feature vector and the audio semantic feature vector of the character, input the concatenated and fused features into the generator, and generate a lip-sync video of the character.

[0038] S5. Evaluate the quality of the lip-sync video based on the evaluation indicators and constraints, and iteratively optimize the reference face sequence using a constrained optimization algorithm until an optimal lip-sync video is generated.

[0039] Specifically, in step S1, Figure 2 As shown in the figure, a recorded video is used for the experiment to obtain the person's speaking video and driving audio. The face recognition model is used to pre-process the person's speaking video to obtain the person's face position and key point information, and obtain the person's face image sequence. Figure 3 and Figure 4 , converts the sound waveform of the character-driven audio into a Mel spectrum, and expresses the characteristics of the sound signal in the frequency domain in a way that is consistent with human auditory perception.

[0040] Specifically, in step S2, the facial image sequence is first arranged in ascending order to initialize the reference frame, and then Gaussian noise is added to change the arrangement order to obtain a reference facial sequence that is randomly perturbed within a suitable range. The facial image sequence is initialized in ascending order to initialize the reference frame, and Gaussian noise is added to make the final reference facial frame order randomly perturbed within a suitable range. An X vector representing the reference facial sequence is obtained, where the number i at each position represents the i-th face in the facial image sequence at a certain position, such as Figure 5 shown.

[0041] Specifically, in step S3, the spliced ​​image sequence is input into the image encoder of the pre-trained model to obtain a facial image feature vector, and the speech audio sequence is input into the audio encoder of the pre-trained model to obtain an audio semantic feature vector.

[0042] Specifically, in step S4, the generator uses a transposed convolutional network to upsample the fused features to ensure that the character's lip shape is synchronized with the voice, and generates a lip-sync video such as Figure 6 As shown in the figure. The transposed convolutional network includes multiple transposed convolutional layers and activation functions, which gradually upsample the input fusion features into the final video frame. In order to improve the quality and stability of lip-synced videos, the generator introduces multi-resolution inputs and implements a multi-scale feature fusion strategy. This can fully integrate facial image features and audio semantic features at different levels and scales, improving the realism of the generated video and the accuracy of lip sync.

[0043] Specifically, in step S5, the evaluation index includes a lip synchronization index and a visual quality index. The lip synchronization index calculates the Euclidean distance between the facial image feature vector and the audio semantic feature vector, and the visual quality index uses the PSNR (Peak Signal-to-Noise Rratio) index to evaluate the image or video quality. The degree of lip synchronization is evaluated by calculating the Euclidean distance between the two feature vectors, and the PSNR index is used to evaluate the clarity and authenticity of the generated lip synchronization video.

[0044] The constraints include facial smoothness and identity consistency. The key point model is used to detect the coordinates of the key points of the lower half of the face, and the average Euclidean distance of the key point motion of the original face image and the generated face image is calculated to ensure the facial smoothness of the generated face image. The ArcFace model is used to encode the original face image and the generated face image, and the identity consistency is ensured by calculating the cosine similarity of the feature vector of the original face image and the feature vector of the generated face image.

[0045] Based on the two evaluation indicators of lip synchronization and visual quality, as well as the two constraints of facial smoothness and identity consistency, a constrained optimization algorithm is used to iteratively optimize the reference face sequence, ultimately generating high-quality lip-synced video of the person speaking.

[0046] The present invention also discloses an automatic alignment system for digital population types, which adopts any of the automatic alignment methods for digital population types described above, and comprises:

[0047] The data processing module is used to obtain the person's speaking video and driving audio, and pre-process the person's speaking video and driving audio respectively to obtain the person's face image sequence and speech audio sequence;

[0048] A reference selection module is used to initialize a reference frame according to a facial image sequence, obtain a reference facial sequence, mask a half face of a person, and splice the masked face with the reference face to obtain a spliced ​​image sequence;

[0049] A feature extraction module is used to input the spliced ​​image sequence into an image encoder to obtain a face image feature vector, and input the speech audio sequence into an audio encoder to obtain an audio semantic feature vector;

[0050] A data generation module is used to splice and fuse the facial image feature vector and the audio semantic feature vector of the character, input the spliced ​​and fused features into the generator, and generate a lip-sync video of the character;

[0051] The evaluation and optimization module is used to evaluate the quality of the lip-sync video according to the evaluation indicators and constraints, and iteratively optimize the reference face sequence using the constrained optimization algorithm until the best lip-sync video is generated.

[0052] The present invention forms a digital population-based automatic alignment system by constructing a data processing module, a reference selection module, a feature extraction module, a data generation module, and an evaluation optimization module. The digital population-based automatic alignment system of the present invention can execute the digital population-based automatic alignment method of the present invention, and can execute any combination of implementation steps of the method embodiment, and has the corresponding functions and beneficial effects of the method.

[0053] The present invention also discloses an electronic device, including a memory and a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned methods for automatically aligning digital population types. The electronic device of the present invention can execute the method for automatically aligning digital population types of the present invention, and can execute any combination of implementation steps of the method embodiment, and has the corresponding functions and beneficial effects of the method.

[0054] The present invention also discloses a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the automatic alignment method of digital population type described in any one of the above are implemented. The computer-readable storage medium of the present invention can execute the automatic alignment method of digital population type of the present invention, and can execute any combination of implementation steps of the method embodiment, and has the corresponding functions and beneficial effects of the method.

[0055] Although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the system disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0056] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

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

[0058] The various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0059] The above description is a detailed description of the preferred feasible embodiments of the present invention, but the embodiments are not intended to limit the scope of the patent application of the present invention. All equivalent changes or modified changes completed under the technical spirit disclosed by the present invention should fall within the patent scope covered by the present invention.

Claims

1. A method for automatic alignment of digital population, characterized in that: The following steps are involved: S1. Obtain a person speaking video and a driving audio, and pre-process the person speaking video and the driving audio to obtain a person face image sequence and a speech audio sequence; S2. Initialize the reference frame according to the face image sequence, obtain the reference face sequence, mask the half face of the person, and splice the masked face with the reference face to obtain a spliced ​​image sequence; S3. Input the spliced ​​image sequence into the image encoder to obtain a face image feature vector, and input the speech audio sequence into the audio encoder to obtain an audio semantic feature vector; S4. Concatenate and fuse the facial image feature vector and the audio semantic feature vector of the character, input the concatenated and fused features into the generator, and generate a lip-sync video of the character; S5. Evaluate the quality of the lip-sync video based on the evaluation indicators and constraints, and iteratively optimize the reference face sequence using a constrained optimization algorithm until an optimal lip-sync video is generated.

2. The automatic alignment method of digital population type according to claim 1, characterized in that: In step S1, a face recognition model is used to pre-process the person speaking video to obtain the person's face position and key point information; the sound waveform of the person driving audio is converted into a Mel spectrum, and the characteristics of the sound signal in the frequency domain are expressed in a way that conforms to human auditory perception.

3. The automatic alignment method of digital population type according to claim 1, characterized in that: In step S2, the facial image sequence is first arranged in ascending order to initialize the reference frame, and then Gaussian noise is added to change the arrangement order to obtain a reference facial sequence with random disturbance within a suitable range.

4. The automatic alignment method of digital population type according to claim 1, characterized in that: In step S3, the spliced ​​image sequence and the speech audio sequence are respectively input into the image encoder and the audio encoder of the pre-trained model to obtain the face image feature vector and the audio semantic feature vector.

5. The automatic alignment method of digital population type according to claim 1, characterized in that: In step S4, the generator uses a transposed convolutional network to upsample the fused features to ensure that the character's lip shape is synchronized with the voice and generate a lip-synced video.

6. The automatic alignment method of digital population type according to claim 1, characterized in that: In step S5, the evaluation index includes a lip synchronization index and a visual quality index. The lip synchronization index calculates the Euclidean distance between the facial image feature vector and the audio semantic feature vector. The visual quality index uses the PSNR index to evaluate the image or video quality.

7. The automatic alignment method of digital population type according to claim 1, characterized in that: The constraints include facial smoothness and identity consistency. The key point model is used to detect the coordinates of the key points of the lower half of the face, and the average Euclidean distance of the key point movement of the original face image and the generated face image is calculated to ensure facial smoothness. The ArcFace model is used to encode the original face image and the generated face image, and the cosine similarity of the feature vector of the original face image and the feature vector of the generated face image is calculated to ensure identity consistency.

8. An automatic alignment system for digital population, using the automatic alignment method for digital population as claimed in any one of claims 1 to 7, characterized in that: include: The data processing module is used to obtain the person's speaking video and driving audio, and pre-process the person's speaking video and driving audio respectively to obtain the person's face image sequence and speech audio sequence; A reference selection module is used to initialize a reference frame according to a facial image sequence, obtain a reference facial sequence, mask a half face of a person, and splice the masked face with the reference face to obtain a spliced ​​image sequence; A feature extraction module is used to input the spliced ​​image sequence into an image encoder to obtain a face image feature vector, and input the speech audio sequence into an audio encoder to obtain an audio semantic feature vector; A data generation module is used to splice and fuse the facial image feature vector and the audio semantic feature vector of the character, input the spliced ​​and fused features into the generator, and generate a lip-sync video of the character; The evaluation and optimization module is used to evaluate the quality of the lip-sync video according to the evaluation indicators and constraints, and iteratively optimize the reference face sequence using the constrained optimization algorithm until the best lip-sync video is generated.

9. An electronic device comprising a memory and a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the automatic alignment method of digital population types as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for automatic alignment of digital population types as claimed in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Method and device for driving high reduction of facial features of speaker

    CN118941682A

  • Mouth shape generation method and device for voice driving

    CN119252275A

  • Virtual human video generation method and device, electronic equipment and storage medium

    CN119364141A

  • Digital population type voice synchronous generation method and system based on time sequence decoupling

    CN121531206A

  • Digital human video generation quality control method and device

    CN122476248A