Speaking face video generation method, device and system and medium

By extracting face and audio features, and using three-dimensional features and video frame generation models, the problem of unrealistic and stuck video generation of talking faces in the existing technology is solved, and efficient and realistic video generation is achieved.

CN118555448APending Publication Date: 2024-08-27PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202410846432.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing talking face video generation technology has problems such as unrealistic effects and lagging, which affects the generation efficiency and visual effects.

Method used

By obtaining source face images and source audio data, extracting face feature parameters and audio features, using the trained three-dimensional feature generation model and video frame generation model, fusion generates a three-dimensional face image set and a speaking face video to achieve audio-based Driven natural and realistic video generation.

Benefits of technology

It can generate natural and lifelike talking face videos without shooting live videos, which improves the generation efficiency and visual effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555448A
    Figure CN118555448A
Patent Text Reader

Abstract

The invention discloses a speaking face video generation method, device and system and a medium. The method comprises the following steps: acquiring a source face picture and source audio data; face feature parameters of the source face picture are extracted, and audio features in the source audio data are extracted; the audio features are input into a trained three-dimensional feature generation model, and a three-dimensional face image set is generated according to fusion of a model output result and the face feature parameters; inputting the source face picture and the three-dimensional face image set into a trained video frame generation model, and outputting a speaking face image set; and performing corresponding frame combination on the speaking face image set and the source audio data to obtain a speaking face video. Through a speaking face video generation mode based on audio data driving, a three-dimensional face image with a high fitting degree is generated by utilizing audio features and source face image reconstruction, so that a natural and vivid speaking face video can be generated without shooting a real person video, and thus the efficiency and visual effect of speaking face video generation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial technology, and in particular to a method, device, system and medium for generating a speaking face video. Background Art

[0002] Talking face video generation is an important branch of digital human generation. It can use speech or text as input to generate facial animation videos with matching expressions or movements. It has broad application prospects in the financial field, such as virtual customer service in banks and virtual anchors in finance, which can greatly reduce the workload of employees. At the same time, the use of virtual customer service with good visual effects can also give users a better experience.

[0003] At present, the application of virtual digital employees has become relatively common, but the generation of talking face videos usually requires video shooting of real people, and the generated videos still have problems such as unrealistic effects and lags, which affects the generation efficiency and visual effects of talking face videos. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a method, device, system and medium for generating a speaking face video that can be applied to financial technology or other related fields, the main purpose of which is to improve the efficiency and visual effect of generating a speaking face video.

[0005] The technical solution of the present invention is as follows:

[0006] A first aspect of the present invention provides a method for generating a speaking face video, comprising:

[0007] Get source face image and source audio data;

[0008] Extracting facial feature parameters from the source facial image, and extracting audio features from the source audio data;

[0009] Input the audio features into a trained three-dimensional feature generation model, and generate a three-dimensional face image set based on the model output results and the face feature parameters;

[0010] Inputting the source face picture and the three-dimensional face image set into a trained video frame generation model, and outputting a speaking face image set;

[0011] The speaker face image set and the source audio data are combined at corresponding frames to obtain a speaker face video.

[0012] In one embodiment, extracting facial feature parameters of the source facial image and extracting audio features of each frame in the source audio data includes:

[0013] Inputting the source face image into a face parameter recognition model to extract face feature parameters of a specified dimension;

[0014] The source audio data is input into a speech recognition model to extract audio features of each frame in the source audio data.

[0015] In one embodiment, the facial feature parameters of the specified dimensions include: facial identity feature parameters, expression feature parameters, texture detail feature parameters, illumination feature parameters and posture feature parameters.

[0016] In one embodiment, the step of inputting the audio features into a trained three-dimensional feature generation model and fusing the model output results with the facial feature parameters to generate a three-dimensional facial image set includes:

[0017] Inputting the audio features frame by frame into the trained three-dimensional feature generation model to obtain three-dimensional facial features of each frame, wherein the three-dimensional facial features include lip movement features and head posture features;

[0018] The three-dimensional face is reconstructed after the three-dimensional face features and face feature parameters of each frame are re-fused to generate a three-dimensional face image set containing multiple frames of three-dimensional face images.

[0019] In one embodiment, the three-dimensional feature generation model is obtained by training a face parameter generation network based on a convolutional neural network and a long short-term memory network.

[0020] In one embodiment, the step of inputting the source face image and the three-dimensional face image set into a trained video frame generation model and outputting a speaking face image set includes:

[0021] Performing feature extraction on the source face image and each three-dimensional face image in the three-dimensional face image set to obtain a multi-scale feature pyramid;

[0022] Extracting a style vector of the three-dimensional face image from the multi-scale feature pyramid;

[0023] The style vector is input into a generative adversarial network, and a plurality of talking face images with head postures and lip movements are output to obtain a talking face image set.

[0024] In one embodiment, combining the corresponding frames of the speaker face image set and the source audio data to obtain the speaker face video includes:

[0025] Determine the number of video frames according to the frame information of the source audio data, and determine the frame sequence number of each speaker face image in the speaker face image set based on the number of video frames;

[0026] The source audio data and the speaking face image of the same frame number are combined to generate a speaking face video.

[0027] A second aspect of the present invention provides a device for generating a speaking face video, comprising:

[0028] An acquisition module is used to acquire source face images and source audio data;

[0029] A feature extraction module, used to extract facial feature parameters of the source facial image and extract audio features from the source audio data;

[0030] A three-dimensional face image generation module, used to input the audio features into a trained three-dimensional feature generation model, and generate a three-dimensional face image set based on the fusion of the model output results and the face feature parameters;

[0031] A speaking face image generation module, used for inputting the source face picture and the three-dimensional face image set into a trained video frame generation model, and outputting a speaking face image set;

[0032] The speaking face video generation module is used to combine the speaking face image set and the source audio data in corresponding frames to obtain the speaking face video.

[0033] A third aspect of the present invention provides a system for generating a speaking face video, the system comprising at least one processor; and

[0034] a memory communicatively connected to the at least one processor; wherein,

[0035] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned speaking face video generation method.

[0036] A fourth aspect of the present invention provides a non-volatile computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by one or more processors, the one or more processors can execute the above-mentioned method for generating a speaking face video.

[0037] Beneficial effects: The present invention discloses a method, device, system and medium for generating a speaking face video. Compared with the prior art, the embodiments of the present invention obtain a source face picture and source audio data; extract facial feature parameters of the source face picture, and extract audio features from the source audio data; input the audio features into a trained three-dimensional feature generation model, and generate a three-dimensional face image set according to the model output result and the facial feature parameter fusion; input the source face picture and the three-dimensional face image set into a trained video frame generation model, and output a speaking face image set; combine the speaking face image set and the source audio data for corresponding frames to obtain a speaking face video. By using a speaking face video generation method driven by audio data, a high-fitting three-dimensional face image is generated by reconstructing audio features and source face images, so that a natural and realistic speaking face video can be generated without shooting a real person video, thereby improving the efficiency and visual effect of speaking face video generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0039] Figure 1 A flow chart of a method for generating a speaking face video provided by an embodiment of the present invention;

[0040] Figure 2 A flowchart of step S200 in the method for generating a speaking face video provided by an embodiment of the present invention;

[0041] Figure 3 A flowchart of step S300 in the method for generating a speaking face video provided by an embodiment of the present invention;

[0042] Figure 4 A flowchart of step S400 in the method for generating a speaking face video provided by an embodiment of the present invention;

[0043] Figure 5 A flowchart of step S500 in the method for generating a speaking face video provided by an embodiment of the present invention;

[0044] Figure 6 A schematic diagram of the functional modules of a device for generating a speaking face video according to an embodiment of the present invention;

[0045] Figure 7 A schematic diagram of the hardware structure of a system for generating a speaking face video provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail below. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. The embodiments of the present invention are described below in conjunction with the accompanying drawings.

[0047] Talking face video generation is an important branch of digital human generation. It can use speech or text as input to generate facial animation videos with matching expressions or movements. It has broad application prospects in the financial field, such as virtual customer service in banks and virtual anchors in finance, which can greatly reduce the workload of employees. At the same time, the use of virtual customer service with good visual effects can also give users a better experience.

[0048] In financial enterprises, the application of virtual digital employees generated based on talking face videos has become quite common. For example, in the scenario of financial news broadcasting, the corresponding talking face video can be automatically generated according to the news content, saving labor costs and improving efficiency. Different speaker images and styles can also be selected according to user preferences. In the scenario of financial education and training, the corresponding talking face video can be automatically generated according to the teaching content to increase interactivity and fun. Different speaker images and styles can also be selected according to different languages ​​and regions. In the scenario of financial customer service consultation, the corresponding talking face video can be automatically generated according to the customer's questions to improve customer experience and satisfaction. Different speaker images and styles can also be selected according to different scenarios and needs.

[0049] However, the generation of existing talking face videos usually requires video shooting of real people, and the generated videos still have problems such as unrealistic effects and lags, which affects the generation efficiency and visual effects of talking face videos.

[0050] In order to solve the above problems, the present invention proposes a method for generating a speaking face video. Figure 1 , Figure 1 A flowchart of an embodiment of the method for generating a speaking face video provided by the present invention. The method for generating a speaking face video provided in this embodiment is applied to a system consisting of a terminal device, a network and a server, wherein the network is a medium for providing a communication link between the terminal device and the server, which may include various connection types, such as wired or wireless communication links or optical fiber cables, etc.; the operating system on the terminal device may include a handheld device operating system (iPhone operating system, iOS system), Android system or other operating systems, and the terminal device is connected to the server via the network to achieve interaction, thereby performing operations such as receiving or sending data, and specifically may be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, portable computers and desktop servers, etc. Figure 1 As shown, the method specifically comprises the following steps:

[0051] S100: Obtain source face image and source audio data.

[0052] In this embodiment, the source face image is the target face image of the speaking face video that the user wants to generate. For example, source face photos of different styles and images can be collected and stored in advance to form a face library. When it is necessary to generate a speaking face video, the user can arbitrarily select a photo in the face library as the source face image for subsequent speaking face video generation, which is convenient, fast and flexible to generate speaking face videos with different images; the source audio data is the voice signal of the final generated video, which can be a piece of audio data directly uploaded by the user, or can be automatically converted based on the text content to obtain the corresponding audio data, for example, news audio data can be automatically converted based on the acquired news text, or teaching audio data can be automatically converted based on the acquired teaching text, etc. In this embodiment, the two-dimensional source face image and source audio data are used as the generation basis of the speaking face video, and the audio information is mainly used, and the image information is supplemented to realize the generation of the face speaking video based on the audio drive, without the need to shoot the video of the real person, saving the generation time and human resources, and also saving the storage resources.

[0053] S200, extracting facial feature parameters from the source facial image, and extracting audio features from the source audio data.

[0054] In this embodiment, feature extraction is performed based on the acquired source face image and source audio data to obtain face feature parameters and audio features, thereby providing a reliable data basis for the movements, postures and expressions of the face in the speaking face video, so as to generate a speaking face video with a high degree of fit in combination with the face feature parameters driven by the audio features.

[0055] In one embodiment, Figure 2 As shown, step S200 includes:

[0056] S201, inputting the source face image into a face parameter recognition model to extract face feature parameters of a specified dimension;

[0057] S202: Input the source audio data into a speech recognition model to extract audio features of each frame in the source audio data.

[0058] In this embodiment, feature extraction is performed on the source face image through a face parameter recognition model to obtain face feature parameters of specified dimensions. The specific face parameter recognition model includes a face recognition FaceNet module and a feature extraction Regressor module, wherein the FaceNet module generates an embedding vector of the face, and the Regressor module regresses the face feature parameters of specified dimensions required for three-dimensional face reconstruction. The face feature parameters of the specified dimensions include face identity feature parameters, expression feature parameters, texture detail feature parameters, illumination feature parameters, and posture feature parameters. Specifically, when subsequent three-dimensional face reconstruction is performed based on 3DMM, i.e., a 3D deformation statistical model of the face, the extracted face feature parameters include 80 face identity feature parameters, 64 expression feature parameters, 80 texture detail feature parameters, 27 illumination feature parameters, and 6 posture feature parameters. By adjusting these parameters, the 3DMM model can be deformed and adjusted to obtain a three-dimensional speaking face image.

[0059] For the source audio data, this embodiment uses a speech recognition model such as the DeepSpeech model to perform frame-by-frame feature extraction, and then obtain the audio features of each frame, so as to subsequently drive the generation of a three-dimensional face image of each frame. DeepSpeech is a speech recognition system based on a deep neural network. It uses a long short-term memory network (LSTM) to process speech signals and converts them into text through a continuous tokenization process. Specifically, DeepSpeech uses a convolutional neural network (CNN) to process the input speech signal to extract its features; then processes the speech features through an LSTM to capture the long-term dependencies in the speech sequence; and inputs the output of the LSTM together with the speech features into a continuous tokenization model to convert it into text. Compared with traditional methods such as extracting speech MFCC features, DeepSpeech can obtain deeper and more accurate content features, which can bring better performance as subsequent input.

[0060] S300: Input the audio features into a trained three-dimensional feature generation model, and generate a three-dimensional face image set based on the fusion of the model output results and the face feature parameters.

[0061] In this embodiment, the extracted audio features are input into a trained three-dimensional feature generation model, which is obtained by training a facial parameter generation network built based on a convolutional neural network and a long short-term memory network. The three-dimensional facial features corresponding to the source audio data are obtained by driving the audio signal, and are fused with the facial feature parameters extracted from the source face image to reconstruct the three-dimensional face and generate a corresponding three-dimensional face image set.

[0062] Specifically, the training process of the three-dimensional feature generation model can be: obtaining a training video set, preprocessing the voice signal in the training set video, extracting the audio features of each frame, and saving each frame of the face image in the training video set and extracting the above-mentioned 80 face identity feature parameters, 64 expression feature parameters, 80 texture detail feature parameters, 27 illumination feature parameters and 6 posture feature parameters, totaling 257 dimensions of face feature parameters; building a face parameter generation network based on a convolutional neural network and a long short-term memory network, using the extracted audio features of the training set video, using the audio features corresponding to each frame as the network input, using the expression feature parameters and posture feature parameters of the face image corresponding to each frame as labels, and training under the supervision of a loss function. After the training is completed, a three-dimensional feature generation model is obtained. Through the three-dimensional feature generation model, three-dimensional face features corresponding to lip movements and head postures can be generated based on the input audio features, thereby realizing audio-driven three-dimensional face feature representation, which can save the tedious work of face modeling and save a lot of time and human resources.

[0063] In one embodiment, Figure 3 As shown, step S300 includes:

[0064] S301, inputting the audio features frame by frame into a trained three-dimensional feature generation model to obtain three-dimensional facial features of each frame, wherein the three-dimensional facial features include lip movement features and head posture features;

[0065] S302, reconstructing the three-dimensional face after re-integrating the three-dimensional face features and face feature parameters of each frame, and generating a three-dimensional face image set including multiple frames of three-dimensional face images.

[0066] In this embodiment, when obtaining a three-dimensional face image set based on audio feature reconstruction, each frame of extracted audio features is input frame by frame into the trained three-dimensional feature generation model to obtain the three-dimensional face features of each frame. Based on the above training process, it can be known that in this embodiment, the corresponding lip movement features and head posture features can be generated through the input audio features; the lip movement features and head posture features of each frame obtained by audio drive are reintegrated with the facial feature parameters of the source face image and then three-dimensional face reconstruction is performed to generate a three-dimensional face image set containing multiple frames of three-dimensional face images.

[0067] Specifically, since the image of the person in the generated talking face video needs to remain unchanged, in the process of three-dimensional face reconstruction, the person identity feature parameters, texture detail feature parameters and illumination feature parameters of the source face are kept unchanged, and the lip movement features and head posture features obtained by the input source audio data are used to change the initially extracted expression feature parameters and posture feature parameters, and three-dimensional face reconstruction is performed through 3DMM, i.e., the 3D deformation statistical model of the face. 3DMM is a general three-dimensional face model that represents the face with a fixed number of points. Its core idea is that faces can be matched one by one in three-dimensional space and can be obtained by weighted linear addition of many other orthogonal bases of faces. Therefore, the person identity feature parameters, texture detail feature parameters, illumination feature parameters, lip movement features and head posture features are reintegrated through 3DMM to achieve three-dimensional face reconstruction, generate new three-dimensional face images for each frame, and then obtain a set of three-dimensional face images corresponding to the source audio data. There is no need to shoot videos of real people. Only existing face photos can be combined with input source audio data to generate natural and realistic three-dimensional face images, thereby improving the visual effect of speaking face videos.

[0068] S400: Input the source face picture and the three-dimensional face image set into a trained video frame generation model, and output a speaking face image set.

[0069] In this embodiment, a three-dimensional face image set is obtained by three-dimensional face reconstruction driven by source face images and audio, and detail features and style features are mined through a trained video frame generation model, which is further combined with the output speaking face image set to maximize the fit between the face image in the speaking face video and the source face image, making the generated video more realistic and natural.

[0070] The video frame generation model includes an encoder based on a residual network, a pSp framework, and a generation network based on StyleGAN-v2. It is trained under the supervision of a loss function. The loss function includes the following parts:

[0071] 1. Perceptual similarity, which is more in line with human perception process, denoted as L LPIPS

[0072] 2. Use the L1 loss function as the reconstruction loss, denoted as L RECON

[0073] 3. Generative adversarial loss based on PatchGAN, denoted as L GAN

[0074] 4. Increase identity loss to ensure that the person's identity information remains unchanged, denoted as L ID

[0075] Loss = 10*LLPIPS +10*L RECON +5*L GAN +1*L ID The video frame generation model is trained as a constraint to achieve the best results.

[0076] In one embodiment, Figure 4 As shown, step S400 includes:

[0077] S401, performing feature extraction on the source face image and each three-dimensional face image in the three-dimensional face image set to obtain a multi-scale feature pyramid;

[0078] S402, extracting a style vector of the three-dimensional face image from the multi-scale feature pyramid;

[0079] S403: Input the style vector into a generative adversarial network, output a plurality of speaking face images with head postures and lip movements, and obtain a speaking face image set.

[0080] In this embodiment, an encoder based on a residual network is first built in the video frame generation model, and features are extracted from each three-dimensional face image in the three-dimensional face image set of the source face image to obtain pyramid-shaped features of different sizes, namely a multi-scale feature pyramid. Specifically, the pyramid of an image is a set of images arranged in a pyramid shape with gradually decreasing resolutions and originating from the same original image. The images are obtained by stepwise downsampling until a certain termination condition is reached. The bottom of the pyramid is a high-resolution representation of the image to be processed, while the top is a low-resolution approximation. Therefore, the higher the level, the smaller the image and the lower the resolution. By extracting multi-scale feature information for fusion, it is beneficial to improve the accuracy of the model. Then, the pSp framework is used to obtain the style vector of the three-dimensional face image from the multi-scale feature pyramid. The pSp framework is based on a new encoder network to directly generate a series of style vectors. These vectors are input into a pre-trained StyleGAN generator to form an extended W+ potential space, which can better represent the face posture direction and detail features. Finally, based on the generation network of StyleGAN-v2, the above features are used as input to output a speaking face image with a new head posture and lip movement, thereby obtaining a speaking face image set, and realizing efficient and visually good speaking face image generation.

[0081] S500: Combine the corresponding frames of the speaker face image set and the source audio data to obtain a speaker face video.

[0082] In this embodiment, based on the combination of the generated speaking face image set and the corresponding frames of the source audio data, the problem of lip shape and sound asynchrony can be avoided, and a smooth, natural, stable and audio-visual synchronized speaking face video can be generated. This embodiment uses a single face picture and any voice audio, and uses a three-dimensional face image as an intermediate feature to generate a real target person speaking video. The generation method is efficient and convenient, and a natural and realistic speaking face video can be generated without shooting real-life video, thereby improving the efficiency and visual effect of speaking face video generation.

[0083] In one embodiment, Figure 5 As shown, step S500 includes:

[0084] S501, determining the number of video frames according to the frame information of the source audio data, and determining the frame sequence number of each speaker face image in the speaker face image set based on the number of video frames;

[0085] S502: Combine the source audio data and the speaking face image with the same frame number to generate a speaking face video.

[0086] In this embodiment, the number of video frames is determined based on the frame information of the source audio data, wherein the frame information of the source audio data is the number of frames contained in the audio, that is, the number of video frames contained in the generated target video is consistent with the number of frames contained in the audio by default. Of course, in other embodiments, the user can also change the number of video frames according to actual needs. The frame number of each speaking face image in the generated speaking face image set is determined based on the number of video frames, and the frame number of the speaking face image is matched with the frame number of the source audio data, so as to combine the audio and image frame by frame, generate a smooth, natural, stable and audio-visual synchronized face speaking video, ensure that the expression, lip shape and sound of the speaking face video are synchronized, and improve the generation effect of the speaking face video.

[0087] Another embodiment of the present invention provides a device for generating a video of a speaking person's face, such as Figure 6 As shown, the device 1 comprises:

[0088] An acquisition module 11 is used to acquire source face images and source audio data;

[0089] A feature extraction module 12 is used to extract facial feature parameters of the source facial image and extract audio features from the source audio data;

[0090] A three-dimensional face image generation module 13 is used to input the audio features into a trained three-dimensional feature generation model, and generate a three-dimensional face image set based on the fusion of the model output results and the face feature parameters;

[0091] A speaking face image generation module 14, used for inputting the source face picture and the three-dimensional face image set into a trained video frame generation model, and outputting a speaking face image set;

[0092] The speaking face video generating module 15 is used to combine the speaking face image set and the source audio data at corresponding frames to obtain the speaking face video.

[0093] The module referred to in the present invention refers to a series of computer program instruction segments that can perform specific functions, which are more suitable for describing the execution process of generating a speaking face video than a program. For the specific implementation of each module, please refer to the corresponding method embodiment above, which will not be repeated here.

[0094] In one embodiment, the feature extraction module 12 includes:

[0095] A first extraction unit, used for inputting the source face image into a face parameter recognition model to extract face feature parameters of a specified dimension;

[0096] The second extraction unit is used to input the source audio data into a speech recognition model to extract audio features of each frame in the source audio data.

[0097] In one embodiment, the facial feature parameters of the specified dimensions include: facial identity feature parameters, expression feature parameters, texture detail feature parameters, illumination feature parameters and posture feature parameters.

[0098] In one embodiment, the three-dimensional face image generation module 13 includes:

[0099] A three-dimensional feature generation unit, used to input the audio features frame by frame into a trained three-dimensional feature generation model to obtain three-dimensional facial features of each frame, wherein the three-dimensional facial features include lip movement features and head posture features;

[0100] The three-dimensional face reconstruction unit is used to reconstruct the three-dimensional face according to the three-dimensional face features and face feature parameters of each frame, and generate a three-dimensional face image set containing multiple frames of three-dimensional face images.

[0101] In one embodiment, the three-dimensional feature generation model is obtained by training a face parameter generation network based on a convolutional neural network and a long short-term memory network.

[0102] In one embodiment, the speaking face image generation module 14 includes:

[0103] A feature extraction unit, used to extract features from the source face image and each three-dimensional face image in the three-dimensional face image set to obtain a multi-scale feature pyramid;

[0104] A style vector unit, used to extract the style vector of the three-dimensional face image from the multi-scale feature pyramid;

[0105] The speaking face image generating unit is used to input the style vector into a generative adversarial network, output a plurality of speaking face images with head postures and lip movements, and obtain a speaking face image set.

[0106] In one embodiment, the speaking face video generation module 15 includes:

[0107] a frame information determining unit, configured to determine the number of video frames according to the frame information of the source audio data, and determine the frame sequence number of each speaker face image in the speaker face image set based on the number of video frames;

[0108] The combined generation unit is used to combine the source audio data and the speaking face image of the same frame number to generate a speaking face video.

[0109] Another embodiment of the present invention provides a system for generating a speaking face video. Figure 7 As shown, the system 10 includes:

[0110] One or more processors 110 and memory 120, Figure 7 A processor 110 is used as an example for description. The processor 110 and the memory 120 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0111] The processor 110 is used to complete various control logics of the system 10, and it can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of these components. In addition, the processor 110 can also be any traditional processor, microprocessor or state machine. The processor 110 can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP and / or any other such configuration.

[0112] The memory 120 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions corresponding to the method for generating a speaking face video in the embodiment of the present invention. The processor 110 executes various functional applications and data processing of the system 10 by running the non-volatile software programs, instructions and units stored in the memory 120, that is, implementing the method for generating a speaking face video in the above method embodiment.

[0113] The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the system 10, etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 120 may optionally include a memory remotely arranged relative to the processor 110, and these remote memories may be connected to the system 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0114] One or more units are stored in the memory 120, and when executed by one or more processors 110, the method for generating a speaking face video in any of the above method embodiments is executed, for example, the following steps are executed:

[0115] Get source face image and source audio data;

[0116] Extracting facial feature parameters from the source facial image, and extracting audio features from the source audio data;

[0117] Input the audio features into a trained three-dimensional feature generation model, and generate a three-dimensional face image set based on the model output results and the face feature parameters;

[0118] Inputting the source face picture and the three-dimensional face image set into a trained video frame generation model, and outputting a speaking face image set;

[0119] The speaker face image set and the source audio data are combined at corresponding frames to obtain a speaker face video.

[0120] In one embodiment, extracting facial feature parameters of the source facial image and extracting audio features of each frame in the source audio data includes:

[0121] Inputting the source face image into a face parameter recognition model to extract face feature parameters of a specified dimension;

[0122] The source audio data is input into a speech recognition model to extract audio features of each frame in the source audio data.

[0123] In one embodiment, the facial feature parameters of the specified dimensions include: facial identity feature parameters, expression feature parameters, texture detail feature parameters, illumination feature parameters and posture feature parameters.

[0124] In one embodiment, the step of inputting the audio features into a trained three-dimensional feature generation model and fusing the model output results with the facial feature parameters to generate a three-dimensional facial image set includes:

[0125] Inputting the audio features frame by frame into the trained three-dimensional feature generation model to obtain three-dimensional facial features of each frame, wherein the three-dimensional facial features include lip movement features and head posture features;

[0126] The three-dimensional face is reconstructed after the three-dimensional face features and face feature parameters of each frame are re-fused to generate a three-dimensional face image set containing multiple frames of three-dimensional face images.

[0127] In one embodiment, the three-dimensional feature generation model is obtained by training a face parameter generation network based on a convolutional neural network and a long short-term memory network.

[0128] In one embodiment, the step of inputting the source face image and the three-dimensional face image set into a trained video frame generation model and outputting a speaking face image set includes:

[0129] Performing feature extraction on the source face image and each three-dimensional face image in the three-dimensional face image set to obtain a multi-scale feature pyramid;

[0130] Extracting a style vector of the three-dimensional face image from the multi-scale feature pyramid;

[0131] The style vector is input into a generative adversarial network, and a plurality of talking face images with head postures and lip movements are output to obtain a talking face image set.

[0132] In one embodiment, combining the corresponding frames of the speaker face image set and the source audio data to obtain the speaker face video includes:

[0133] Determine the number of video frames according to the frame information of the source audio data, and determine the frame sequence number of each speaker face image in the speaker face image set based on the number of video frames;

[0134] The source audio data and the speaking face image of the same frame number are combined to generate a speaking face video.

[0135] An embodiment of the present invention provides a non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by one or more processors, the method for generating a speaking face video in any of the above method embodiments is executed, for example, the following steps are performed:

[0136] Get source face image and source audio data;

[0137] Extracting facial feature parameters from the source facial image, and extracting audio features from the source audio data;

[0138] Input the audio features into a trained three-dimensional feature generation model, and generate a three-dimensional face image set based on the model output results and the face feature parameters;

[0139] Inputting the source face picture and the three-dimensional face image set into a trained video frame generation model, and outputting a speaking face image set;

[0140] The speaker face image set and the source audio data are combined at corresponding frames to obtain a speaker face video.

[0141] In one embodiment, extracting facial feature parameters of the source facial image and extracting audio features of each frame in the source audio data includes:

[0142] Inputting the source face image into a face parameter recognition model to extract face feature parameters of a specified dimension;

[0143] The source audio data is input into a speech recognition model to extract audio features of each frame in the source audio data.

[0144] In one embodiment, the facial feature parameters of the specified dimensions include: facial identity feature parameters, expression feature parameters, texture detail feature parameters, illumination feature parameters and posture feature parameters.

[0145] In one embodiment, the step of inputting the audio features into a trained three-dimensional feature generation model and fusing the model output results with the facial feature parameters to generate a three-dimensional facial image set includes:

[0146] Inputting the audio features frame by frame into the trained three-dimensional feature generation model to obtain three-dimensional facial features of each frame, wherein the three-dimensional facial features include lip movement features and head posture features;

[0147] The three-dimensional face is reconstructed after the three-dimensional face features and face feature parameters of each frame are re-fused to generate a three-dimensional face image set containing multiple frames of three-dimensional face images.

[0148] In one embodiment, the three-dimensional feature generation model is obtained by training a face parameter generation network based on a convolutional neural network and a long short-term memory network.

[0149] In one embodiment, the step of inputting the source face image and the three-dimensional face image set into a trained video frame generation model and outputting a speaking face image set includes:

[0150] Performing feature extraction on the source face image and each three-dimensional face image in the three-dimensional face image set to obtain a multi-scale feature pyramid;

[0151] Extracting a style vector of the three-dimensional face image from the multi-scale feature pyramid;

[0152] The style vector is input into a generative adversarial network, and a plurality of talking face images with head postures and lip movements are output to obtain a talking face image set.

[0153] In one embodiment, combining the corresponding frames of the speaker face image set and the source audio data to obtain the speaker face video includes:

[0154] Determine the number of video frames according to the frame information of the source audio data, and determine the frame sequence number of each speaker face image in the speaker face image set based on the number of video frames;

[0155] The source audio data and the speaking face image of the same frame number are combined to generate a speaking face video.

[0156] As an example, non-volatile storage media can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) as external cache memory. By way of illustration and not limitation, RAM can be obtained in many forms such as synchronous RAM (SRAM), dynamic RAM, (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The disclosed memory components or memories of the operating environment described herein are intended to include one or more of these and / or any other suitable types of memory.

[0157] In summary, the present invention discloses a method, device, system and medium for generating a speaking face video, the method comprising: obtaining a source face picture and source audio data; extracting facial feature parameters of the source face picture, and extracting audio features from the source audio data; inputting the audio features into a trained three-dimensional feature generation model, and generating a three-dimensional face image set according to the model output result and the facial feature parameter fusion; inputting the source face picture and the three-dimensional face image set into a trained video frame generation model, and outputting a speaking face image set; combining the speaking face image set and the source audio data for corresponding frames to obtain a speaking face video. Through a speaking face video generation method driven by audio data, a three-dimensional face image with a high degree of fit is generated by reconstructing audio features and source face images, so that a natural and realistic speaking face video can be generated without shooting a real person video, thereby improving the efficiency and visual effect of speaking face video generation.

[0158] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium, and the computer program can include the processes of the above-mentioned method embodiments when executed. The storage medium can be a memory, a disk, a floppy disk, a flash memory, an optical storage device, etc.

[0159] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A method for generating a speaking face video, characterized in that: include: Get source face image and source audio data; Extracting facial feature parameters from the source facial image, and extracting audio features from the source audio data; Input the audio features into a trained three-dimensional feature generation model, and generate a three-dimensional face image set based on the model output results and the face feature parameters; Inputting the source face picture and the three-dimensional face image set into a trained video frame generation model, and outputting a speaking face image set; The speaker face image set and the source audio data are combined at corresponding frames to obtain a speaker face video.

2. The method for generating a speaking face video according to claim 1, characterized in that: The extracting facial feature parameters of the source facial image and extracting audio features of each frame in the source audio data includes: Inputting the source face image into a face parameter recognition model to extract face feature parameters of a specified dimension; The source audio data is input into a speech recognition model to extract audio features of each frame in the source audio data.

3. The method for generating a speaking face video according to claim 2, characterized in that: The facial feature parameters of the specified dimensions include: facial identity feature parameters, expression feature parameters, texture detail feature parameters, illumination feature parameters and posture feature parameters.

4. The method for generating a speaking face video according to claim 2, characterized in that: The step of inputting the audio features into a trained three-dimensional feature generation model and fusing the model output results with the facial feature parameters to generate a three-dimensional face image set comprises: Inputting the audio features frame by frame into the trained three-dimensional feature generation model to obtain three-dimensional facial features of each frame, wherein the three-dimensional facial features include lip movement features and head posture features; The three-dimensional face is reconstructed after the three-dimensional face features and face feature parameters of each frame are re-fused to generate a three-dimensional face image set containing multiple frames of three-dimensional face images.

5. The method for generating a speaking face video according to claim 1, characterized in that: The three-dimensional feature generation model is obtained by training a face parameter generation network based on a convolutional neural network and a long short-term memory network.

6. The method for generating a speaking face video according to claim 1, characterized in that: The step of inputting the source face picture and the three-dimensional face image set into a trained video frame generation model and outputting a speaking face image set comprises: Performing feature extraction on the source face image and each three-dimensional face image in the three-dimensional face image set to obtain a multi-scale feature pyramid; Extracting a style vector of the three-dimensional face image from the multi-scale feature pyramid; The style vector is input into a generative adversarial network, and a plurality of talking face images with head postures and lip movements are output to obtain a talking face image set.

7. The method for generating a speaking face video according to claim 1, characterized in that: The combining of corresponding frames of the speaker face image set and the source audio data to obtain a speaker face video includes: Determine the number of video frames according to the frame information of the source audio data, and determine the frame sequence number of each speaker face image in the speaker face image set based on the number of video frames; The source audio data and the speaking face image of the same frame number are combined to generate a speaking face video.

8. A device for generating a video of a speaking face, characterized in that: include: An acquisition module is used to acquire source face images and source audio data; A feature extraction module, used to extract facial feature parameters of the source facial image and extract audio features from the source audio data; A three-dimensional face image generation module, used to input the audio features into a trained three-dimensional feature generation model, and generate a three-dimensional face image set based on the fusion of the model output results and the face feature parameters; A speaking face image generation module, used for inputting the source face picture and the three-dimensional face image set into a trained video frame generation model, and outputting a speaking face image set; The speaking face video generation module is used to combine the speaking face image set and the source audio data in corresponding frames to obtain the speaking face video.

9. A system for generating a video of a speaking face, characterized in that: The system includes at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for generating a speaking face video according to any one of claims 1 to 7.

10. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores computer-executable instructions, which, when executed by one or more processors, enable the one or more processors to execute the method for generating a speaking face video according to any one of claims 1 to 7.

Citation Information

Cited By

  • Digital human lip shape synchronization method based on voice driving

    CN119170039A

  • Real-time generation method and device of digital figure

    CN119206005A

  • A real-time generation method and device for digital characters

    CN119206005B

  • Character-driven AIGC video generation method and device

    CN119255064A

  • Method and system for matching hand actions of digital doll shape through human voice

    CN120544594A