Video synthesis method and apparatus, storage medium, and electronic device

By pre-training phoneme prediction models and texture image rendering networks, combined with phoneme and mouth shape parameters, synthetic videos are generated, which solves the problems of time-consuming, labor-intensive and poor realism in video synthesis in the existing technology, and achieves efficient and applicable video synthesis. Effect.

WO2024174414A1PCT designated stage expired Publication Date: 2024-08-29NETEASE (HANGZHOU) NETWORK CO LTD

Patent Information

Application Number
PCT/CN2023/099205
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-21
Filing Date
2023-06-08
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Existing video synthesis technology is time-consuming and labor-intensive, has poor realism, affects user experience, and has weak generalization capabilities, making it difficult to apply to different anchors.

Method used

The phoneme sequence is directly obtained through the pre-trained phoneme prediction model, combined with the relationship between phonemes and mouth shape parameters of the target anchor, to generate a synthetic video, avoiding the correspondence between text and phonemes, and using texture images and rendering networks to improve the realism of the mouth area.

Benefits of technology

It improves the efficiency and realism of video synthesis, is suitable for different anchors, reduces the consumption of computing resources, and improves the visual effect of synthesized videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023099205_29082024_PF_FP_ABST
    Figure CN2023099205_29082024_PF_FP_ABST
Patent Text Reader

Abstract

A video synthesis method, comprising: acquiring text to be processed, and converting said text into an audio file (S201); inputting the audio file into a pre-trained phoneme prediction model for phoneme extraction to obtain a phoneme sequence corresponding to the audio file (S202); converting, according to correspondences between phonemes and mouth shape parameters of a target anchor, the phoneme sequence into a target mouth shape parameter sequence corresponding to the target anchor (S203); and processing a mouth shape region in an original video of the target anchor according to the target mouth shape parameter sequence to obtain a synthesized video about the target anchor (S204). The video synthesis efficiency and the authenticity of the display effect of a synthesized video are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Video synthesis method, device, storage medium and electronic device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This disclosure claims priority to Chinese patent application number 202310183219.9, filed on February 21, 2023, entitled “Video Synthesis Method, Device, Storage Medium and Electronic Device,” and the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present disclosure relates to the field of computer technology, and in particular to a video synthesis method, a video synthesis device, a computer storage medium, and an electronic device. Background Art

[0004] With the development of artificial intelligence technology, synthetic anchors can solve the time-consuming and labor-intensive problems of traditional audio and video production, and are therefore widely used in news or short video production.

[0005] In related technologies, the video synthesis method provided usually converts text into audio text first, and determines the lip shape at each moment based on the audio text to obtain a lip shape sequence. Finally, lip shape images are generated based on the lip shape sequence and combined into the final video.

[0006] However, the video synthesis process provided in the related art usually takes a lot of time and has a complex production process. In addition, the realism of the synthesized video is poor and it is easy to have problems such as mistakes, which affects the user's visual experience.

[0007] Summary of the Invention

[0008] The present disclosure provides a video synthesis method, a video synthesis device, a computer-readable storage medium, and an electronic device, thereby improving the efficiency of video synthesis and the realism of the display effect of the synthesized video at least to a certain extent.

[0009] According to one aspect of the present disclosure, a video synthesis method is provided, comprising:

[0010] Obtain the text to be processed and convert it into an audio file;

[0011] Input the audio file into the pre-trained phoneme prediction model to extract phonemes and obtain a phoneme sequence corresponding to the audio file. The phoneme sequence includes the phonemes contained in the audio file and the time point information of the phonemes in the audio file;

[0012] According to the correspondence between the phonemes and lip parameters of the target anchor, the phoneme sequence is converted into a target lip parameter sequence corresponding to the target anchor;

[0013] According to the target lip shape parameter sequence, the lip shape area in the original video of the target anchor is processed to obtain a synthetic video of the target anchor.

[0014] According to one aspect of the present disclosure, there is provided a video synthesis apparatus, comprising:

[0015] An acquisition module is configured to acquire the text to be processed and convert the text to be processed into an audio file;

[0016] an extraction module configured to input the audio file into a pre-trained phoneme prediction model to perform phoneme extraction, thereby obtaining a phoneme sequence corresponding to the audio file, wherein the phoneme sequence includes the phonemes contained in the audio file and information about the time points of the phonemes in the audio file;

[0017] a conversion module configured to convert the phoneme sequence into a target lip-shape parameter sequence corresponding to the target host based on the correspondence between the phonemes and lip-shape parameters of the target host;

[0018] The processing module is configured to process the lip shape area in the original video of the target anchor according to the target lip shape parameter sequence to obtain a synthetic video of the target anchor.

[0019] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the video synthesis method of the first aspect is implemented.

[0020] According to one aspect of the present disclosure, there is provided an electronic device, including:

[0021] processor; and

[0022] a memory for storing executable instructions for the processor;

[0023] The processor is configured to perform the video synthesis method of the first aspect by executing executable instructions.

[0024] The video synthesis method, device, storage medium and electronic device provided by the embodiments of the present disclosure, on the one hand, do not need to rely on the correspondence between text and phonemes, and can directly obtain the phoneme sequence through a pre-trained phoneme prediction model, which can improve the efficiency of obtaining the phoneme sequence and save related computing resources; on the other hand, because the phoneme prediction model determines the time point information of the phoneme in the audio file, rather than the duration information of each phoneme broadcast by different hosts, the phoneme prediction model can be widely applied to different hosts, and the phoneme prediction model has strong generalization ability; on the other hand, according to the correspondence between the phonemes and lip shape parameters of the target host, the lip shape parameter sequence corresponding to the target host can be determined to obtain a synthesized video of the target host, so that the synthesized video is more consistent with the lip shape characteristics of the target host when speaking, and the visual effect of the synthesized video is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification, serve to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and those skilled in the art can derive other drawings based on these drawings without inventive effort.

[0026] FIG1 shows a schematic architecture diagram of a video synthesis system according to one exemplary embodiment of the present disclosure;

[0027] FIG2 shows a flow chart of a video synthesis method according to one exemplary embodiment of the present disclosure;

[0028] FIG3 shows a process of another video synthesis method according to one exemplary embodiment of the present disclosure;

[0029] FIG4 shows a block diagram of a video synthesis device according to one exemplary embodiment of the present disclosure;

[0030] FIG5 is a schematic structural diagram of an electronic device according to one exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] The exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete and the concepts of the exemplary embodiments will be fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or that other methods, components, devices, steps, etc. may be employed. In other cases, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0032] In addition, the accompanying drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. Identical reference numerals in the figures denote identical or similar parts, and thus repetitive descriptions thereof will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0033] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all steps. For example, some steps may be decomposed, while some steps may be combined or partially combined, so the actual execution order may change according to actual circumstances.

[0034] Related technologies offer solutions for generating synthetic videos using a live streamer's original video. Determining lip-sync sequences from audio text typically relies on the correspondence between phonemes and text. The textual information in the audio text must first be extracted, and the phoneme sequence contained in the audio text is determined based on the correspondence between phonemes and text. This correspondence also includes the duration of the phonemes associated with the text when the live streamer reads it, and is only applicable to specific live streamers. This results in a complex audio-to-lip-sync conversion process with poor generalization capabilities.

[0035] At the same time, in the process of generating lip images based on lip shapes, relevant technologies can provide three methods. The first is to obtain a three-dimensional face model through three-dimensional reconstruction, and then drive the lip shape of the three-dimensional face model to change through animation drive, and render the lip shape to obtain a lip image to form a synthetic video; however, this method usually requires expensive three-dimensional model acquisition equipment, the production process is complicated and the cycle is long, and the realism of the final rendering result is limited by the equipment accuracy and the production process level of the staff.

[0036] The second method is to pre-create a lip dataset, then search for the most similar lip image in the dataset based on the lip shape. Using this retrieved lip image, the lip area is fused with the rest of the facial area to produce the rendered result. However, this method requires significant manpower and time to create the lip dataset, and during the retrieval process, if the most similar lip image does not exist in the lip dataset, video synthesis may fail.

[0037] The third method uses deep learning to train a conversion network between lip shape and lip image, so that the real image can be obtained after the lip shape is input into the conversion network. However, this process lacks the guidance of three-dimensional facial information and cannot show the subtle changes in the host's lip shape when speaking, resulting in poor realism of the generated image display effect, which is easy to be exposed and affects the user's viewing experience.

[0038] In view of the above problems, the exemplary embodiments of the present disclosure provide a video synthesis method for video synthesis services. Application scenarios of this video synthesis method include, but are not limited to: in the process of synthesizing a news video of a target anchor, obtaining the text to be processed and converting the text to be processed into an audio file; inputting the audio file into a pre-trained phoneme prediction model to extract phonemes and obtain a phoneme sequence corresponding to the audio file; based on the correspondence between the phonemes and lip parameters of the target anchor, converting the phoneme sequence into a target lip parameter sequence; based on the target lip parameter sequence, processing the lip area in the original video of the target anchor to obtain a synthesized video of the target anchor. Among them, the phoneme sequence includes the phonemes contained in the audio file and the time point information of the phonemes in the audio file; since there is no need to rely on the correspondence between text and phonemes, the phoneme sequence can be directly obtained through a pre-trained phoneme prediction model, which can improve the efficiency of obtaining the phoneme sequence; since the phoneme prediction model determines the time point information of the phonemes in the audio file, rather than the duration information of each phoneme broadcast by different hosts, the phoneme prediction model can be widely applied to different hosts, and the phoneme prediction model has strong generalization ability; further, based on the correspondence between the phonemes and lip shape parameters of the target host, the lip shape parameter sequence corresponding to the target host can be determined to obtain a synthetic video of the target host, so that the synthetic video is more in line with the lip shape characteristics of the target host when speaking, and the visual effect of the synthetic video is improved.

[0039] In order to implement the above-mentioned business processing method, an exemplary embodiment of the present disclosure provides a video synthesis system. FIG1 shows a schematic architecture diagram of the business processing system. As shown in FIG1 , the business processing system 100 may include a server 110 and a terminal device 120. The server 110 may be a backend server deployed by a video synthesis service provider. The terminal device 120 may be a terminal device used by a user who needs to synthesize a video. More specifically, the terminal device may be a smartphone, a personal computer, a tablet computer, etc. The server 110 and the terminal device 120 may establish a connection via a network to achieve video synthesis.

[0040] It should be noted that the video synthesis solution provided by the embodiment of the present disclosure can be applied to a terminal device or a server; wherein, when the video synthesis solution provided by the embodiment of the present disclosure is applied to a server, the terminal device 110 can send a video synthesis request to the server 120, and the video synthesis request can include the text to be processed and the original video of the target anchor. After receiving the video synthesis request, the server 120 can parse the video synthesis request, obtain the text to be processed and the original video of the target anchor, and obtain a synthesized video about the target anchor according to the solution provided in the embodiment of the present disclosure, and send the synthesized video to the terminal device 110.

[0041] FIG2 is a flow chart of a video synthesis method according to an exemplary embodiment. The embodiment of the present disclosure takes the video synthesis method applied to a terminal device as an example to illustrate the video synthesis method. As shown in FIG2 , the method includes the following steps:

[0042] Step S201: obtaining a text to be processed and converting the text to be processed into an audio file;

[0043] Step S202: Input the audio file into a pre-trained phoneme prediction model to extract phonemes and obtain a phoneme sequence corresponding to the audio file;

[0044] The phoneme sequence includes the phonemes contained in the audio file and the time point information of the phonemes in the audio file;

[0045] Step S203: converting the phoneme sequence into a target lip-shape parameter sequence corresponding to the target host according to the correspondence between the phonemes and lip-shape parameters of the target host;

[0046] Step S204: Process the lip shape area in the original video of the target host according to the target lip shape parameter sequence to obtain a synthesized video of the target host.

[0047] In summary, the video synthesis method provided by the embodiments of the present disclosure, on the one hand, does not need to rely on the correspondence between text and phonemes, and can directly obtain the phoneme sequence through a pre-trained phoneme prediction model, which can improve the efficiency of obtaining the phoneme sequence; on the other hand, since the phoneme prediction model determines the time point information of the phoneme in the audio file, rather than the duration information of each phoneme broadcast by different hosts, the phoneme prediction model can be widely applied to different hosts, and the phoneme prediction model has strong generalization ability; on the other hand, according to the correspondence between the phonemes and lip parameters of the target host, the lip parameter sequence corresponding to the target host can be determined to obtain a synthesized video of the target host, so that the synthesized video is more in line with the lip characteristics of the target host when speaking, and the visual effect of the synthesized video is improved.

[0048] Each step in FIG2 is described in detail below.

[0049] In step S201, the terminal device can obtain the text to be processed and convert the text to be processed into an audio file.

[0050] In the embodiments of the present disclosure, the text to be processed is the text of the text information in the synthetic video to be obtained, such as the text information in a weather forecast video.

[0051] In an optional implementation manner, the process by which the terminal device obtains the text to be processed and converts the text to be processed into an audio file may include: the terminal device responds to a video synthesis instruction, obtains the text to be processed, and converts the text to be processed into an audio file, where the process of converting the text to be processed into an audio file may be implemented based on a text-to-audio (Text To Speech, TTS) conversion system.

[0052] It should be noted that, in the embodiments of the present disclosure, the text to be processed is pre-stored in the terminal device, and the video synthesis instruction is an input operation for detecting the text address of the text to be processed in the video processing software after the terminal device runs the video processing software. It can be understood that after the terminal device obtains the text address of the text to be processed, it can obtain the text to be processed according to the storage location corresponding to the text address in the terminal device.

[0053] In step S202, the terminal device can input the audio file into a pre-trained phoneme prediction model for phoneme extraction to obtain a phoneme sequence corresponding to the audio file;

[0054] In the embodiments of the present disclosure, the phoneme prediction model is used to determine the phonemes in the audio file and the time points of the phonemes in the audio file; it can be understood that the phoneme sequence includes the phonemes contained in the audio file and the time point information of the phonemes in the audio file.

[0055] It should be noted that, in the embodiments of the present disclosure, a phoneme refers to the smallest speech unit divided according to the natural attributes of speech. It is divided according to the pronunciation actions in a syllable, and one pronunciation action constitutes one phoneme. Phonemes include two types: vowels and consonants. For Chinese characters, the syllable corresponding to the Chinese character "oh" is "o", and this Chinese character corresponds to one phoneme. For another example, the syllable corresponding to the Chinese character "you" is "ni", and this Chinese character corresponds to two phonemes. Optionally, in the embodiments of the present disclosure, ten phonemes may be used, including "a", "o", "e", "g", "zh", "i", "q", "f", "w", and "b", and any combination of these ten phonemes can represent the pronunciation of words.

[0056] In an optional embodiment, the terminal device inputs the audio file into a pre-trained phoneme prediction model to extract phonemes and obtain a phoneme sequence corresponding to the audio file; for example, the phoneme sequence obtained by the terminal device can be in, is the phoneme at time t1 in the audio file, is the phoneme at time t2 in the audio file, and t in the audio file n The phoneme of the moment.

[0057] In step S203, the terminal device may convert the phoneme sequence into a target lip parameter sequence corresponding to the target host according to the correspondence between the phonemes and lip parameters of the target host.

[0058] In the embodiment of the present disclosure, a correspondence between the phonemes and lip shape parameters of each host can be pre-established for each host. The lip shape parameters are used to characterize the three-dimensional lip shape features. For example, the lip shape parameters can be 3DMM (3D Morphable Face Model, 3D face deformation statistical model) lip shape parameters; the target host is the host that needs to appear in the final synthesized video.

[0059] In an optional embodiment, the process of converting a phoneme sequence into a target lip shape parameter sequence corresponding to the target host according to the correspondence between the phonemes and lip shape parameters of the target host may include: obtaining the correspondence between the phonemes and lip shape parameters of the target host, searching for the target lip shape parameters corresponding to the phonemes at each time point in the phoneme sequence in the correspondence between the phonemes and lip shape parameters, and arranging multiple target lip shape parameters in the order of the time points to obtain a target lip shape parameter sequence corresponding to the target host. The target lip shape parameters are used to characterize the three-dimensional lip shape features of the target host; for example, the target lip shape parameter sequence obtained by the terminal device may be in, Indicates the target anchor's lip parameters at time t1. represents the target anchor's lip parameters at time t2, and Indicates t n The target anchor's lip parameters at that moment.

[0060] In an optional embodiment, the terminal device may obtain the correspondence between the phonemes and lip shape parameters of the target host based on the target identity of the input host, and the process may include: in response to the obtained target identity information of the target host, searching for the correspondence between the phonemes and lip shape parameters corresponding to the target identity information in the correspondence information database between phonemes and lip shape parameters to obtain the correspondence between the phonemes and lip shape parameters of the target host.

[0061] In an optional embodiment, the video synthesis instruction may include a target identity identifier of the target anchor, and the process of the terminal device obtaining the correspondence between the phonemes and lip shape parameters of the target anchor may include: based on the target identity identifier obtained by parsing the video synthesis instruction, searching for the correspondence between the phonemes and lip shape parameters corresponding to the target identity information in the correspondence information database between phonemes and lip shape parameters to obtain the correspondence between the phonemes and lip shape parameters of the target anchor.

[0062] In step S204, the terminal device may process the lip shape area in the original video of the target host according to the target lip shape parameter sequence to obtain a synthesized video of the target host.

[0063] In the embodiment of the present disclosure, the target lip parameter sequence is used to characterize the lip parameters of the target host at each time point in the video to be synthesized. The lip area in the original video of the target host is processed based on the lip parameters of the target host to obtain a synthesized video of the target host.

[0064] In an optional embodiment, as shown in FIG3 , the terminal device processes the lip shape area in the original video of the target host according to the target lip shape parameter sequence to obtain a synthesized video of the target host, which may include:

[0065] Step S301, for each original video frame in the original video, determining the face shape parameters and head posture parameters in the original video frame according to the face region in the original video frame;

[0066] In the embodiment of the present disclosure, the face shape parameters are used to characterize the three-dimensional face shape features, and the head posture parameters are used to characterize the three-dimensional head posture features.

[0067] In an optional embodiment, the facial shape parameters may be 3DMM facial shape parameters, and the head posture parameters may be 3DMM head posture parameters. The process of the terminal device determining the facial shape parameters and head posture parameters in the original video frame based on the facial region in the original video frame may include: using 3DMM technology to fit the face in the original image for three-dimensional reconstruction, thereby obtaining the facial shape parameters and head posture parameters of the portrait in the original image.

[0068] Step S302, obtaining target lip parameters at each time point in the target lip parameter sequence, and determining a target three-dimensional face model corresponding to each time point based on the target lip parameters and face shape parameters corresponding to each time point;

[0069] In the embodiment of the present disclosure, the facial shape parameters corresponding to each time point are the facial shape parameters in the original video frame corresponding to each time point; the target three-dimensional face model corresponding to each time point is the three-dimensional face model of the target face in the video frame to be synthesized corresponding to each time point.

[0070] In an optional embodiment, the process of the terminal device determining the target three-dimensional face model corresponding to each time point based on the target lip parameters and face shape parameters corresponding to each time point may include: performing face reconstruction based on the target lip parameters and face shape parameters corresponding to each time point to obtain the target three-dimensional face model corresponding to each time point. Optionally, the face reconstruction process can be implemented based on 3DMM technology.

[0071] Step S303, determining a rendering position map corresponding to each time point based on the head posture parameters corresponding to each time point and the target three-dimensional face model;

[0072] In the embodiment of the present disclosure, the rendering position map corresponding to each time point includes position information of the mouth area in the to-be-synthesized video frame corresponding to the time point; optionally, the position information may be UV coordinates.

[0073] In an optional embodiment, the process of determining the rendering position map corresponding to each time point by the terminal device based on the head posture parameters corresponding to each time point and the target three-dimensional facial model may include: projecting the target three-dimensional facial model corresponding to each time point into a two-dimensional image based on the head posture parameters corresponding to each time point, thereby obtaining the rendering position map corresponding to each time point. Optionally, the projection process is implemented based on a mask of a portion of the facial area, where the portion of the facial area includes the mouth area, and a rendering position map including the mouth area can be obtained to reduce the amount of data processing in the process of generating the synthesized video.

[0074] Step S304: Determine a composite video frame corresponding to each time point based on the rendering position map and the target video frame corresponding to each time point, and obtain a composite video of the target anchor.

[0075] In the disclosed embodiment, the target video frame corresponding to each time point is the video frame excluding the mouth region in the original video frame corresponding to that time point. A target 3D face model can be reconstructed based on the facial shape parameters and target lip shape parameters in the original video frame, and the mouth region to be rendered can be determined based on the reconstructed target 3D face model to render a composite video frame. The mouth region of the face in the composite video frame can then be rendered based on the 3D information, improving the naturalness and realism of the mouth region in the composite video frame, thereby enhancing the visual experience of the user when viewing the composite video.

[0076] In an optional embodiment, the terminal device determines the synthetic video frame corresponding to each time point based on the rendering position map and target video frame corresponding to each time point. The process of obtaining the synthetic video about the target anchor may include: inputting the rendering position map corresponding to each time point into a pre-trained texture image for texture sampling to obtain a rendering color map; inputting the rendering color information map into a pre-trained rendering network for lip rendering to obtain a target lip shape map; inputting the target lip shape map and the target video frame into a pre-trained fusion network for video frame fusion to obtain a synthetic video frame corresponding to each time point.

[0077] The rendered color map includes color and feature information about the mouth region in the video frame to be synthesized at each time point. Based on the texture image, rendering network, and fusion network, the rendered position map can be processed to generate a synthesized video frame corresponding to each time point. This eliminates the need for building a complex 3D model and reduces the complexity of obtaining the synthesized video frames. Furthermore, the rendered position map is determined based on 3D information, ensuring the authenticity of the mouth region in the synthesized video frames.

[0078] It should be noted that, in the embodiment of the present disclosure, the network structure of the rendering network and the fusion network can be determined based on actual needs, and the embodiment of the present disclosure does not limit this. For example, the rendering network can be a Unet network, the fusion network can also be a Unet network, and the size of the texture image can be a 1024×1024×16 image. The 16-channel image can carry more information to improve the realism of the determined target lip shape.

[0079] In an optional embodiment, the texture image, rendering network and fusion network are trained in the following manner, including: for each original video frame in the original video, determining the face shape parameters, head posture parameters and original lip parameters in the original video frame based on the face area in the original video frame; determining the sample three-dimensional face model associated with each original video frame based on the original lip parameters and face shape parameters associated with each original video frame; determining the sample rendering position map associated with each original video frame based on the head posture parameters and sample three-dimensional face model associated with each original video frame; iteratively training the texture image, rendering network and fusion network based on each original video frame and the sample rendering position map associated with each original video frame to obtain the trained texture image, rendering network and fusion network.

[0080] The sample rendering position map includes the position information of the mouth area in the original video frame.

[0081] The texture image, rendering network and fusion network can be trained based on the original video frames of the target anchor, so that the rendering network and fusion network can be more targeted when determining the synthetic video of the target anchor, so as to obtain a synthetic video that is more consistent with the anchor's facial features.

[0082] It should be noted that the process by which the terminal device determines the facial shape parameters, head posture parameters and original lip parameters in the original video frame based on the facial area in the original video frame is similar to the above-mentioned step S301; the process by which the terminal device determines the sample three-dimensional face model associated with each original video frame based on the original lip parameters and facial shape parameters associated with each original video frame is similar to the above-mentioned step S302; the process by which the terminal device determines the sample rendering position map associated with each original video frame based on the head posture parameters and sample three-dimensional face model associated with each original video frame is similar to the above-mentioned step S303, which will not be elaborated on in the present embodiment.

[0083] In an optional embodiment, the terminal device iteratively trains the rendering network according to each original video frame and the sample rendering position map associated with each original video frame, including: inputting the sample rendering position map associated with each original video frame into the texture image to be trained for texture sampling to obtain a sample rendering color map; inputting the sample rendering color information map into the rendering network to be trained for lip rendering to obtain a predicted lip shape map associated with each original video frame; adjusting the image parameters of the texture image to be trained and the model parameters of the rendering network to be trained according to the predicted lip shape map and the lip shape map in the original video frame to obtain a trained rendering network.

[0084] Texture images and rendering networks can be pre-trained to improve the efficiency of determining target lip images during video synthesis.

[0085] In an optional embodiment, the terminal device may iteratively train the fusion network based on each original video frame and the sample rendering position map associated with each original video frame, and the process may include: inputting the predicted lip shape map associated with each original video frame and the sample target video frame into the fusion network to be trained for video frame fusion to obtain a sample synthetic video frame, wherein the sample target video frame is the video frame excluding the mouth area in the original video frame; further, adjusting the model parameters of the fusion network to be trained based on the sample synthetic video frame and the original video frame to obtain a trained fusion network.

[0086] The fusion network can be pre-trained to improve the efficiency of determining the target synthesized video frame during the video synthesis process.

[0087] In an optional embodiment, before processing the lip shape area in the original video of the target host according to the target lip shape parameter sequence to obtain a synthesized video of the target host, the terminal device may also: determine the target lip shape parameters of the target time points between the adjacent time points according to the target lip shape parameters of the adjacent time points in the target lip shape parameter sequence; add the target lip shape parameters of the target time points to the target lip shape parameter sequence to obtain an updated target lip shape parameter sequence; then the terminal device processes the lip shape area in the original video of the target host according to the target lip shape parameter sequence to obtain a synthesized video of the target host, which may include: processing the lip shape area in the original video of the target host according to the updated target lip shape parameter sequence to obtain a synthesized video of the target host. The target lip shape parameter sequence may be smoothed to make the transition of the mouth area in the synthesized video frames in the obtained synthesized video more natural, further improving the visual effect of the user when watching the synthesized video.

[0088] The process of determining the target lip shape parameters of the target time points between adjacent time points based on the target lip shape parameters of the adjacent time points in the target lip shape parameter sequence by the terminal device may include: inputting the target lip shape parameters of the adjacent time points in the target lip shape parameter sequence into a preset formula to obtain the target lip shape parameters of the target time points between adjacent time points. The preset formula (1) may be:

[0089] In the above formula (1), e t is the target lip parameter at the target time point, is the target lip parameter of the next time point adjacent to the target time point, is the lip shape parameter of the next time point adjacent to the target time point; t is the target time point, t i+1 is the next time point adjacent to the target time point, and t i is the previous time point adjacent to the target time point.

[0090] In an optional implementation, after obtaining the composite video of the target anchor, the composite video can be post-processed such as color adjustment, background replacement, logo or subtitle embedding based on actual needs to meet video publishing requirements.

[0091] The present disclosure provides a video synthesis device. As shown in FIG4 , the video synthesis device 400 may include:

[0092] The acquisition module 401 is configured to acquire the text to be processed and convert the text to be processed into an audio file;

[0093] Extraction module 402 is configured to input the audio file into a pre-trained phoneme prediction model to perform phoneme extraction, thereby obtaining a phoneme sequence corresponding to the audio file, where the phoneme sequence includes the phonemes contained in the audio file and information about the time points of the phonemes in the audio file;

[0094] The conversion module 403 is configured to convert the phoneme sequence into a target lip-shape parameter sequence corresponding to the target host according to the correspondence between the phonemes and lip-shape parameters of the target host;

[0095] The processing module 404 is configured to process the lip shape area in the original video of the target anchor according to the target lip shape parameter sequence to obtain a synthesized video of the target anchor.

[0096] On the one hand, the above-mentioned video synthesis device does not need to rely on the correspondence between text and phonemes. Through the pre-trained phoneme prediction model, the phoneme sequence can be directly obtained, which can improve the efficiency of obtaining the phoneme sequence and save related computing resources; on the other hand, since the phoneme prediction model determines the time point information of the phoneme in the audio file, rather than the duration information of each phoneme broadcast by different hosts, the phoneme prediction model can be widely applied to different hosts, and the phoneme prediction model has strong generalization ability; on the other hand, according to the correspondence between the phonemes and lip shape parameters of the target host, the lip shape parameter sequence corresponding to the target host can be determined to obtain a synthesized video of the target host, so that the synthesized video is more in line with the lip shape characteristics of the target host when speaking, and the visual effect of the synthesized video is improved.

[0097] Optionally, the processing module 404 is configured to:

[0098] For each original video frame in the original video, determining a face shape parameter and a head posture parameter in the original video frame according to a face region in the original video frame;

[0099] Obtaining target lip parameters at each time point in the target lip parameter sequence, and determining a target three-dimensional face model corresponding to each time point based on the target lip parameters and face shape parameters corresponding to each time point;

[0100] Determining a rendering position map corresponding to each time point based on the head posture parameters corresponding to each time point and the target three-dimensional face model, wherein the rendering position map corresponding to each time point includes position information of a mouth region in the to-be-synthesized video frame corresponding to the time point;

[0101] According to the rendering position map and target video frame corresponding to each time point, the synthetic video frame corresponding to each time point is determined to obtain a synthetic video of the target anchor. The target video frame corresponding to each time point is the video frame excluding the mouth area in the original video frame corresponding to the time point.

[0102] By making the target video frame corresponding to each time point the video frame excluding the mouth area in the original video frame corresponding to the time point, the target three-dimensional face model can be reconstructed based on the face shape parameters and target mouth shape parameters in the original video frame, and the mouth area to be rendered can be determined according to the reconstructed target three-dimensional face model to render a synthetic video frame; the mouth area of ​​the face in the synthetic video frame can be rendered based on the three-dimensional information, thereby improving the naturalness and realism of the mouth area in the synthetic video frame, and improving the visual effect of the user when watching the synthetic video.

[0103] Optionally, the processing module 404 is configured to:

[0104] Input the rendering position map corresponding to each time point into the pre-trained texture image for texture sampling to obtain a rendering color map, which includes color information and feature information of the mouth area in the video frame to be synthesized corresponding to the time point;

[0105] Input the rendered color information map into the pre-trained rendering network for lip rendering to obtain the target lip map;

[0106] The target lip shape map and target video frame are input into the pre-trained fusion network for video frame fusion to obtain the synthetic video frame corresponding to each time point.

[0107] The above-mentioned video synthesis device can process the rendering position map based on the texture image, rendering network and fusion network to obtain the synthetic video frame corresponding to each time point. There is no need to establish a complex three-dimensional model, which can reduce the complexity of obtaining the synthetic video frame. At the same time, the rendering position map is determined based on the three-dimensional information, which can ensure the authenticity of the mouth area in the obtained synthetic video frame.

[0108] Optionally, as shown in FIG4 , the video synthesis apparatus 400 further includes a model training module 405 configured to:

[0109] For each original video frame in the original video, determining the face shape parameters, head posture parameters and original lip shape parameters in the original video frame according to the face region in the original video frame;

[0110] Determining a sample three-dimensional face model associated with each original video frame based on original lip shape parameters and face shape parameters associated with each original video frame;

[0111] Determining a sample rendering position map associated with each original video frame based on the head posture parameters associated with each original video frame and the sample three-dimensional face model, wherein the sample rendering position map includes position information of a mouth region in the original video frame;

[0112] According to each original video frame and a sample rendering position map associated with each original video frame, the texture image, the rendering network and the fusion network are iteratively trained to obtain the trained rendering network and the fusion network.

[0113] Through the above-mentioned video synthesis device, the texture image, rendering network and fusion network can be trained according to the original video frames of the target anchor, so that the rendering network and fusion network are more targeted when determining the synthetic video of the target anchor, so as to obtain a synthetic video that is more in line with the anchor's facial features.

[0114] Optionally, the model training module 405 is configured to:

[0115] Input the sample rendering position map associated with each original video frame into the texture image to be trained for texture sampling to obtain a sample rendering color map;

[0116] Input the sample rendering color information map into the rendering network to be trained for lip rendering, and obtain the predicted lip map associated with each original video frame;

[0117] According to the predicted lip shape map and the lip shape map in the original video frame, the image parameters of the texture image to be trained and the model parameters of the rendering network to be trained are adjusted to obtain a trained rendering network.

[0118] Through the above-mentioned video synthesis device, texture images and rendering networks can be pre-trained to improve the efficiency of determining the target lip image during the video synthesis process.

[0119] Optionally, the model training module 405 is configured to:

[0120] The predicted lip shape graph and the sample target video frame associated with each original video frame are input into the fusion network to be trained for video frame fusion to obtain a sample synthesized video frame, where the sample target video frame is the video frame excluding the mouth area in the original video frame;

[0121] According to the sample synthesized video frames and the original video frames, the model parameters of the fusion network to be trained are adjusted to obtain a trained fusion network.

[0122] Through the above-mentioned video synthesis device, the fusion network can be pre-trained to improve the efficiency of determining the target synthesized video frame during the video synthesis process.

[0123] Optionally, as shown in FIG4 , the video synthesis apparatus 400 further includes a smoothing module 406 configured to:

[0124] Determining target lip parameters for target time points between adjacent time points based on the target lip parameters for adjacent time points in the target lip parameter sequence;

[0125] Add the target lip shape parameters at the target time point to the target lip shape parameter sequence to obtain an updated target lip shape parameter sequence;

[0126] The processing module 404 is configured to:

[0127] According to the updated target lip shape parameter sequence, the lip shape area in the original video of the target anchor is processed to obtain a synthetic video of the target anchor.

[0128] Through the above-mentioned video synthesis device, the target lip parameter sequence can be smoothed so that the transition of the mouth area in the synthesized video frames in the obtained synthesized video is more natural, further improving the visual effect of the user when watching the synthesized video.

[0129] The exemplary embodiments of the present disclosure further provide a computer-readable storage medium, which may be implemented in the form of a program product, including program code. When the program product is executed on an electronic device, the program code is used to cause the electronic device to execute the steps according to various exemplary embodiments of the present disclosure described in the "Exemplary Methods" section above, for example:

[0130] Obtain the text to be processed and convert it into an audio file; input the audio file into a pre-trained phoneme prediction model to extract phonemes, and obtain a phoneme sequence corresponding to the audio file, where the phoneme sequence includes the phonemes contained in the audio file and the time point information of the phonemes in the audio file; according to the correspondence between the phonemes and lip shape parameters of the target host, convert the phoneme sequence into a target lip shape parameter sequence corresponding to the target host; according to the target lip shape parameter sequence, process the lip shape area in the original video of the target host to obtain a synthetic video of the target host.

[0131] The above-mentioned video synthesis method, on the one hand, does not need to rely on the correspondence between text and phonemes. Through the pre-trained phoneme prediction model, the phoneme sequence can be directly obtained, which can improve the efficiency of obtaining the phoneme sequence and save related computing resources; on the other hand, since the phoneme prediction model determines the time point information of the phoneme in the audio file, rather than the duration information of each phoneme broadcast by different hosts, the phoneme prediction model can be widely applied to different hosts, and the phoneme prediction model has strong generalization ability; on the other hand, according to the correspondence between the phonemes and lip parameters of the target host, the lip parameter sequence corresponding to the target host can be determined to obtain a synthesized video of the target host, so that the synthesized video is more in line with the lip characteristics of the target host when speaking, and the visual effect of the synthesized video is improved.

[0132] In an optional embodiment of the present disclosure, for each original video frame in the original video, the facial shape parameters and head posture parameters in the original video frame are determined based on the facial area in the original video frame; the target lip parameters of each time point are obtained in the target lip parameter sequence, and the target three-dimensional face model corresponding to each time point is determined based on the target lip parameters and facial shape parameters corresponding to each time point; the rendering position map corresponding to each time point is determined based on the head posture parameters and the target three-dimensional face model corresponding to each time point, and the rendering position map corresponding to each time point includes position information of the mouth area in the video frame to be synthesized corresponding to the time point; based on the rendering position map and the target video frame corresponding to each time point, the synthesized video frame corresponding to each time point is determined to obtain a synthesized video about the target anchor, and the target video frame corresponding to each time point is the video frame excluding the mouth area in the original video frame corresponding to the time point.

[0133] By making the target video frame corresponding to each time point the video frame excluding the mouth area in the original video frame corresponding to the time point, the target three-dimensional face model can be reconstructed based on the face shape parameters and target mouth shape parameters in the original video frame, and the mouth area to be rendered can be determined according to the reconstructed target three-dimensional face model to render a synthetic video frame; the mouth area of ​​the face in the synthetic video frame can be rendered based on the three-dimensional information, thereby improving the naturalness and realism of the mouth area in the synthetic video frame, and improving the visual effect of the user when watching the synthetic video.

[0134] In an optional embodiment of the present disclosure, a rendering position map corresponding to each time point is input into a pre-trained texture image for texture sampling to obtain a rendering color map, which includes color information and feature information of the mouth area in the video frame to be synthesized corresponding to the time point; the rendering color information map is input into a pre-trained rendering network for lip shape rendering to obtain a target lip shape map; the target lip shape map and the target video frame are input into a pre-trained fusion network for video frame fusion to obtain a synthesized video frame corresponding to each time point.

[0135] Through the above method, the rendering position map can be processed based on the texture image, rendering network and fusion network to obtain the synthetic video frame corresponding to each time point. There is no need to establish a complex three-dimensional model, which can reduce the complexity of obtaining the synthetic video frame. At the same time, the rendering position map is determined based on the three-dimensional information, which can ensure the authenticity of the mouth area in the obtained synthetic video frame.

[0136] In an optional embodiment of the present disclosure, for each original video frame in the original video, the face shape parameters, head posture parameters and original lip parameters in the original video frame are determined based on the face area in the original video frame; the sample three-dimensional face model associated with each original video frame is determined based on the original lip parameters and face shape parameters associated with each original video frame; the sample rendering position map associated with each original video frame is determined based on the head posture parameters and the sample three-dimensional face model associated with each original video frame, the sample rendering position map includes position information of the mouth area in the original video frame; based on each original video frame and the sample rendering position map associated with each original video frame, the texture image, the rendering network and the fusion network are iteratively trained to obtain the trained rendering network and the fusion network.

[0137] Through the above method, the texture image, rendering network and fusion network can be trained according to the original video frames of the target anchor, so that the rendering network and fusion network are more targeted when determining the synthetic video of the target anchor, so as to obtain a synthetic video that is more consistent with the anchor's facial features.

[0138] In an optional embodiment of the present disclosure, a sample rendering position map associated with each original video frame is input into a texture image to be trained for texture sampling to obtain a sample rendering color map; the sample rendering color information map is input into a rendering network to be trained for lip rendering to obtain a predicted lip shape map associated with each original video frame; and based on the predicted lip shape map and the lip shape map in the original video frame, image parameters of the texture image to be trained and model parameters of the rendering network to be trained are adjusted to obtain a trained texture image and rendering network.

[0139] In this way, the texture image and rendering network can be pre-trained to improve the efficiency of determining the target lip shape image during the video synthesis process.

[0140] In an optional embodiment of the present disclosure, the predicted lip shape map associated with each original video frame and the sample target video frame are input into the fusion network to be trained for video frame fusion to obtain a sample synthetic video frame, where the sample target video frame is the video frame excluding the mouth area in the original video frame; based on the sample synthetic video frame and the original video frame, the model parameters of the fusion network to be trained are adjusted to obtain a trained fusion network.

[0141] Through the above method, the fusion network can be pre-trained to improve the efficiency of determining the target synthesized video frame during the video synthesis process.

[0142] In an optional embodiment of the present disclosure, target lip shape parameters of target time points between adjacent time points are determined based on target lip shape parameters of adjacent time points in a target lip shape parameter sequence; the target lip shape parameters of the target time points are added to the target lip shape parameter sequence to obtain an updated target lip shape parameter sequence; wherein, according to the target lip shape parameter sequence, the step of processing the lip shape area in the original video of the target anchor to obtain a composite video about the target anchor includes: according to the updated target lip shape parameter sequence, processing the lip shape area in the original video of the target anchor to obtain a composite video about the target anchor.

[0143] In this way, the target lip parameter sequence can be smoothed so that the transition of the mouth area in the synthesized video frames in the obtained synthesized video is more natural, further improving the visual effect of the user when watching the synthesized video.

[0144] In one embodiment, the program product can be implemented as a portable compact disc read-only memory (CD-ROM) and includes program code, and can be run on an electronic device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0145] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0146] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0147] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.

[0148] The program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, and the like, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a standalone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0149] The exemplary embodiments of the present disclosure further provide an electronic device, which may be a terminal device or a server. The electronic device is described below with reference to FIG5 . It should be understood that the electronic device 500 shown in FIG5 is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.

[0150] As shown in Figure 5, electronic device 500 is implemented as a general-purpose computing device. Components of electronic device 500 may include, but are not limited to, at least one processing unit 510, at least one storage unit 520, and a bus 530 connecting various system components (including storage unit 520 and processing unit 510).

[0151] The storage unit stores program code, which can be executed by the processing unit 510, so that the processing unit 510 performs the steps described in the "Exemplary Method" section above according to various exemplary embodiments of the present disclosure. For example, the processing unit 510 can perform the following method steps:

[0152] Obtain the text to be processed and convert it into an audio file; input the audio file into a pre-trained phoneme prediction model to extract phonemes, and obtain a phoneme sequence corresponding to the audio file, where the phoneme sequence includes the phonemes contained in the audio file and the time point information of the phonemes in the audio file; according to the correspondence between the phonemes and lip shape parameters of the target host, convert the phoneme sequence into a target lip shape parameter sequence corresponding to the target host; according to the target lip shape parameter sequence, process the lip shape area in the original video of the target host to obtain a synthetic video of the target host.

[0153] The above-mentioned video synthesis method, on the one hand, does not need to rely on the correspondence between text and phonemes. Through the pre-trained phoneme prediction model, the phoneme sequence can be directly obtained, which can improve the efficiency of obtaining the phoneme sequence and save related computing resources; on the other hand, since the phoneme prediction model determines the time point information of the phoneme in the audio file, rather than the duration information of each phoneme broadcast by different hosts, the phoneme prediction model can be widely applied to different hosts, and the phoneme prediction model has strong generalization ability; on the other hand, according to the correspondence between the phonemes and lip parameters of the target host, the lip parameter sequence corresponding to the target host can be determined to obtain a synthesized video of the target host, so that the synthesized video is more in line with the lip characteristics of the target host when speaking, and the visual effect of the synthesized video is improved.

[0154] In an optional embodiment of the present disclosure, for each original video frame in the original video, the facial shape parameters and head posture parameters in the original video frame are determined based on the facial area in the original video frame; the target lip parameters of each time point are obtained in the target lip parameter sequence, and the target three-dimensional face model corresponding to each time point is determined based on the target lip parameters and facial shape parameters corresponding to each time point; the rendering position map corresponding to each time point is determined based on the head posture parameters and the target three-dimensional face model corresponding to each time point, and the rendering position map corresponding to each time point includes position information of the mouth area in the video frame to be synthesized corresponding to the time point; based on the rendering position map and the target video frame corresponding to each time point, the synthesized video frame corresponding to each time point is determined to obtain a synthesized video about the target anchor, and the target video frame corresponding to each time point is the video frame excluding the mouth area in the original video frame corresponding to the time point.

[0155] By making the target video frame corresponding to each time point the video frame excluding the mouth area in the original video frame corresponding to the time point, the target three-dimensional face model can be reconstructed based on the face shape parameters and target mouth shape parameters in the original video frame, and the mouth area to be rendered can be determined according to the reconstructed target three-dimensional face model to render a synthetic video frame; the mouth area of ​​the face in the synthetic video frame can be rendered based on the three-dimensional information, thereby improving the naturalness and realism of the mouth area in the synthetic video frame, and improving the visual effect of the user when watching the synthetic video.

[0156] In an optional embodiment of the present disclosure, a rendering position map corresponding to each time point is input into a pre-trained texture image for texture sampling to obtain a rendering color map, which includes color information and feature information of the mouth area in the video frame to be synthesized corresponding to the time point; the rendering color information map is input into a pre-trained rendering network for lip shape rendering to obtain a target lip shape map; the target lip shape map and the target video frame are input into a pre-trained fusion network for video frame fusion to obtain a synthesized video frame corresponding to each time point.

[0157] Through the above method, the rendering position map can be processed based on the texture image, rendering network and fusion network to obtain the synthetic video frame corresponding to each time point. There is no need to establish a complex three-dimensional model, which can reduce the complexity of obtaining the synthetic video frame. At the same time, the rendering position map is determined based on the three-dimensional information, which can ensure the authenticity of the mouth area in the obtained synthetic video frame.

[0158] In an optional embodiment of the present disclosure, for each original video frame in the original video, the face shape parameters, head posture parameters and original lip parameters in the original video frame are determined based on the face area in the original video frame; the sample three-dimensional face model associated with each original video frame is determined based on the original lip parameters and face shape parameters associated with each original video frame; the sample rendering position map associated with each original video frame is determined based on the head posture parameters and the sample three-dimensional face model associated with each original video frame, the sample rendering position map includes position information of the mouth area in the original video frame; based on each original video frame and the sample rendering position map associated with each original video frame, the texture image, the rendering network and the fusion network are iteratively trained to obtain the trained rendering network and the fusion network.

[0159] Through the above method, the texture image, rendering network and fusion network can be trained according to the original video frames of the target anchor, so that the rendering network and fusion network are more targeted when determining the synthetic video of the target anchor, so as to obtain a synthetic video that is more consistent with the anchor's facial features.

[0160] In an optional embodiment of the present disclosure, a sample rendering position map associated with each original video frame is input into a texture image to be trained for texture sampling to obtain a sample rendering color map; the sample rendering color information map is input into a rendering network to be trained for lip rendering to obtain a predicted lip shape map associated with each original video frame; and based on the predicted lip shape map and the lip shape map in the original video frame, image parameters of the texture image to be trained and model parameters of the rendering network to be trained are adjusted to obtain a trained texture image and rendering network.

[0161] In this way, the texture image and rendering network can be pre-trained to improve the efficiency of determining the target lip shape image during the video synthesis process.

[0162] In an optional embodiment of the present disclosure, the predicted lip shape map associated with each original video frame and the sample target video frame are input into the fusion network to be trained for video frame fusion to obtain a sample synthetic video frame, where the sample target video frame is the video frame excluding the mouth area in the original video frame; based on the sample synthetic video frame and the original video frame, the model parameters of the fusion network to be trained are adjusted to obtain a trained fusion network.

[0163] Through the above method, the fusion network can be pre-trained to improve the efficiency of determining the target synthesized video frame during the video synthesis process.

[0164] In an optional embodiment of the present disclosure, target lip shape parameters of target time points between adjacent time points are determined based on target lip shape parameters of adjacent time points in a target lip shape parameter sequence; the target lip shape parameters of the target time points are added to the target lip shape parameter sequence to obtain an updated target lip shape parameter sequence; wherein, according to the target lip shape parameter sequence, the step of processing the lip shape area in the original video of the target anchor to obtain a composite video about the target anchor includes: according to the updated target lip shape parameter sequence, processing the lip shape area in the original video of the target anchor to obtain a composite video about the target anchor.

[0165] In this way, the target lip parameter sequence can be smoothed so that the transition of the mouth area in the synthesized video frames in the obtained synthesized video is more natural, further improving the visual effect of the user when watching the synthesized video.

[0166] The storage unit 520 may include a volatile storage unit, such as a random access memory unit (RAM) 521 and / or a cache memory unit 522 , and may further include a read-only memory unit (ROM) 523 .

[0167] The storage unit 520 may also include a program / utility 524 having a set (at least one) of program modules 525, such program modules 525 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0168] The bus 530 may include a data bus, an address bus, and a control bus.

[0169] The electronic device 500 can also communicate with one or more external devices 600 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.). Such communication can be performed via an input / output (I / O) interface 540. The electronic device 500 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 550. As shown, the network adapter 550 communicates with other modules of the electronic device 500 via a bus 530. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, Redundant Arrays of Independent Disks (RAID) systems, tape drives, and data backup storage systems.

[0170] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.

[0171] It will be appreciated by those skilled in the art that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented as the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which may be collectively referred to herein as a "circuit", "module" or "system". Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to encompass any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and implementation are intended to be exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.

[0172] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A video synthesis method, comprising: Acquire the text to be processed, and convert the text to be processed into an audio file; Input the audio file into a pre-trained phoneme prediction model to extract phonemes, and obtain a phoneme sequence corresponding to the audio file, wherein the phoneme sequence includes the phonemes contained in the audio file and the time point information of the phonemes in the audio file; According to the correspondence between the phonemes and the lip shape parameters of the target anchor, the phoneme sequence is converted into a target lip shape parameter sequence corresponding to the target anchor; According to the target lip shape parameter sequence, the lip shape area in the original video of the target anchor is processed to obtain a synthetic video about the target anchor.

2. The video synthesis method according to claim 1, wherein: The step of processing the lip shape area in the original video of the target anchor according to the target lip shape parameter sequence to obtain a synthetic video of the target anchor includes: For each original video frame in the original video, determining a face shape parameter and a head posture parameter in the original video frame according to a face region in the original video frame; Acquire the target lip shape parameters at each time point in the target lip shape parameter sequence, and determine the target three-dimensional face model corresponding to each time point according to the target lip shape parameters and the face shape parameters corresponding to each time point; Determine, according to the head posture parameter corresponding to each time point and the target three-dimensional face model, a rendering position map corresponding to each time point, wherein the rendering position map corresponding to each time point includes position information of a mouth area in a to-be-synthesized video frame corresponding to the time point; According to the rendering position map and the target video frame corresponding to each time point, the synthetic video frame corresponding to each time point is determined to obtain a synthetic video about the target anchor. The target video frame corresponding to each time point is the video frame excluding the mouth area in the original video frame corresponding to the time point.

3. The video synthesis method according to claim 2, wherein: The step of determining a synthetic video frame corresponding to each time point according to the rendering position map corresponding to each time point and the target video frame comprises: Inputting the rendering position map corresponding to each time point into a pre-trained texture image for texture sampling to obtain a rendering color map, wherein the rendering color map includes color information and feature information of a mouth area in a to-be-synthesized video frame corresponding to the time point; Inputting the rendered color information graph into a pre-trained rendering network to perform lip shape rendering to obtain a target lip shape graph; The target lip shape graph and the target video frame are input into a pre-trained fusion network for video frame fusion to obtain a synthetic video frame corresponding to each time point.

4. The video synthesis method according to claim 3, wherein: The texture image, the rendering network and the fusion network are trained in the following manner, including: For each original video frame in the original video, determining a face shape parameter, a head posture parameter, and an original lip shape parameter in the original video frame according to a face region in the original video frame; Determine a sample three-dimensional face model associated with each original video frame according to the original lip shape parameters and the face shape parameters associated with each original video frame; Determine, according to the head posture parameter associated with each original video frame and the sample three-dimensional face model, a sample rendering position map associated with each original video frame, wherein the sample rendering position map includes position information of a mouth area in the original video frame; According to each original video frame and the sample rendering position map associated with each original video frame, the texture image, the rendering network and the fusion network are iteratively trained to obtain the trained rendering network and the fusion network.

5. The video synthesis method according to claim 4, wherein: According to each original video frame and the sample rendering position map associated with each original video frame, iteratively training the texture image and rendering network includes: Inputting the sample rendering position map associated with each original video frame into the texture image to be trained for texture sampling to obtain a sample rendering color map; Inputting the sample rendering color information map into the rendering network to be trained to perform lip rendering, and obtaining a predicted lip map associated with each original video frame; According to the predicted lip shape map and the lip shape map in the original video frame, the image parameters of the texture image to be trained and the model parameters of the rendering network to be trained are adjusted to obtain the trained texture image and rendering network.

6. The video synthesis method according to claim 5, wherein: According to each original video frame and the sample rendering position map associated with each original video frame, iteratively training the fusion network includes: Inputting the predicted lip shape graph and the sample target video frame associated with each original video frame into the fusion network to be trained to perform video frame fusion to obtain a sample synthesized video frame, wherein the sample target video frame is a video frame excluding the mouth area in the original video frame; According to the sample synthesized video frame and the original video frame, the model parameters of the fusion network to be trained are adjusted to obtain the trained fusion network.

7. The video synthesis method according to claim 1, wherein: Before processing the lip shape area in the original video of the target anchor according to the target lip shape parameter sequence to obtain a synthesized video about the target anchor, the video synthesis method further includes: Determine the target lip shape parameters of the target time points between the adjacent time points according to the target lip shape parameters of the adjacent time points in the target lip shape parameter sequence; Adding the target lip shape parameters at the target time point to the target lip shape parameter sequence to obtain an updated target lip shape parameter sequence; The step of processing the lip shape area in the original video of the target anchor according to the target lip shape parameter sequence to obtain a synthetic video of the target anchor includes: According to the updated target lip shape parameter sequence, the lip shape area in the original video of the target anchor is processed to obtain a synthetic video about the target anchor.

8. A video synthesis device, comprising: An acquisition module is configured to acquire the text to be processed and convert the text to be processed into an audio file; An extraction module is configured to input the audio file into a pre-trained phoneme prediction model to extract phonemes, and obtain a phoneme sequence corresponding to the audio file, wherein the phoneme sequence includes the phonemes contained in the audio file and time point information of the phonemes in the audio file; A conversion module is configured to convert the phoneme sequence into a target lip parameter sequence corresponding to the target host according to the correspondence between the phonemes and lip parameters of the target host; The processing module is configured to process the lip shape area in the original video of the target anchor according to the target lip shape parameter sequence to obtain a synthetic video about the target anchor.

9. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the video synthesis method according to any one of claims 1 to 7.

10. An electronic device, comprising: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the video synthesis method according to any one of claims 1 to 7 by executing the executable instructions.

Citation Information

Patent Citations

  • Video synthesis method, device and equipment and storage medium

    CN111741326A

  • Virtual anchor generation method and device, electronic equipment and storage medium

    CN113096242A

  • Audio recognition method based on acoustic model and language model

    CN114171000A

  • Video synthesis method and device, storage medium and electronic equipment

    CN116193052A

  • Visual speech recognition by phoneme prediction

    US20210110831A1

Cited By

  • Multi-task real-time matting method and system in digital population type synthesis

    CN118735935A

  • A multi-task real-time cutout method and system for digital population synthesis

    CN118735935B

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

    CN121531206A

  • Digital human driving method and device, storage medium and electronic equipment

    CN122176130A