Method, device, equipment and computer program for driving the movement of a target object

By integrating 2D and 3D facial parameters and incorporating previous-frame similarity loss, the method addresses the smoothness and realism issues in mouth-synchronized speech video generation, resulting in a more realistic and visually enhanced synthesized video.

JP7557055B2Active Publication Date: 2024-09-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023518520
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-12-04
Filing Date
2021-11-30
Publication Date
2024-09-26
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

Existing mouth-synchronized speech video generation methods in deep learning are not smooth and realistic, primarily due to the lack of supplementary information on teeth details and inadequate consideration of frame differences during training, leading to blurred and unrealistic videos.

Method used

A method that combines 2D mouth key points and 3D facial expression parameters from voice features, using a two-stage rendering network to optimize mouth shape texture and incorporate previous-frame similarity loss for improved video smoothness and realism.

Benefits of technology

The method generates a synthesized video with enhanced smoothness and realism by accurately combining 2D and 3D facial parameters, reducing video blur and improving the visual effect of video composition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007557055000015
    Figure 0007557055000015
  • Figure 0007557055000010
    Figure 0007557055000010
  • Figure 0007557055000007
    Figure 0007557055000007
Patent Text Reader

Abstract

A method, device, equipment, storage medium and computer program product for driving the movement of a target object in the field of artificial intelligence technology, the method for driving the movement of a target object comprising the steps of: acquiring a source audio and acquiring a target video, wherein the target video includes a target object; performing a facial parameter conversion process on the audio parameters of the source audio at each time to obtain source parameters of the source audio at the corresponding time; performing a parameter extraction process on the target video to obtain target parameters of the target video; performing an image reconstruction process on the target object in the target video based on combined parameters obtained by combining the source parameters and the target parameters to obtain a reconstructed image; and generating a composite video using the reconstructed image, wherein the composite video includes the target object and the movement of the target object corresponds to the source audio.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application claims priority to a Chinese patent application bearing application number 202011413461.3, filed with the China Patent Office on December 4, 2020, the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the technical field of the Internet, and relates to, but is not limited to, a method, an apparatus, a device, a computer-readable storage medium, and a computer program product for driving the operation of a target object. [Background technology]

[0003] Recently, in the field of mouth shape synchronized speaking video generation, the synchronization process is mainly realized based on deep learning. In the related art, one embodiment is to use a recurrent neural network to learn mouth keypoints from speech features, then generate mouth textures based on the mouth keypoint information, and finally combine with the target video frame to obtain a mouth shape synchronized speaking video frame; another embodiment is to first learn a common shared "speech-expression" space from speech segments of multiple different sources, and then determine the final mouth shape synchronized speaking video frame based on the obtained expression parameters.

[0004] However, the final mouth-shape synchronized speaking video frames generated by the methods in the related art have the problem of being not smooth and not realistic. Summary of the Invention [Means for solving the problem]

[0005] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The embodiments of the present application provide a method, apparatus, device, computer-readable storage medium and computer program product for driving motion of a target object, which can improve the smoothness and realism of the final composite video.

[0006] The technical solutions of the embodiments of the present application can be realized as follows.

[0007] An embodiment of the present application provides a method for driving a motion of a target object, the method comprising: acquiring a source audio and acquiring a target video, the target video including a target object; performing a facial parameter conversion process on the voice parameters of the source voice at each time to obtain source parameters of the source voice at the corresponding time; performing a parameter extraction process on the target video to obtain target parameters of the target video; performing an image reconstruction process on a target object in the target video based on a combined parameter obtained by combining the source parameters and the target parameters to obtain a reconstructed image; generating a synthetic video with the reconstructed image, where the synthetic video includes the target object and movements of the target object correspond to the source audio.

[0008] An embodiment of the present application provides an apparatus for driving a motion of a target object, the apparatus comprising: a capture module configured to capture a source audio and capture a target video, the target video including a target object; a facial parameter conversion module configured to perform a facial parameter conversion process on the voice parameters of the source voice at each time to obtain source parameters of the source voice at the corresponding time; a parameter extraction module configured to perform a parameter extraction process on the target video to obtain target parameters of the target video; an image reconstruction module configured to perform an image reconstruction process on a target object in the target video based on combined parameters obtained by combining the source parameters and the target parameters to obtain a reconstructed image; A generation module configured to generate a synthetic video from the reconstructed image, the synthetic video including the target object, and the motion of the target object corresponding to the source audio.

[0009] An embodiment of the present application provides a target object action driving system including at least a terminal and a server, The terminal is used to send an action driving request of the target object to the server, the action driving request includes a source audio and a target video, and the target video includes a target object; The server is used to realize the above-mentioned target object action driving method in response to the action driving request.

[0010] An embodiment of the present application provides a computer program product or a computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium, a processor of a computing device reading the computer instructions from the computer-readable storage medium, and the processor being used to realize the above-mentioned method for driving the operation of a target object by executing the computer instructions.

[0011] An embodiment of the present application provides a motion driving device for a target object, the motion driving device for the target object comprising a memory for storing executable instructions, and a processor for realizing the above-mentioned motion driving method for the target object when executing the executable instructions stored in the memory.

[0012] An embodiment of the present application provides a computer-readable storage medium having executable instructions stored thereon, the executable instructions causing a processor to perform the above-mentioned method for driving motion of a target object.

[0013] The embodiment of the present application has the following beneficial effects: the combined parameters of the source parameters and the target parameters can finally obtain a synthetic video that drives the action of the target object with sound, and can improve the smoothness and realism of the final synthetic video, thereby improving the visual effect of video synthesis. [Brief description of the drawings]

[0014] [Figure 1] FIG. 1 is a system framework diagram of a method for driving the motion of a target object in the related art. [Diagram 2] FIG. 2 is an architecture diagram of a target object motion driving system according to an embodiment of the present application. [Diagram 3] 1 is a schematic structural diagram of a target object motion driving device according to an embodiment of the present application; [Figure 4] 2 is a flowchart of a method for driving the motion of a target object according to an embodiment of the present application. [Diagram 5] 2 is a flowchart of a method for driving the motion of a target object according to an embodiment of the present application. [Figure 6A] 2 is a flowchart of a method for driving the motion of a target object according to an embodiment of the present application. [Figure 6B] 2 is a flowchart of a method for driving the motion of a target object according to an embodiment of the present application. [Figure 7] 1 is an implementation flowchart of a method for training an image rendering model according to an embodiment of the present application; [Figure 8] FIG. 2 is a system framework diagram of a method for driving the motion of a target object according to an embodiment of the present application. [Figure 9] FIG. 2 is a block diagram of a text-to-speech conversion module according to an embodiment of the present application. [Figure 10] FIG. 2 is a block diagram of a voice-to-facial parameter conversion network according to an embodiment of the present application; [Figure 11] FIG. 13 is an effect diagram of the Dlib algorithm according to an embodiment of the present application. [Figure 12] FIG. 2 is a block diagram of an image rendering model according to an embodiment of the present application. [Figure 13] FIG. 1 is a block diagram of a condition-based generative adversarial network according to an embodiment of the present application. [Figure 14] 1 is a video of a virtual person synchronously speaking synthesized by a method in the related art. [Figure 15] 2 is a diagram showing a synthetic video generated by a method for driving the motion of a target object according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in more detail below with reference to the accompanying drawings. The described embodiments do not limit the present application, and all other embodiments that can be obtained by those skilled in the art without any creative effort are within the scope of protection of the present application.

[0016] In the following, the description of "some embodiments" describes a subset of all possible embodiments, but it is understood that "some embodiments" may be the same or different subsets of all possible embodiments, and may be combined with each other if not inconsistent. Unless otherwise specified, all technical and scientific terms used in this application have the same meaning as commonly understood by those skilled in the art of this application. The terms used in this application are only used to describe the embodiments of this application, and are not intended to limit the application.

[0017] Before describing the embodiments of the present application, a method for driving the movement of a target object in the related art will be described.

[0018] At present, lip-sync speech video generation methods are mainly divided into two types: text-driven and voice-driven. Text-driven is literally inputting text and the target person's video, converting the text to voice through TTS (Text To Speech) technology, learning facial features from the voice features, and finally outputting a video of the target person reading the input text. Meanwhile, voice-driven is skipping the TTS step and directly inputting the voice and the target person's video, and the text-driven method can be said to be an extension of the voice-driven method. At present, lip-sync speech video generation methods are mainly realized based on deep learning, and the Audio2Obama method first uses a recurrent neural network to learn 20 mouth keypoints from the voice features, then generates mouth texture based on the mouth keypoint information, and finally combines it with the target video frame to obtain a lip-sync speech video frame. In contrast, the text-driven ObamaNet method mainly includes three modules, namely, a "text-speech" module, a "speech-keypoint" module, and a "keypoint-video frame" module, where the "text-speech" module adopts Char2Wav in the TTS algorithm, the "speech-keypoint" module also uses a recurrent neural network to learn keypoint information from speech features, and the "keypoint-video frame" module uses a U-Net network that realizes information transmission through skip connections. This method is the first deep learning-based text-driven mouth shape synchronous speaking video generation model.

[0019] Although all of the above methods can achieve good results, the above methods are all based on experimental validation by the same person, so the model is not easily scalable. For this reason, other methods are also working on designing networks that can accommodate different people's voices. For example, one method first learns a common and shared "voice-expression" space based on voice segments from multiple different sources, then performs 3D face reconstruction based on the obtained expression parameters, and then obtains a corresponding face coordinate mapping map, i.e., UV map, which is a map mapped from 3D face coordinates to a two-dimensional plane. This method also uses a U-Net network to render video frames. Another method utilizes a voice identity removal network to transform the voice features of different speakers into the global domain, then uses a recurrent neural network to learn expression parameters from the voice features, combines the obtained expression parameters with the 3D face parameters of the target person, reconstructs a 3D grid, and inputs the 3D grid into a U-Net network to obtain the final video frame. Another method mainly improves the rendering module and proposes a memory-augmented generative adversarial network (GAN) to preserve the individual features and spatial feature pairs of different speakers, thereby realizing different speaker conversation video synthesis.

[0020] In the related art, a target object motion driving method based on a voice-driven model is further proposed, which first learns a common and shared "voice-expression" space from voice segments of multiple different sources, and this space is composed of multiple blend shapes, and the expression parameters of different people can all be composed of linear combinations of different blend shapes in the space. Then, 3D face reconstruction is performed based on the obtained expression parameters to obtain a corresponding UV map, and then a U-Net based on dilation and convolution is adopted to render the video frame. Figure 1 is a system framework diagram of the target object motion driving method in the related art. As shown in Figure 1, the system framework of the target object motion driving method is composed of a generalized network 11 and a specialized network 12, where the specific processing flow of the system framework of this technical solution is as follows: First, audio segments 111 from different sources are input to a voice recognition system (DeepSpeech RNN) 112 for audio feature extraction to obtain audio features, and then a Convolutional Neural Network (CNN) 113 maps the audio features of different people to a common shared latent audio expression space 114, which can be constructed by linear combinations of different blendshapes in this space. The output of the generic network 11 enters a content-aware filtering 121 of a specialized network 12 to obtain smooth audio-expression parameters 122, thereby obtaining a reconstructed 3D face model 123 and a UV map 124. Finally, the UV map 124 and a background image 125 are input to a neural rendering network 126 to obtain a final output image 127.

[0021] The above-mentioned method in the related art has at least the following problems. The voice drive in the related art cannot output a corresponding mouth shape synchronized speaking video for a specified text. The facial parameters used in the related art are only UV Maps obtained from a 3D face model, but the UV Maps only provide the network with a priori data of the mouth shape, and the network does not have auxiliary information on the details of the teeth. In the related art, when training the rendering network, only the frames corresponding to the predicted values ​​and actual values ​​are penalized, and the input previous and next frames are not considered, so the difference between the previous and next frames is not optimized, and the final video is blurred. In addition, the above-mentioned method in the related art also has a problem that the video corresponding to the generated final mouth shape synchronized speaking video frame is not smooth and not realistic.

[0022] In the field of 3D virtual person mouth synchronous speaking video generation, there are currently two main challenges: face reconstruction and rendering of video frames. For the first challenge, the embodiment of the present application provides a voice-to-face parameter conversion network, which can simultaneously learn 2D mouth keypoints and 3D facial expression parameters from voice features, thereby obtaining accurate position information provided by 2D keypoints while retaining the advantage that 3D facial parameters have depth information, and combining 2D and 3D parameters to reconstruct a face can ensure its accuracy. After obtaining the reconstructed face, it is further blended with the background. For the second challenge, the embodiment of the present application provides a two-stage rendering network, where the first rendering network renders a mouth texture region from the reconstructed face, and the second rendering network combines the mouth texture region with the background to render the final video frame. The advantages of using a two-stage rendering network are as follows: 1) By training two rendering networks separately, the difficulty of training can be reduced and the accuracy of the mouth texture generated by the first rendering network can be ensured. 2) When training the second rendering network, a penalty is again imposed on the mouth region, which achieves the correction of mouth shape and optimization of details such as teeth and wrinkles. In addition, when training the rendering network, a video frame similarity loss is further adopted to ensure that the difference between the output previous and next frames is not large, thereby avoiding the problems of video blur and the video being unsmooth and unrealistic.

[0023] In the method for driving the movement of the target object according to the embodiment of the present application, first, obtain source audio and target video, and the target video includes the target object; then, perform face parameter conversion processing on the audio parameters at each time of the source audio, obtain the source parameters of the source audio at the corresponding time; perform parameter extraction on the target video, and obtain target parameters; perform image reconstruction on the target object in the target video based on the combined parameters obtained by combining the source parameters and the target parameters, and obtain a reconstructed image; finally, generate a synthetic video by the reconstructed image, and the target object is included in the synthetic video, and the movement of the target object corresponds to the source audio. In this way, obtain a final synthetic video that drives the movement of the target object with audio based on the combined parameters of the source parameters and the target parameters, so that the final synthetic video is smoother and more realistic, and can improve the visual effect of video synthesis.

[0024] It should be noted that the face in the embodiments of the present application is not limited to a human face, but may be an animal face or a virtual object face.

[0025] In the following, application examples of the target object motion-driven device of the embodiment of the present application will be described, and in one embodiment, the target object motion-driven device of the embodiment of the present application may be implemented as any terminal with a video playback function, such as a notebook computer, a tablet PC, a desktop computer, a mobile device (such as a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable game device, etc.), a smart robot, etc., and in another embodiment, the target object motion-driven device of the embodiment of the present application may be implemented as a server. In the following, an application example in which the target object motion-driven device is implemented as a server will be described.

[0026] Referring to Fig. 2, Fig. 2 is an architecture diagram of a target object motion driving system 20 according to an embodiment of the present application. In order to synthesize a synthetic video having a target object and a source voice at the same time, i.e. to generate a synthetic video that drives the motion of a target object with the source voice, the target object motion driving system 20 according to an embodiment of the present application includes a terminal 100, a network 200, and a server 300, the terminal 100 obtains a target video and a source voice, generates a target object motion driving request according to the target video and the source voice, and transmits the motion driving request to the server 300 via the network 200, and the server 300 responds to the motion driving request by performing face parameter conversion processing on the voice parameters at each time of the source voice, obtains the source parameters of the source voice at the corresponding time, performs parameter extraction on the target video, obtains target parameters, and then performs image reconstruction on the target object in the target video according to the combined parameters obtained by combining the source parameters and the target parameters, obtains a reconstructed image, and generates a synthetic video according to the reconstructed image, where the target object is included in the synthetic video, and the motion of the target object corresponds to the source voice. After obtaining the composite video, it transmits the composite video to the terminal 100 through the network 200. After obtaining the composite video, the terminal 100 plays the composite video on the current interface 100-1 of the terminal 100.

[0027] In the following, an application example in which a target action-driven device is implemented as a terminal will be described.

[0028] In order to synthesize a composite video having a target object and a source voice at the same time, that is, to generate a composite video that drives the action of a target object with the source voice, the terminal 100 obtains a target video and a source voice, where the target video and the source voice can be a locally stored video and a voice, or a video and a voice recorded in real time, the terminal performs a facial parameter conversion process on the voice parameters of the source voice at each time, obtains the source parameters of the source voice at the corresponding time, performs parameter extraction on the target video, obtains a target parameter, and then performs image reconstruction on the target object in the target video according to the combined parameters obtained by combining the source parameters and the target parameters, obtains a reconstructed image, and generates a composite video by the reconstructed image, where the target object is included in the composite video, and the action of the target object corresponds to the source voice. After obtaining the composite video, the composite video is played on the current interface 100-1 of the terminal 100.

[0029] The method for driving the movement of a target object according to the embodiment of the present application further relates to the field of artificial intelligence technology, and realizes the synthesis of a synthetic video by artificial intelligence technology. The embodiment of the present application can be realized by at least computer vision technology, voice technology, and natural language processing technology in artificial intelligence technology. Computer vision technology (CV: Computer Vision) is a science that studies how to make a machine "see", and further uses a camera and a computer instead of human eyes to perform machine vision such as identifying, tracking, measuring, etc. on a target, and further performs graphics processing to make the computer processing result an image that is easy to observe with human eyes or easy to transmit to an instrument and detect. As a scientific field, computer vision studies related theories and technologies, and aims to build an artificial intelligence system that can obtain information from images or multi-dimensional data. Computer vision technology usually includes image processing, image recognition, image semantic understanding, image search, optical character recognition (OCR), video processing, video semantic understanding, video content / action recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, synchronous localization and map construction, as well as common biological feature recognition technologies such as face recognition and fingerprint recognition. The core technologies of speech technology include automatic speech recognition technology (ASR), text to speech technology (TTS), and voiceprint recognition technology. Enabling computers to hear, see, speak, and feel is the development direction of future human-machine interaction, among which voice has become one of the most promising human-machine interaction methods in the future. Natural language processing (NLP) is an important direction in the field of computer science and artificial intelligence, and studies various theories and methods to realize effective communication between humans and computers using natural language. Natural language processing is a science that combines linguistics, computer science, and mathematics.Therefore, this field of research is concerned with natural language, i.e. language used by humans on a daily basis, and is therefore closely related to the study of linguistics. Natural language processing techniques typically include techniques such as text processing, semantic understanding, machine translation, robotic question answering, and knowledge graphs.

[0030] The method for driving the behavior of a target object provided by the embodiment of the present application can also be implemented by cloud technology based on a cloud platform, for example, the above-mentioned server 300 can be a cloud server.

[0031] FIG. 3 is a schematic structural diagram of a target object operation driving device according to an embodiment of the present application. Taking the target object operation driving device as the above-mentioned server 300 as an example, the server 300 shown in FIG. 3 includes at least one processor 310, a memory 350, at least one network interface 320, and a user interface 330. Each component in the server 300 is coupled by a bus system 340. It can be understood that the bus system 340 is used to realize connection communication between these components. The bus system 340 includes a power bus, a control bus, and a status signal bus in addition to a data bus. However, for clarity of explanation, all the various buses are represented as the bus system 340 in FIG. 3.

[0032] The processor 310 may be an integrated circuit chip with signal processing capabilities, such as, for example, a general purpose processor, a digital signal processor (DSP), a programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc., where the general purpose processor may be a microprocessor or any conventional processor, etc.

[0033] The user interface 330 includes one or more output devices 331 that enable media content to be displayed and presented, including one or more speakers and / or one or more visual displays. The user interface 330 further includes one or more input devices 332 that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, or other input buttons and controls.

[0034] The memory 350 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard drives, optical drives, etc. The memory 350 includes one or more storage devices located physically separate from the processor 310. The memory 350 may include volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be read only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 350 described in the embodiments of the present application includes any suitable type of memory. In some embodiments, the memory 350 may store data to support various operations, as exemplified below, examples of which include programs, modules, and data structures, or a subset or superset thereof.

[0035] The operating system 351 includes system programs for handling various basic system services and performing hardware-related tasks, such as a frame layer, a core library layer, and a drive layer, and is configured to implement various basic operations and handle hardware-based tasks.

[0036] The network communications module 352 is configured to reach other computing devices by one or more (wired or wireless) network interfaces 320, example network interfaces 320 including Bluetooth, Wireless Compatibility (WiFi), Universal Serial Bus (USB), etc.

[0037] The input processing module 353 is configured to detect one or more user inputs or interactions from one or more input devices 332 and to interpret the detected inputs or interactions.

[0038] In some embodiments, the apparatus according to the embodiments of the present application may be implemented in software, and Fig. 3 shows a target object motion driver 354 stored in memory 350, which may be a target object motion driver in server 300, or may be software in the form of a program or plug-in, or may be a software module including an acquisition module 3541, a face parameter conversion module 3542, a parameter extraction module 3543, an image reconstruction module 3544, and a generation module 3545, which are logical and may be arbitrarily combined or further divided according to the implemented functions. The functions of each module are described below.

[0039] In some alternative embodiments, the apparatus according to the embodiments of the present application may be implemented in hardware, and as an example, the apparatus provided in the embodiments of the present application may be a processor, such as a hardware decoding processor, that is programmed to execute the target object operation driving method provided in the embodiments of the present application, and for example, the processor, such as a hardware decoding processor, may employ one or more Application Specific Integrated Circuits (ASICs), DSPs, digital signal processors (PLDs), Complex Programmable Logic Devices (CPLDs), Field-Programmable Gate Arrays (FPGAs), or other electronic elements.

[0040] In the following, a method for driving a motion of a target object according to an embodiment of the present application will be described in relation to an exemplary application and implementation of the server 300 according to an embodiment of the present application, which may be a video synthesis method. Referring to Fig. 4, Fig. 4 is a flowchart of a method for driving a motion of a target object according to an embodiment of the present application, which will be described below with reference to the steps shown in Fig. 4.

[0041] In step S401, a source audio and a target video are obtained, and the target video includes a target object.

[0042] Here, the server can receive a target object action driving request sent by a user via a terminal, and the action driving request is used to request a synthesis of a source audio and a target video to generate a synthetic video that simultaneously has the target object and the source audio, and drives the action of the target object with the source audio, i.e., the synthetic video requested to be generated has the target object in the target video, and the audio corresponding to the target object is the source audio.

[0043] The source audio may be a pre-recorded audio by a user, an audio downloaded from a network, or an audio obtained by converting a specific text. In some embodiments, the audio characteristics of the source audio may be the audio characteristics of a specific target, or the audio characteristics of a target target in a target video.

[0044] In step S402, a facial parameter conversion process is performed on the voice parameters of the source voice at each time to obtain the source parameters of the source voice at the corresponding time.

[0045] Here, the source parameters at each time include, but are not limited to, facial expression parameters and mouth keypoint parameters, where the facial expression parameters are facial expression parameters corresponding to the voice parameters at that time, for example, if the voice parameters correspond to a happy voice, the facial expression parameters may be a smiling facial expression parameter, and if the voice parameters correspond to a sad voice, the facial expression parameters may be a frowning facial expression parameter. The mouth keypoint parameters are mouth shape parameters when expressing the voice parameters at that time.

[0046] In the present embodiment, the facial expression parameters are 3D facial expression parameters and the mouth keypoint parameters are 2D keypoint parameters.

[0047] In step S403, a parameter extraction process is performed on the target video to obtain target parameters.

[0048] Here, a preset algorithm can be adopted to perform parameter extraction on the target video, that is, parameter extraction can be performed on the target object in the target video, where the target parameters include, but are not limited to, target mouth keypoint parameters and target face parameters, and of course, the target parameters can further include posture parameters, position parameters, shape parameters, and movement parameters of the target object, etc.

[0049] In step S404, an image reconstruction process is performed on the target object in the target video based on the combined parameters obtained by combining the source parameters and the target parameters to obtain a reconstructed image.

[0050] Here, the source parameters and the target parameters are firstly combined to obtain combined parameters, which are parameters for representing the posture, position, shape, motion, mouth shape and other states of the target object in the final composite video.

[0051] In an embodiment of the present application, image reconstruction is performed on the target object based on the combined parameters to obtain a reconstructed image, which is the image for generating the final composite video.

[0052] In step S405, a composite video is generated by the reconstructed image.

[0053] Here, the synthetic video contains a target object, and the actions of the target object correspond to the source audio.

[0054] In the embodiment of the present application, a corresponding reconstructed image is generated according to the voice parameters at each time, and each reconstructed image is rendered to generate one composite image, and since the voice parameters have a certain duration, the reconstructed image has at least one, and the duration of the composite video is equal to the duration of the source voice, or the duration of the composite video is longer than the duration of the source voice. When there is one reconstructed image, the composite video finally generated is one composite image, and when there are multiple reconstructed images, the duration of the composite video finally generated is the same as the duration of the source voice, and the composite video is a video formed by connecting multiple composite images in time series.

[0055] In some embodiments, the target video may have at least one video frame, the target video having a target object, and when the target video includes one video frame, the video frame has the target object, and the video compositing request is used to request generating a composite video having the target object, and the composite video is a dynamic video obtained based on the one video frame, and when the target video includes multiple video frames, at least one video frame has the target object, the video compositing request is used to request generating a composite video having the target object, and the composite video is a dynamic video obtained based on the multiple video frames.

[0056] In some embodiments, when the target video includes multiple video frames, the duration of the target video may be the same as or different from the duration of the source audio. If the duration of the target video is the same as the duration of the source audio, a synthetic image can be formed according to the audio parameters at each time of the source audio corresponding to each video frame, and finally a synthetic video having the same duration as the target video can be formed.

[0057] The embodiments of the present application may be applied to the following scenarios: In the education industry, when a teaching video related to a certain knowledge point needs to be generated, the source audio corresponding to the knowledge point (i.e., the classroom teacher's audio) and the target video including the teacher's lecture can be input to the server, and the server adopts the method of the embodiments of the present application to directly generate and output a teaching video (i.e., a composite video) in which the teacher lectures on the knowledge point.

[0058] In the method for driving the movement of the target object according to the embodiment of the present application, the voice parameters of the source voice at each time are subjected to face parameter conversion processing, the source parameters of the source voice at the corresponding time are obtained, the parameter extraction is performed on the target video, the target parameters are obtained, and the image reconstruction is performed on the target object according to the combined parameters of the source parameters and the target parameters, the reconstructed image is obtained, and finally, a synthetic video is generated by the reconstructed image, where the target object is included in the synthetic video, and the movement of the target object corresponds to the source voice. In this way, the final synthetic video is obtained, which drives the movement of the target object with the voice according to the combined parameters of the source parameters and the target parameters, so that the final synthetic video is smoother and more realistic, and the visual effect of the video synthesis is improved.

[0059] In some embodiments, the target object motion driving system includes at least a terminal and a server, and realizes a response to the terminal's motion driving request through interaction between the terminal and the server, and generates a synthetic video desired by a user. Here, the motion driving request includes a source voice and a target video, and the motion driving request may further include a source text, and the source voice can be obtained by the source text. Figure 5 is a flowchart of a target object motion driving method according to an embodiment of the present application, and as shown in Figure 5, the method includes the following steps:

[0060] In step S501, a terminal source audio and a target video are obtained.

[0061] Here, the source audio may be audio collected by a user via an audio collecting device on the terminal, or audio downloaded by a user via the terminal, and the target video may be a video of any duration, and the target video includes a target object.

[0062] In step S502, the terminal obtains a source text and a target video.

[0063] Here, the source text is text for generating source audio, and in the embodiments of the present application, not only can the input source audio be processed to generate a synthetic video having the source audio, but the input source text can also be analyzed and converted to generate source audio, thereby forming a synthetic video having the source audio.

[0064] In step S503, the terminal performs text analysis on the source text to obtain linguistic features of the source text.

[0065] Here, the linguistic features include, but are not limited to, linguistic features such as pinyin, stop, punctuation marks, intonation, etc. In some embodiments, text analysis can be performed on the source text based on artificial intelligence technology to obtain the linguistic features of the source text.

[0066] In step S504, the terminal performs acoustic parameter extraction on the linguistic features to obtain the acoustic parameters of the source text in the time domain.

[0067] Here, the acoustic parameters are parameterized representations of the source text in the time domain, and the acoustic parameters of the source text in the time domain are obtained by performing acoustic parameter extraction on the linguistic features.

[0068] In step S505, the terminal performs a conversion process on the acoustic parameters to obtain the speech waveform of the source text in the frequency domain.

[0069] Here, the speech waveform is an acoustic representation that corresponds to acoustic parameters, and the speech waveform is a parameterized representation of the source text in the frequency domain.

[0070] In step S506, the terminal determines the audio corresponding to the audio waveform as the source audio.

[0071] In step S507, the terminal encapsulates the source audio and the target video to form an action driving request.

[0072] In some embodiments, the terminal may also encapsulate the source text into an action driving request and send the action driving request to the server, so that the server realizes the steps of converting the source text into source speech in steps S503 to S506.

[0073] In step S508, the terminal transmits an action drive request to the server.

[0074] In step S509, the server parses the action driving request to obtain the source audio and the target video.

[0075] In step S510, the server performs face parameter conversion processing on the voice parameters of the source voice at each time, and obtains the source parameters of the source voice at the corresponding time.

[0076] In step S511, the server performs parameter extraction on the target video to obtain target parameters.

[0077] In step S512, the server performs image reconstruction on the target object in the target video based on the combined parameters obtained by combining the source parameters and the target parameters to obtain a reconstructed image.

[0078] In step S513, the server generates a synthetic video by the reconstructed image, where the synthetic video includes the target object, and the action of the target object corresponds to the source voice.

[0079] It should be noted that steps S510 to S513 are similar to steps S402 to S405 described above, and will not be described repeatedly in this embodiment.

[0080] In step S514, the server sends the composite video to the terminal.

[0081] In step S515, the terminal plays the composite video on the current interface.

[0082] In some embodiments, the source parameters include facial expression parameters and mouth keypoint parameters. Based on Fig. 4, Fig. 6A is a flowchart of a target object motion driving method according to an embodiment of the present application. As shown in Fig. 6A, step S402 can be realized by the following steps:

[0083] In step S601, feature extraction is performed on the source speech to obtain a speech feature vector of the source speech.

[0084] In step S602, the speech feature vector undergoes convolution processing and complete connection processing in sequence to obtain the facial expression parameters and mouth keypoint parameters of the source speech at the corresponding time.

[0085] In some embodiments, step S602 can be realized by sequentially performing convolution processing on the speech feature vector by at least two first convolution layers having a specific convolution core to obtain a convolution processing vector, and sequentially performing fully connected processing on the convolution processing vector by at least two fully connected layers to obtain a fully connected processing vector.

[0086] Here, the fully connected processing vector includes a vector corresponding to the facial expression parameters and a vector corresponding to the mouth keypoint parameters, where the sum of the dimensions of the vector corresponding to the facial expression parameters and the vector corresponding to the mouth keypoint parameters is equal to the dimension of the fully connected processing vector.

[0087] With continued reference to FIG. 6A, in some embodiments, step S403 may be accomplished by the following steps.

[0088] In step S603, mouth parameter extraction and face parameter extraction are sequentially performed on the target object in the current video frame of the target video, and target mouth keypoint parameters and target face parameters are obtained correspondingly.

[0089] Here, the target mouth keypoint parameters and the target face parameters are parameters of a target object. When the target video includes multiple video frames, the target mouth keypoint parameters and the target face parameters of the target object in each video frame can be extracted.

[0090] In step S604, the target mouth keypoint parameters and the target face parameters are determined as target parameters.

[0091] With continued reference to FIG. 6A, in some embodiments, step S404 may be accomplished by the following steps.

[0092] In step S605, the source parameters and the target parameters are combined to obtain combined parameters.

[0093] Here, combining the source parameters and the target parameters may involve extracting parameters for generating a final composite image and removing parameters that are not used to generate the final composite image to obtain combined parameters.

[0094] In step S606, image reconstruction is performed for the target object in the target video based on the combined parameters to obtain a mouth contour map and a UV map.

[0095] In an embodiment of the present application, the reconstructed image includes a mouth contour map and a UV map, where the mouth contour map is used to represent the contour of the target subject's mouth in the final generated composite image, and the UV map is used in combination with the mouth contour map to generate a texture for the target subject's mouth area in the composite image.

[0096] In step S607, the mouth contour diagram and the UV map are used as a reconstructed image.

[0097] In an embodiment of the present application, the source parameters include facial expression parameters and mouth keypoint parameters, the target parameters include target mouth keypoint parameters and target face parameters, and the target face parameters include at least a target pose parameter, a target shape parameter, and a target facial expression parameter.

[0098] In some embodiments, step S605 can be realized by the steps of: obtaining replaced face parameters by replacing target expression parameters in the target face parameters with expression parameters; obtaining replaced mouth keypoint parameters by replacing target mouth keypoint parameters with mouth keypoint parameters; and treating the replaced face parameters and the replaced mouth keypoint parameters as combined parameters.

[0099] Referring to FIG. 6B, the process of generating a synthetic video by the reconstructed image in step S405 can be realized by the following steps.

[0100] In step S6054, an image rendering model is invoked based on the replaced face parameters at each time instant, the replaced mouth keypoint parameters, and a background image corresponding to the target video.

[0101] The replaced face parameters, the replaced mouth keypoint parameters, and a background image corresponding to the target video at each time instant are input into an image rendering model, where the reconstructed image includes the replaced face parameters and the replaced mouth keypoint parameters.

[0102] In step S6055, the first rendering network in the image rendering model performs mouth shape region rendering on the replaced face parameters at each time and the replaced mouth keypoint parameters at each time to obtain a mouth shape region texture image at each time.

[0103] In some embodiments, the first rendering network includes at least one second convolution layer, at least one first downsampling layer, and at least one first upsampling layer, where the mouth shape region rendering process can be realized by sequentially performing convolution processing and downsampling processing on the replaced face parameters and the replaced mouth keypoint parameters by the second convolution layer and the first downsampling layer to obtain depth features of a reconstructed image, and performing upsampling processing on the depth features of the reconstructed image by the first upsampling layer to restore the resolution of the reconstructed image and obtain a mouth shape region texture image.

[0104] In step S6056, a stitching process is performed on the mouth area texture image and the background image by the second rendering network in the image rendering model to obtain a composite image at each time.

[0105] In some embodiments, the second rendering network includes at least one third convolution layer, at least one second downsampling layer, and at least one second upsampling layer, where the stitching process can be realized by sequentially performing convolution and downsampling processes on the mouth area texture image and the background image by the third convolution layer and the second downsampling layer to obtain depth features of the mouth area texture image and the background image, and performing upsampling processes on the depth features of the mouth area texture image and the background image by the second upsampling layer to restore resolution of the mouth area texture image and the background image, and obtain a composite image at a current time.

[0106] In step S6057, a composite video including the target object and the source audio is determined based on the composite image at each time instant.

[0107] In some embodiments, the image rendering model is used to render the reconstructed image at each time to generate a composite image at a corresponding time, and the composite image includes not only the target object but also the source voice at the corresponding time. Here, the image rendering model includes at least a first rendering network and a second rendering network, the first rendering network is used to perform feature extraction and mouth region rendering on the reconstructed image and the target image respectively, and the second rendering network is used to perform stitching on the mouth region texture image and the target image. The following describes a training method for the image rendering model provided by the embodiments of the present application.

[0108] FIG. 7 is an implementation flowchart of a method for training an image rendering model according to an embodiment of the present application. As shown in FIG. 7, the method includes the following steps:

[0109] In step S701, an image rendering model is invoked based on the reconstructed image samples and the target image samples.

[0110] In some embodiments, the reconstructed image sample can be realized by the steps of performing a facial parameter conversion process on the voice parameters of the voice sample at the current time to obtain a voice parameter sample, performing parameter extraction on the target image sample to obtain a target parameter sample, combining the voice parameter sample and the target parameter sample to obtain a combined parameter sample, and performing image reconstruction for the target object in the target image sample based on the combined parameter sample to obtain the reconstructed image sample.

[0111] In some embodiments, the reconstructed image sample can further be realized by performing text analysis on the text sample to obtain linguistic features of the text sample, performing acoustic parameter extraction on the linguistic features of the text sample to obtain acoustic parameters of the text sample in the time domain, performing a conversion process on the acoustic parameters to obtain a voice waveform of the text sample in the frequency domain, and determining a voice corresponding to the voice waveform as a voice sample, performing a facial parameter conversion process on the voice parameters of the voice sample at the current time to obtain a voice parameter sample, performing parameter extraction on the target image sample to obtain a target parameter sample, combining the voice parameter sample and the target parameter sample to obtain a combined parameter sample, and performing image reconstruction for a target object in the target image sample based on the combined parameter sample to obtain the reconstructed image sample.

[0112] Here, the target image samples include the target object samples, and the finally generated composite image samples also include the target object samples.

[0113] In step S702, a first rendering network of the image rendering model performs feature extraction processing and mouth shape region rendering on the reconstructed image sample and the target image sample to obtain a mouth shape texture image sample.

[0114] Here, the first rendering network includes at least one second convolution layer, at least one first downsampling layer, and at least one first upsampling layer.

[0115] When performing feature extraction, the second convolution layer performs a convolution process on parameters corresponding to the input reconstructed image samples and the target image samples, and the first downsampling layer performs a downsampling process on the parameters after the convolution process to extract depth features of the reconstructed image samples and the target image samples, that is, to extract and obtain the first image feature samples. When performing mouth shape region rendering, the first upsampling layer performs an upsampling process on the extracted first image feature samples to restore the resolution of the reconstructed image samples and the target image samples, and obtain the mouth shape texture image samples.

[0116] In the embodiments of the present application, a second convolution layer is connected before each first downsampling layer, and a second convolution layer is connected after each first upsampling layer, i.e., a convolution process is performed before each downsampling process, and a convolution process is performed after each upsampling process. In some embodiments, a skip connection is introduced between the first downsampling layer and the first upsampling layer, and feature information of different resolutions is retained through the skip connection.

[0117] In step S703, a stitching process is performed on the mouth shape texture image sample and the target image sample by a second rendering network in the image rendering model to obtain a composite image sample.

[0118] Here, the second rendering network includes at least one third convolution layer, at least one second downsampling layer, and at least one second upsampling layer.

[0119] When performing stitching, first, the third convolution layer performs convolution processing on the parameters corresponding to the input mouth shape texture image sample and the target image sample, and the second downsampling layer performs downsampling processing on the parameters after convolution processing to extract the depth features of the mouth shape texture image sample and the target image sample, that is, to extract and obtain the second image feature sample. Then, the second upsampling layer performs upsampling processing on the extracted second image feature sample to restore the resolution of the mouth shape texture image sample and the target image sample, and obtain a composite image sample.

[0120] In the embodiments of the present application, a third convolution layer is connected before each second downsampling layer, and a third convolution layer is connected after each second upsampling layer, i.e., a convolution process is performed before each downsampling process, and a convolution process is performed after each upsampling process. In some embodiments, a skip connection is introduced between the second downsampling layer and the second upsampling layer, and feature information of different resolutions is retained through the skip connection.

[0121] In step S704, a predefined loss model is invoked based on the synthetic image samples to obtain a loss result.

[0122] In some embodiments, step S704 can be realized by obtaining an actual synthetic image corresponding to the reconstructed image sample and the target image sample, stitching the synthetic image sample and the actual synthetic image, and then inputting them into a predetermined loss model, and calculating previous and next frame similarity loss for the synthetic image sample and the actual synthetic image according to the predetermined loss model to obtain a loss result.

[0123] In the embodiment of the present application, when calculating the front-back frame similarity loss, the following loss functions can be calculated, that is, the loss between two losses related to the real synthetic image and the synthetic image sample in the image rendering model, the adversarial generation loss, the L1 loss, the final loss obtained by linearly weighting the difference between the feature maps output by the real synthetic image and the synthetic image sample in the N activation layers calculated using the L1 loss, and the front-back frame similarity loss can be calculated, where the loss result is calculated based on at least one of the above loss functions, that is, the loss between two losses related to the real synthetic image and the synthetic image sample in the image rendering model, the adversarial generation loss, the L1 loss, the final loss obtained by linearly weighting the difference between the feature maps output by the real synthetic image and the synthetic image sample in the N activation layers calculated using the L1 loss, and the front-back frame similarity loss can be weighted and added to obtain the loss result.

[0124] In step S705, based on the loss result, the parameters in the first rendering network and the second rendering network are corrected to obtain a trained image rendering model.

[0125] In the embodiment of the present application, when training the image rendering model, an adversarial generation strategy is adopted to perform model training based on the similarity between previous and next frames, so that the loss result of the image rendering model in each prediction can be calculated.In this way, the image rendering model can be accurately trained, and the image rendering model obtained by training takes into account the continuous changes between previous and next frames, so that the changes between two consecutive video frames in the generated synthetic video are smoother, so that the obtained synthetic video is smoother and more realistic, and the visual effect of the synthetic video generated by the image rendering model can be improved.

[0126] An example of an actual application scene in one embodiment of the present application will be described below.

[0127] The embodiments of the present application can be applied to video generation scenes with synchronized mouth speech, such as smart speakers, smart TVs, artificial intelligence (AI) education, virtual anchors (also called "virtual anchors"), and live performances. The target object motion driving method according to the embodiments of the present application can synthesize a synchronized speech video corresponding to a specific target person based on input text or voice, greatly improving the human-machine interaction effect and user experience of smart products.

[0128] For example, when applied to AI education, the target object is a virtual teacher, and the target object behavior driving method according to the embodiment of the present application automatically generates a personalized 3D virtual teacher teaching video that speaks synchronously based on the text or voice input by the teacher, and gives a lesson to the students, simulating the function of a teacher giving an online lesson in a realistic manner, improving the user experience for the students and reducing the workload of the teacher.

[0129] As an example, when applied to a live performance, the target object is a virtual caster, and the target object operation driving method according to the embodiment of the present application automatically generates a live video of the virtual caster speaking synchronously based on the text or voice input from the caster, and the virtual caster can gain popularity by broadcasting a live game, deepen interactions through a chat show, and obtain high views by remaking songs or dancing, thereby improving the efficiency of the live performance.

[0130] Hereinafter, a method for driving the movement of a target object according to an embodiment of the present invention will be described in detail.

[0131] The target object motion-driven method according to the embodiment of the present application is a text-driven or voice-driven 3D virtual mouth shape synchronized speaking video generation technology, which predicts the mouth shape by combining 2D and 3D facial parameters, and then synthesizes the final output image using a rendering network trained by video frame difference loss, thereby solving the problems of the voice-driven model being limited to only voice input, resulting in unrealistic and blurred synthesized video.

[0132] In the embodiment of the present application, text or voice can be used to learn 2D / 3D face parameters, so as to generate a speech video that is synchronized with a specific target person's realistic mouth shape. In the realization process, firstly, a TTS technology is used to convert input text into corresponding voice, then a convolutional neural network is adopted to learn 2D / 3D face parameters from voice features, and 2D / 3D face parameters are extracted for the target person's video, and the target person's parameters are replaced with the learned parameters to reconstruct a new 2D / 3D face model, and the reconstructed face model (i.e., the reconstructed image) is input into a rendering network to generate a video frame, thereby realizing the generation of a video of target person's mouth shape synchronization speech.

[0133] FIG. 8 is a system framework diagram of a target object motion driving method according to an embodiment of the present application. As shown in FIG. 8, the input to the system may be a segment of source text 801 or source speech 802. When the input is source text 801, the system generates corresponding source speech via a text-to-speech conversion module 803. Then, the source speech obtains corresponding facial parameters via a speech-to-face parameter conversion network 804, where the facial parameters include 2D mouth keypoints and 3D expression parameters. The obtained facial parameters are combined with the target parameters obtained by a facial parameter extraction module 805 to reconstruct a new face model 806, where a UV Map 8061 and a reconstructed mouth keypoint 8062 are obtained by the face model 806. Then, the UV Map 8061 and the reconstructed mouth keypoint 8062 can be input to a two-stage image rendering model 807 trained by front-back frame similarity loss to generate a final output image 808 (i.e., a synthetic image).

[0134] In the following, each component in the system framework of the target object motion driving method will be described in detail.

[0135] Regarding the text-to-speech conversion module 803, the purpose of this module is to convert a given segment of input source text into a corresponding source speech as input for the speech-to-facial parameters conversion network.

[0136] FIG. 9 is a block diagram of a text-to-speech conversion module according to an embodiment of the present application. As shown in FIG. 9, the text-to-speech conversion module mainly includes three sub-modules: a text analysis module 901, an acoustic model module 902, and a vocoder module 903. The text analysis module 901 is used to analyze an input text (i.e., a source text) to determine the pronunciation, speaking style, intonation, etc. of each character, and map the text to linguistic features, including but not limited to linguistic features such as pinyin, pauses, punctuation, intonation, etc. The acoustic model module 902 is used to map the linguistic features to acoustic parameters, where the acoustic parameters are a parametric representation of the source text in the time domain, and the vocoder module 903 is used to convert the acoustic parameters into speech waveforms, where the speech waveforms are a parametric representation of the source text in the frequency domain.

[0137] Regarding the voice-to-face parameter conversion network 804, FIG. 10 is a block diagram of a voice-to-face parameter conversion network according to an embodiment of the present application. As shown in FIG. 10, I represents the input audio segment (Input Audio) (i.e., the source audio), obtained by a user utterance or the above text-to-speech conversion module, and F A represents audio features, and c 1 ~c 4 represents four convolution layers, and f 1 ~f 3 represents three fully connected layers, and T S represents the source 3D facial expression parameters, and K S represents the source 2D mouth keypoints.

[0138] The goal of the speech-to-facial parameter conversion network is to predict corresponding source 3D facial expression parameters and 2D mouth keypoints from the input speech segment, where the 3D facial expression parameters have 10-dimensional coefficients, while the 2D mouth keypoints are based on the 20 keypoints used in the Dlib algorithm, and the 2D keypoints are composed of two coordinate systems, (x, y), so the 20 keypoints correspond to a 40-dimensional vector.

[0139] Input source audio A I First, the speech features F are generated by the recurrent neural network (RNN) in the DeepSpeech method. A Then, four convolutional layers c 1 ~c 4 and three fully connected layers f 1 ~f 3 Finally, the CNN extracts the 3D facial expression parameters T S , 2D mouth keypoint K S Here, we obtain two sets of facial parameters, where F A can be a 16×29 tensor, and the convolutional layer c 1 ~c 4 Both of them use 3×1 convolution cores, and F A We reduce the dimensions of c to 8×32, 4×32, 2×64, and 1×64, respectively, and 4 The feature maps output from the three fully connected layers f 1 ~f 3 Then we get vectors of dimensions 128, 64, and 50, respectively.

[0140] Regarding the facial parameter extraction module 805, the module aims to extract the 2D mouth keypoint position and 3D facial parameters of a target person from the video frame of the target person. Here, the 2D mouth keypoint is obtained by the Dlib algorithm, and given an image, the algorithm predicts 68 keypoints of the face. As shown in FIG. 11, FIG. 11 is an effect diagram of the Dlib algorithm according to an embodiment of the present application, the diagram 1101 on the left side is the original image, and the facial points in the diagram 1102 on the right side are the keypoints predicted by the Dlib algorithm. In the embodiment of the present application, only the predicted 20 mouth keypoints may be adopted as the 2D facial parameters. For each face image, 62-dimensional 3D facial parameters are predicted, including 12-dimensional pose parameters, 40-dimensional shape parameters, and 10-dimensional expression parameters. The 2D mouth keypoints and 3D facial expression parameters obtained by the facial parameter extraction module are replaced with the results obtained by the voice-to-facial parameter conversion network, and the pose parameters and shape parameters of the target person are kept to obtain the recombined 3D facial parameters. Then, the recombined 3D face parameters are used to perform face reconstruction on the target person to obtain the corresponding UV map, and the new 2D mouth keypoint information is directly taken as one of the inputs for subsequent rendering.

[0141] Regarding the image rendering model 807, FIG. 12 is a block diagram of the image rendering model according to an embodiment of the present application. As shown in FIG. 12, given 2D mouth keypoints, UV Map, and background image, the purpose of the image rendering model is to synthesize a final mouth shape synchronized speaking video frame. In the realization process, firstly, the 20 reconstructed mouth keypoints are connected to form a polygon for the mouth outline, i.e., K R (reconstructed mouth keypoints), and then based on a specific algorithm, the 3D face parameters are mapped to a UV Map, i.e., U R We can obtain K R and U RThe resolution of each of these is 256×256, and they are stitched together before being input to the image rendering model. The image rendering model is divided into two stages. In the first stage (i.e., the first rendering network), the mouth region texture r 1 Synthesize and r 1 and target video background frame b g (i.e., the background image) is stitched and used as the input for the second rendering network. In the second stage (i.e., the second rendering network), it is combined with the background image to produce the final output r 2 The structures adopted by the two rendering networks are both U-Net networks, which successively adopt downsampling and convolution operations on the input to extract depth features, and then restore the resolution through gradual upsampling layers, and retain the feature information of different resolutions by introducing skip connections between downsampling and upsampling.

[0142] In some embodiments, a condition-based Generative Adversarial Network (GAN) can be adopted when training the rendering network. As shown in FIG. 13, FIG. 13 is a condition-based GAN framework diagram according to an embodiment of the present application. The predicted value F (i.e., synthetic image F) and the real value R (i.e., real image R) of the rendering network are stitched with the input I (i.e., input image I) of the rendering network respectively and then input to the discriminator 1301, and two losses L related to the real value and the predicted value are calculated. D_fake and L D_real The final loss function L of the classifier 1301 is obtained. D is represented by the following formula 1-1.

[0143]

number

[0144] The rendering network can be viewed as a generator, and its loss function is the generative adversarial loss L G_GAN Including L G_GAN is the L D_fake The difference is that the generator aims to maximize this value so that the discriminator cannot distinguish between real and fake, whereas the discriminator aims to minimize this value so that the synthetic image can be accurately distinguished. In addition, in order to make the synthetic image F closer to the real image R, the generator also adopts the L1 loss as shown in the following formula 1-2.

[0145]

number

[0146] Here, L G_L1 represents the loss value corresponding to the L1 loss.

[0147] In addition, in terms of features, the synthetic image and the real image are constrained. For example, the synthetic image and the real image are input into the VGG19 network, respectively, and then, as shown in the following formula 1-3, the L1 loss is used to calculate the difference between the feature maps output by the two in the five activation layers, respectively, and linear weighting is performed to obtain the final loss L G_VGG get.

[0148]

number

[0149] Here, Relu fi and Relu ri denote the feature maps of the synthetic and real images in the i-th activation layer, respectively.

[0150] The above loss is calculated based on each frame individually and is not constrained between frames, which may cause non-smoothness or blurring in the final composite video. Therefore, the embodiment of the present application uses the previous and next frame similarity loss L G_SmiFurther, the difference between the two frames in the synthesized video and the actual video is reduced. Still referring to FIG. 8, for the t frame to be synthesized, the difference between the t frame to be synthesized and the t-1 frame is first calculated as d fake Similarly, calculate the difference between frame t and frame t-1 in the actual video and write d real And L G_Smi The purpose of fake and d real The difference between 1 (d fake ,d real )].

[0151] In this case, the final loss function L of the generator (i.e., the image rendering model) G is expressed as the following equation 1-4.

[0152]

number

[0153] Here, α, β, and γ are all hyperparameters.

[0154] The method provided by the embodiment of the present application can synthesize a more temporally smooth and realistic result compared with the virtual person synchronized speaking video generation algorithm in other related art. Here, Fig. 14 shows a virtual person synchronized speaking video synthesized by the method in the related art. As shown in Fig. 14, the synthesized video frames are often not smooth and not realistic, and the screen of the video frame 1401 and the screen of the video frame 1402 may not be continuous.

[0155] In contrast, the embodiment of the present application solves the above problems by combining 2D and 3D face parameters and introducing previous and next frame similarity loss, and the final synthetic video effect generated is 10 consecutive video frames in the order from left to right and top to bottom, as shown in Figure 15. As can be seen from Figure 15, the synthetic video generated in the embodiment of the present application is smoother, more realistic, and has a better visual effect.

[0156] It should be noted that the method of the embodiment of the present application belongs to a text-driven method, and by combining mature TTS technology, it can generate a target person's speaking video when a segment of text and an arbitrary segment of a target person's video are given. A typical application scenario of the embodiment of the present application includes the recently emerged AI education industry. Different from the traditional voice-driven virtual teacher generation scheme, the embodiment of the present application extends the input requirement to text or voice, which can further improve the user experience.

[0157] In some embodiments, in the above voice-to-face parameter conversion network, the voice features extracted using DeepSpeech adopt one convolutional neural network to predict face parameters. However, for this module, the embodiments of the present application do not limit the model type of the deep convolutional network, for example, a recurrent neural network or a generative adversarial network can be used instead of the convolutional neural network, and can be selected according to the requirements for actual application or product accuracy and efficiency. Similarly, the two rendering networks in the image rendering model can adopt not only the U-Net structure, but also other encoding / decoding structures such as an hourglass network.

[0158] The following continues to describe an exemplary structure in which the target object motion driver 354 according to the embodiment of the present application is implemented as a software module. In some embodiments, as shown in FIG. 3, the software module in the target object motion driver 354 stored in the memory 350 may be a target object motion driver in the server 300, which: The video signal processing device includes an acquisition module 3541 configured to acquire a source audio and acquire a target video, wherein the target video includes a target object; a facial parameter conversion module 3542 configured to perform a facial parameter conversion process on the audio parameters of the source audio at each time to obtain source parameters of the source audio at the corresponding time; a parameter extraction module 3543 configured to perform a parameter extraction process on the target video to obtain target parameters of the target video; an image reconstruction module 3544 configured to perform an image reconstruction process on the target object in the target video based on combined parameters obtained by combining the source parameters and the target parameters to obtain a reconstructed image; and a generation module 3545 configured to generate a synthetic video using the reconstructed image, wherein the target object is included in the synthetic video and the movement of the target object corresponds to the source audio.

[0159] In some embodiments, the acquisition module 3541 is further configured to acquire a source text, perform a text analysis process on the source text, obtain linguistic features of the source text, perform an acoustic parameter extraction process on the linguistic features, obtain acoustic parameters of the source text in a time domain, perform a conversion process on the acoustic parameters, obtain a speech waveform of the source text in a frequency domain, and obtain a speech corresponding to the speech waveform as the source speech.

[0160] In some embodiments, the source parameters include facial expression parameters and mouth keypoint parameters, and the facial parameter conversion module 3542 is further configured to perform a process of performing a feature extraction process on the speech parameters of the source speech at a given time to obtain a speech feature vector of the source speech, and a process of sequentially performing a convolution process and a full connection process on the speech feature vector to obtain the facial expression parameters and the mouth keypoint parameters of the source speech at the given time.

[0161] In some embodiments, the facial parameter conversion module 3542 is further configured to: perform the convolution process on the audio feature vector by a first convolution layer of at least two layers including a specific convolution core to obtain a convolution process vector; and perform the fully connected process on the convolution process vector by at least two fully connected layers to obtain a fully connected process vector, where the fully connected process vector includes a vector corresponding to the facial expression parameters and a vector corresponding to the mouth keypoint parameters, and a sum of dimensions of the vector corresponding to the facial expression parameters and the vector corresponding to the mouth keypoint parameters is equal to a dimension of the fully connected process vector.

[0162] In some embodiments, the target parameters include target mouth keypoint parameters and the target face parameters, and the parameter extraction module 3543 is further configured to perform a mouth parameter extraction process on the target object in the target video to obtain the target mouth keypoint parameters, and to perform a face parameter extraction process on the target object in the target video to obtain the target face parameters.

[0163] In some embodiments, the image reconstruction module 3544 is further configured to perform a combination process on the source parameters and the target parameters to obtain the combination parameters, perform an image reconstruction process on a target object in the target video based on the combination parameters to obtain a mouth contour map and a face coordinate mapping map, and provide the mouth contour map and the face coordinate mapping map as the reconstructed image.

[0164] In some embodiments, the source parameters include facial expression parameters and mouth keypoint parameters, the target parameters include target mouth keypoint parameters and target face parameters, the target face parameters include target pose parameters, target shape parameters, and target facial expression parameters, and the image reconstruction module 3544 is further configured to: obtain replaced facial parameters by replacing the target facial expression parameters in the target face parameters with the facial expression parameters, obtain replaced mouth keypoint parameters by replacing the target mouth keypoint parameters with the mouth keypoint parameters, and to obtain replaced mouth keypoint parameters, and to define the replaced facial parameters and the replaced mouth keypoint parameters as the combined parameters.

[0165] In some embodiments, the reconstructed image includes the replaced face parameters and the replaced mouth keypoint parameters, and the generation module 3545 is further configured to: invoke an image rendering model based on the replaced face parameters, the replaced mouth keypoint parameters, and a background image corresponding to the target video for each time; perform mouth area rendering on the replaced face parameters for each time and the replaced mouth keypoint parameters for each time by a first rendering network in the image rendering model to obtain a mouth area texture image for each time; perform a stitching process on the mouth area texture image for each time and the background image by a second rendering network in the image rendering model to obtain a composite image for each time; and determine the composite video including the target object and the source audio based on the composite image for each time.

[0166] In some embodiments, the first rendering network includes at least one second convolution layer, at least one first downsampling layer, and at least one first upsampling layer, and the generation module 3545 is further configured to perform a convolution process and a downsampling process on the replaced face parameters and the replaced mouth keypoint parameters by the second convolution layer and the first downsampling layer to obtain depth features of the reconstructed image, and to perform an upsampling process on the depth features of the reconstructed image by the first upsampling layer to obtain the mouth shape region texture image.

[0167] In some embodiments, the second rendering network includes at least one third convolution layer, at least one second downsampling layer, and at least one second upsampling layer, and the generation module 3545 is further configured to perform a convolution process and a downsampling process on the mouth shape region texture image and the background image by the third convolution layer and the second downsampling layer to obtain depth features of the mouth shape region texture image and the background image, and to perform an upsampling process on the depth features by the second upsampling layer to obtain a composite image for each time.

[0168] In some embodiments, the image rendering model is trained by the steps of: invoking the image rendering model based on a reconstructed image sample and a target image sample; performing feature extraction processing and mouth shape region rendering on the reconstructed image sample and the target image sample by a first rendering network of the image rendering model to obtain a mouth shape texture image sample; performing a stitching processing on the mouth shape texture image sample and the target image sample by a second rendering network in the image rendering model to obtain a composite image sample; invoking a predetermined loss model based on the composite image sample to obtain a loss result; and correcting parameters in the first rendering network and the second rendering network based on the loss result to obtain a trained image rendering model.

[0169] In some embodiments, the image rendering model is trained by the steps of obtaining a real synthetic image corresponding to the reconstructed image sample and the target image sample, stitching the synthetic image sample and the real synthetic image, and then inputting them into the predetermined loss model, and calculating a front-back frame similarity loss for the synthetic image sample and the real synthetic image using the predetermined loss model to obtain the loss result.

[0170] It should be noted that the description of the apparatus in the embodiment of the present application is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment, so it will not be described again here. The technical details not disclosed in the embodiment of the apparatus can be understood by referring to the description of the method embodiment of the present application.

[0171] An embodiment of the present application provides a computer program product or a computer program comprising computer instructions, the computer instructions being stored in a computer readable storage medium, a processor of a computing device reading the computer instructions from the computer readable storage medium, and the processor executing the computer instructions causes the computing device to perform the above method embodiment.

[0172] An embodiment of the present application further provides a storage medium having executable instructions stored thereon, the executable instructions causing a processor to perform a method provided by an embodiment of the present application, for example the method illustrated in FIG.

[0173] In some embodiments, the storage medium may be a computer-readable storage medium, such as a memory such as Ferromagnetic Random Access Memory (FRAM), Read Only Memory (ROM), Programmable Read Only Memory (PROM), Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash memory, magnetic memory, an optical disk, or a Compact Disk-Read Only Memory (CD-ROM), or may be a variety of devices including one or any combination of memories.

[0174] In some embodiments, the executable instructions may take the form of a program, software, software module, script, or code, may be written in any type of programming language (including compiled or interpreted, declarative or procedural languages), and may be arranged in any form, including as an independent program, or a module, component, subroutine, or other unit suitable for use in a computing environment.

[0175] As an example, the executable instructions do not necessarily correspond to a file in a file system, but may be stored as part of a file that holds other programs or data, e.g., in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program being discussed, or in multiple collective files (such as files that store one or more modules, subroutines, or code portions). As an example, the executable instructions may be arranged to be executed on one computing device, on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communications network.

[0176] The above is merely an embodiment of the present application, and does not limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and scope of the present application shall be included in the scope of protection of the present application. [Explanation of symbols]

[0177] 11 Generalized Network 111 Audio Segments 113 Convolutional Neural Networks (CNN) 114 Latent Audio Expression Space 12 Specialized Network 121 Content-Aware Filtering 122 Smooth Audio- Expressions 123 Reconstructed 3D Face Model 124 UV Map 124 125 Background Images 126 Neural Rendering Network 127 Final output image 20 Target Motion Driving System 100 devices 100-1 Interface 200 Network 300 Servers 310 Processor 320 Network Interface 330 User Interface 332 Input Device 340 Bus System 350 Memory 351 Operating System 352 Network Communication Module 353 Input Processing Module 354 Target motion driver 3541 Acquisition Module 3542 Face Parameter Conversion Module 3543 Parameter Extraction Module 3544 Image Reconstruction Module 3545 Generation Module 801 Source Text 802 Source Audio 803 Text to Speech Module 804 Voice to Face Parameter Conversion Network 805 Face Parameter Extraction Module 806 Face Model 8061 UV Map 8062 Mouth Key Points 807 Image Rendering Model 808 Final output image 901 Text Analysis Module 902 Acoustic Model Module 903 Vocoder Module

Claims

1. A method for driving a motion of a target object, the method being executed by a motion driving device for a target object, comprising: acquiring a source audio and acquiring a target video, the target video including a target object; performing a facial parameter conversion process on the voice parameters of the source voice at each time to obtain source parameters of the source voice at the corresponding time, the source parameters including 3D facial expression parameters and 2D mouth keypoint parameters; performing a parameter extraction process on the target video to obtain target parameters of the target video; performing an image reconstruction process on a target object in the target video based on a combined parameter obtained by combining the source parameters and the target parameters to obtain a reconstructed image; generating a composite video from the reconstructed images; wherein the target object is included in the synthetic video, and the target object's motion corresponds to the source audio.

2. The step of acquiring the source audio includes: obtaining a source text, and performing a text analysis process on the source text to obtain linguistic features of the source text; performing an acoustic parameter extraction process on the linguistic features to obtain acoustic parameters of the source text in the time domain; performing a transformation process on the acoustic parameters to obtain a speech waveform of the source text in a frequency domain; and determining, as the source audio, an audio corresponding to the audio waveform. The method for driving the movement of a target object according to claim 1 .

3. The step of performing a facial parameter conversion process on the voice parameters of the source voice at each time to obtain source parameters of the source voice at the corresponding time includes: For the speech parameters of the source speech at any time, performing a feature extraction process on the speech parameters to obtain a speech feature vector of the source speech; and performing a convolution process and a complete connection process on the audio feature vector to obtain the 3D facial expression parameters and the 2D mouth keypoint parameters of the source audio at the time. The method for driving the movement of a target object according to claim 1 .

4. The step of sequentially performing a convolution process and a complete connection process on the speech feature vector to obtain the 3D facial expression parameters and the 2D mouth keypoint parameters of the source speech at the time includes: performing the convolution process on the speech feature vector using a first convolution layer of at least two layers including a specific convolution core to obtain a convolution process vector; performing the fully connected process on the convolution vector by at least two fully connected layers to obtain a fully connected vector; the fully connected process vector includes a vector corresponding to the 3D facial expression parameters and a vector corresponding to the 2D mouth keypoint parameters, and a sum of dimensions of the vector corresponding to the 3D facial expression parameters and the vector corresponding to the 2D mouth keypoint parameters is equal to a dimension of the fully connected process vector; The method for driving the movement of a target object according to claim 3.

5. The target parameters include a target mouth keypoint parameter and a target face parameter; The step of performing a parameter extraction process on the target video to obtain target parameters of the target video includes: performing a mouth parameter extraction process on the target object in the target video to obtain the target mouth keypoint parameters; performing a facial parameter extraction process on the target object in the target video to obtain the target facial parameters; The method for driving the movement of a target object according to claim 1 .

6. A method for driving the motion of a target object in the target video before performing an image reconstruction process on the target object to obtain a reconstructed image includes: performing a combination process on the source parameters and the target parameters to obtain the combination parameters; performing an image reconstruction process on a target object in the target video based on a combined parameter obtained by combining the source parameter and the target parameter to obtain a reconstructed image; performing an image reconstruction process for a target object in the target video based on the combined parameters to obtain a mouth contour map and a face coordinate mapping map; and determining the mouth contour diagram and the face coordinate mapping map as the reconstructed image. The method for driving the movement of a target object according to claim 1 .

7. A method for driving a motion of a target object, executed by a motion driving device for a target object, comprising: acquiring a source audio and acquiring a target video, the target video including a target object; performing a facial parameter conversion process on the voice parameters of the source voice at each time to obtain source parameters of the source voice at the corresponding time; performing a parameter extraction process on the target video to obtain target parameters of the target video; performing an image reconstruction process on a target object in the target video based on a combined parameter obtained by combining the source parameters and the target parameters to obtain a reconstructed image; generating a composite video from the reconstructed images; Including, the synthetic video includes the target object, and actions of the target object correspond to the source audio; The source parameters include facial expression parameters and mouth keypoint parameters, the target parameters include target mouth keypoint parameters and target face parameters, the target face parameters include target pose parameters, target shape parameters, and target facial expression parameters; The step of performing a combination process on the source parameters and the target parameters to obtain the combination parameters includes: obtaining a replaced facial parameter by replacing the target facial expression parameter in the target facial parameter with the facial expression parameter; obtaining replaced mouth keypoint parameters by replacing the target mouth keypoint parameters with the mouth keypoint parameters; said replaced face parameters and said replaced mouth keypoint parameters as said combined parameters; Including, the reconstructed image includes the displaced face parameters and the displaced mouth keypoint parameters; The step of generating a composite video from the reconstructed image includes: Invoking an image rendering model based on the replaced face parameters, the replaced mouth keypoint parameters, and a background image corresponding to the target video at each time instant; performing mouth shape region rendering on the replaced face parameters at each time and the replaced mouth keypoint parameters at each time by a first rendering network in the image rendering model to obtain a mouth shape region texture image at each time; performing stitching processing on the mouth area texture image and the background image at each time by a second rendering network in the image rendering model to obtain a composite image at each time; determining the composite video of the target object and the source audio based on the composite image for each time; A method for driving the movement of a target object, comprising:

8. The first rendering network includes at least one second convolution layer, at least one first downsampling layer, and at least one first upsampling layer; performing mouth shape region rendering on the replaced face parameters at each time and the replaced mouth keypoint parameters at each time by a first rendering network in the image rendering model to obtain a mouth shape region texture image at each time, performing convolution and downsampling on the replaced face parameters and the replaced mouth keypoint parameters by the second convolution layer and the first downsampling layer to obtain depth features of the reconstructed image; performing an upsampling process on the depth features of the reconstructed image by the first upsampling layer to obtain the mouth region texture image; The method for driving the movement of a target object according to claim 7.

9. the second rendering network includes at least one third convolutional layer, at least one second downsampling layer, and at least one second upsampling layer; A step of performing a stitching process on the mouth shape region texture image and the background image at each time by a second rendering network in the image rendering model to obtain a composite image at each time, performing a convolution process and a downsampling process on the mouth shape region texture image and the background image by the third convolution layer and the second downsampling layer to obtain depth features of the mouth shape region texture image and the background image; and performing an upsampling process on the depth features by the second upsampling layer to obtain a synthetic image for each time. The method for driving the movement of a target object according to claim 7.

10. The image rendering model is invoking the image rendering model based on reconstructed image samples and target image samples; performing feature extraction processing and mouth shape region rendering on the reconstructed image sample and the target image sample by a first rendering network of the image rendering model to obtain a mouth shape texture image sample; performing a stitching process on the mouth shape texture image sample and the target image sample by a second rendering network in the image rendering model to obtain a composite image sample; invoking a predefined loss model based on the synthetic image samples to obtain a loss result; and correcting parameters in the first rendering network and the second rendering network based on the loss result to obtain a trained image rendering model. The method for driving the movement of a target object according to claim 7.

11. Invoking a predetermined loss model based on the synthetic image samples to obtain a loss result includes: obtaining an actual composite image corresponding to the reconstructed image samples and the target image samples; The synthetic image sample and the real synthetic image are stitched, and then input into the predetermined loss model; and a similarity loss between the synthetic image sample and the real synthetic image is calculated according to the predetermined loss model to obtain the loss result. The method for driving the movement of a target object according to claim 10.

12. A target object motion driver comprising a processing circuit configured to execute a method according to any one of claims 7 to 11.

13. A target object motion driver, a capture module configured to capture a source audio and capture a target video, the target video including a target object; a facial parameter conversion module configured to perform a facial parameter conversion process on the voice parameters of the source voice at each time to obtain source parameters of the source voice at a corresponding time, the source parameters including 3D facial expression parameters and 2D mouth keypoint parameters; a parameter extraction module configured to perform a parameter extraction process on the target video to obtain target parameters of the target video; an image reconstruction module configured to perform an image reconstruction process on a target object in the target video based on combined parameters obtained by combining the source parameters and the target parameters to obtain a reconstructed image; A target object motion driving device comprising: a generation module configured to generate a synthetic video using the reconstructed image, the synthetic video including the target object, and the motion of the target object corresponding to the source audio.

14. A target object motion driving system, comprising: a terminal and a server; The terminal is used to send an action driving request of the target object to the server, the action driving request includes a source audio and a target video, and the target video includes a target object; The server is used to realize the target object motion driving method according to any one of claims 1 to 7 in response to the motion driving request.

15. A target object motion driving system, comprising: a terminal and a server; The terminal is used to send an action driving request of the target object to the server, the action driving request includes a source audio and a target video, and the target video includes a target object; The target object motion driving system, wherein the server is used to realize the target object motion driving method according to any one of claims 8 to 11 in response to the motion driving request.

16. a memory for storing executable instructions; A target object motion driving device comprising: a processor that, when executing executable instructions stored in the memory, executes the target object motion driving method according to any one of claims 1 to 7.

17. A method for manufacturing a computer-implemented computer-implemented system comprising: a memory for storing executable instructions; A target object motion driving device comprising: a processor that, when executing executable instructions stored in the memory, executes the target object motion driving method according to any one of claims 8 to 11.

18. A computer program product that causes a processor to execute the method for driving the movement of a target object according to any one of claims 1 to 7.

19. A computer program causing a processor to execute the method for driving the movement of a target object described in any one of claims 8 to 11.

Citation Information

Patent Citations

  • Method, system and device for converting voice into lip shape and storage medium

    CN111370020A

  • Expression synthesis method and device based on phoneme driving and computer storage medium

    CN111508064A