Training method and device of digital human generation model and computing equipment cluster
By detecting the matching degree of phonemes and mouth shapes in the digital human generation model, and obtaining real-person videos that do not match phonemes for targeted training, the problem of low training efficiency in the existing technology is solved, and a more efficient training of the digital human generation model is achieved.
Patent Information
- Application Number
- CN202310573175.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-02-14
- Filing Date
- 2023-05-19
- Publication Date
- 2024-08-23
AI Technical Summary
Existing digital human generation model training requires a large amount of real-person speaking videos as training data, resulting in low training efficiency, and the matching effect depends on the selection of training data.
By detecting the matching degree of phonemes and mouth shapes in digital human speaking videos, real-person speaking videos of unmatched phonemes are obtained for targeted training, and machine learning models are used to achieve matching detection of mouth shapes and phonemes, optimizing the selection and use of training data.
It improves the training efficiency of the digital human generation model, reduces the amount of training data required, ensures that all phonemes perform well, and saves training time.
Smart Images

Figure CN118540424A
Abstract
Description
[0001] This disclosure claims priority to Chinese patent application No. 202310112920.1 filed on February 14, 2023, with invention name “Training method, apparatus and computing device cluster for digital human generation model”, the entire contents of which are incorporated by reference into this disclosure. Technical Field
[0002] The present disclosure relates to the technical field of machine learning, and in particular to a training method, apparatus and computing device cluster for generating a digital human model. Background Art
[0003] With the development of machine learning, digital humans have begun to appear in people’s daily lives. Digital humans are digital human images. Common digital humans include digital human customer service in banks, digital human salesmen in e-commerce, digital human celebrities in live broadcast platforms, and so on.
[0004] The digital human is generated by the digital human generation model. The audio clip and the real person image are input into the digital human generation model. The digital human generation model adjusts the real person's mouth shape in the real person image based on the audio clip to output the digital human speaking image corresponding to the real person image. The input audio clip is the words expected to be spoken by the digital human, and the output digital human speaking image is the image of the digital human when speaking. Then, the audio clip and the digital human speaking image are combined into a video to obtain a digital human who can speak.
[0005] If you want to make the mouth shape and voice of the digital human in the video match well, you need to use a large number of real-person speaking videos as training data to train the digital human generation model. The quality of the matching effect depends largely on the training data. Therefore, how to select training data to train the digital human generation model has become an urgent problem to be solved. Summary of the invention
[0006] The present disclosure provides a training method, apparatus and computing device cluster for a digital human generation model, which can improve the training efficiency of the digital human generation model. The technical solution is as follows:
[0007] In a first aspect, a training method for a digital human generation model is provided, the training method being applied to a cloud platform, the training method comprising: inputting audio and a real person image into the digital human generation model, obtaining a digital human speaking image corresponding to the real person image. In the audio, determining a phoneme that does not match the digital human mouth shape in the digital human speaking image. Obtaining a real person speaking video containing the phoneme. Based on the real person speaking video, training the digital human generation model.
[0008] In the solution provided by the present disclosure, the digital human generation model is tested to determine which phonemes the digital human generation model performs poorly on, and then, real-person speech videos containing these phonemes are obtained as training data to perform targeted training on the digital human generation model. In this way, the digital human generation model can be trained to have good performance on all phonemes with as little training data as possible, which can effectively improve the training efficiency.
[0009] In a possible implementation, a machine learning model may be used to detect whether the mouth shape and the phoneme match. Accordingly, the processing may be as follows:
[0010] The audio and the digital human speaking image are input into the lip matching detection model to obtain the phonemes in the audio that do not match the digital human mouth shape in the digital human speaking image.
[0011] In the solution provided by the present disclosure, the lip shape matching detection model is a machine learning model. The machine learning model is used to detect whether the lip shape and phoneme match, which is more efficient.
[0012] In a possible implementation, the process of using the lip shape matching detection model to detect whether the lip shape and the phoneme match can be as follows:
[0013] The audio and the digital person speaking image are synthesized into a digital person speaking video. The digital person speaking video is divided into a plurality of video clips. For each video clip, the video clip is input into a lip matching detection model to obtain lip matching degree indication information corresponding to the video clip. If the lip matching degree indication information corresponding to the video clip indicates that the lip shape of the digital person in the video clip does not match the audio in the video clip, the phonemes contained in the audio in the video clip are obtained.
[0014] In the solution provided by the present disclosure, the lip shape matching degree indication information can be 0 or 1. Wherein, when the lip shape matching degree indication information is 0, it means that the digital mouth shape in the video clip does not match the audio in the video clip, and when the lip shape matching degree indication information is 1, it means that the digital mouth shape in the video clip matches the audio in the video clip.
[0015] In a possible implementation, the lip shape matching degree indication information may be a score. Accordingly, if the lip shape matching degree indication information corresponding to the video clip indicates that the digital mouth shape in the video clip does not match the audio in the video clip, obtaining the phonemes included in the audio in the video clip includes:
[0016] If the score corresponding to the video segment is less than the threshold, the phonemes contained in the audio in the video segment are obtained.
[0017] In the solution provided by the present disclosure, the mouth shape matching degree indication information can be a score, and the value range can be from 1 to 100. The larger the score, the better the matching effect between the digital human mouth shape in the video segment and the audio in the video segment.
[0018] In a possible implementation manner, before inputting the audio and the real human image into the digital human generation model, the method further includes:
[0019] Training the digital human generation model based on the real human speaking video containing all phonemes.
[0020] In the solution provided by the present disclosure, before testing the digital human generation model, it can be preliminarily trained first. During the preliminary training, the real human speaking video containing all phonemes can be used. In this way, the sample data used in the subsequent targeted training can be less, and the training time can be less. All the phonemes here can refer to all the phonemes of a certain language, or all the phonemes of multiple languages. Exemplarily, all the phonemes here can refer to all the phonemes of Chinese, or all the phonemes of English, or all the phonemes of Chinese and English.
[0021] In a possible implementation manner, when testing the digital human generation model, the audio used can contain all phonemes.
[0022] In the solution provided by the present disclosure, the audio used when testing the digital human generation model can contain all phonemes. In this way, it can more accurately test which phonemes the digital human generation model has poor effects on and avoid omission as much as possible. All the phonemes here can refer to all the phonemes of a certain language, or all the phonemes of multiple languages.
[0023] In a possible implementation manner, the process of obtaining the real human speaking video containing the above phonemes can be as follows:
[0024] Generating a text containing the above phonemes, and obtaining the real human speaking video when the real human reads the text.
[0025] In the solution provided by the present disclosure, taking Chinese as an example, the text containing the target phonemes refers to the text containing the characters composed of the target phonemes. For example, assuming the target phoneme is p, then the text needs to contain at least one Chinese character whose composed phonemes include p, such as Chinese characters like "怕 (pà)", "普 (pǔ)", "票 (piào)", etc.
[0026] In a second aspect, a training device for a digital human generation model is provided. The device includes:
[0027] A generation module, configured to input the audio and the real human image into the digital human generation model to obtain the digital human speaking image corresponding to the real human image;
[0028] A determination module, used to determine, in the audio, phonemes that do not match the digital human mouth type in the digital human speaking image;
[0029] An acquisition module, used for acquiring a real person speaking video containing the phonemes;
[0030] The training module is used to train the digital human generation model based on the real person speaking video.
[0031] In a possible implementation manner, the determining module is used to:
[0032] The audio and the digital human speaking image are input into a lip matching detection model to obtain phonemes in the audio that do not match the lip shape of the digital human in the digital human speaking image.
[0033] In a possible implementation manner, the determining module is used to:
[0034] Combining the audio and the digital human speaking image into a digital human speaking video;
[0035] Dividing the digital human speaking video into multiple video clips;
[0036] For each video clip, input the video clip into a lip matching detection model to obtain lip matching degree indication information corresponding to the video clip;
[0037] If the lip shape matching degree indication information corresponding to the video clip indicates that the digitized mouth shape in the video clip does not match the audio in the video clip, then the phonemes included in the audio in the video clip are obtained.
[0038] In a possible implementation, the lip shape matching degree indication information is a score, and the acquisition module is used to:
[0039] If the score corresponding to the video segment is less than the threshold, the phonemes included in the audio in the video segment are obtained.
[0040] In a possible implementation, the training module is further used to:
[0041] The digital human generation model is trained based on a real person speaking video containing all phonemes.
[0042] In a possible implementation manner, the audio includes all phonemes.
[0043] In a possible implementation, the acquisition module is used to:
[0044] generating text containing the phonemes;
[0045] Get a real person speaking video when the real person reads the text.
[0046] In a third aspect, the present disclosure provides a computing device cluster, which includes at least one computing device, each computing device including a processor and a memory; the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the training method for generating a digital human model as provided in the first aspect or any one of the examples in the first aspect.
[0047] In a fourth aspect, the present disclosure provides a computer-readable storage medium, which includes computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the training method for generating a digital human model as provided in the first aspect or any one of the examples in the first aspect.
[0048] In a fifth aspect, the present disclosure provides a computer program product comprising instructions, which, when executed by a computing device cluster, enables the computing device cluster to execute a training method for generating a digital human model as provided in the first aspect or any one of the examples in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 is a schematic diagram of a digital human generation model provided by an embodiment of the present disclosure;
[0050] Figure 2 is a flow chart of a training method for a digital human generation model provided by an embodiment of the present disclosure;
[0051] Figure 3 It is a structural schematic diagram of a training device for generating a digital human model provided by an embodiment of the present disclosure;
[0052] Figure 4 is a schematic diagram of the structure of a computing device provided by an embodiment of the present disclosure;
[0053] Figure 5 is a schematic diagram of a computing device cluster provided by an embodiment of the present disclosure;
[0054] Figure 6 It is a schematic diagram of a computing device cluster provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0055] In order to facilitate the understanding of the embodiments of the present disclosure, some terms involved in the embodiments of the present disclosure are explained below:
[0056] Digital Human: A digital human is a digital character image created using digital technology and resembling a human. Digital humans are usually generated using a digital human generation model, which is a deep learning model that can adjust the lip movements of a real person in a real person's image based on the input audio after receiving the input audio and the real person's image, and output the digital human's speaking image corresponding to the real person's image. Furthermore, by synthesizing the audio and the digital human's speaking image, a digital human speaking video is obtained. Among them, the input audio to the digital human generation model is what the digital human is expected to say, and the digital human speaking image output by the digital human generation model is the image of the digital human when speaking.
[0057] As Figure 1 shown, in the input of the digital human generation model, each audio segment corresponds to a real person's image. The real person's image can be a sequence of real person pictures. An audio segment and the corresponding real person's image form a set of input data, and each set of input data can obtain the corresponding digital human speaking image.
[0058] Phoneme: A phoneme is the smallest speech unit divided according to the natural attributes of speech. Analyzing based on the pronunciation actions in a syllable, one action constitutes one phoneme.
[0059] In Chinese, there are a total of 32 Chinese phonemes, as shown in Table 1 below:
[0060] Table 1
[0061]
[0062] Exemplarily, the Chinese character "话" (word) includes 3 phonemes: h, u, a.
[0063] In English, there are a total of 48 English phonemes, as shown in Table 2 below:
[0064] Table 2
[0065]
[0066] Exemplarily, the English word "dentist" includes 7 phonemes: / d / , / e / , / n / , / t / , / I / , / s / , / t / .
[0067] The embodiments of the present disclosure provide a training method for a digital human generation model, which can be implemented by a computing device. This training method can achieve the training of digital human generation models for various digital humans, for example, digital human customer service, digital human salespersons, digital human stars, etc.
[0068] In this training method, the digital human generation model is tested to determine which phonemes the digital human generation model performs poorly on, and then real-person speaking videos containing these phonemes are obtained as training data to perform targeted training on the digital human generation model.
[0069] The training method for generating a digital human model provided by the embodiment of the present disclosure is described below in conjunction with the accompanying drawings. Figure 2 , the training method may include the following steps:
[0070] Step 201: Based on a first real person speaking video, an initial digital human generation model is trained to obtain a first digital human generation model.
[0071] In the embodiment of the present disclosure, a preliminary training may be performed first for the initial digital human generation model. The preliminary training is described below.
[0072] S2011. The computing device obtains a first real person speaking video.
[0073] Among them, in the first real-person speaking video, a scene of a real person speaking is displayed, and the real-person speaking scene may include the real person's complete face, or may include the real person's complete face and upper body, or may include the real person's complete face and whole body.
[0074] There are many methods for a computer device to obtain the first real person speaking video. For example, the computing device can obtain the first real person speaking video from public video resources on the Internet. For another example, the computing device can receive the first real person speaking video sent by a terminal.
[0075] When receiving the first real-person speaking video sent by the terminal, the user can select the person to record the video according to the requirements of the digital human image, and use a camera device to record the video of the person speaking according to the specified text to obtain the first real-person speaking video, and send the first real-person speaking video to the computing device.
[0076] S2012: The computing device extracts the first audio from the first real-person speaking video, and divides the first audio into N consecutive audio segments.
[0077] Wherein, N is a positive integer, and the duration of each audio segment can be configured according to actual needs. For example, the duration of each audio segment can be 10 seconds (s).
[0078] S2013: The computing device divides the first real-person speaking video into frames to obtain N real-person speaking images.
[0079] The computing device divides the first real person speaking video into frames according to the specified frame rate to obtain n video frames, each of which is a real person speaking picture.
[0080] Then, N real-person speaking images are obtained based on n video frames. For example, if the frame rate is 25 frames per second and each audio segment is 10 seconds, then starting from the first video frame, a real-person speaking image sequence consisting of 250 consecutive video frames is used as a real-person speaking image corresponding to one audio segment. There is no overlap between real-person speaking image sequences corresponding to different audio segments.
[0081] S2014, obtaining N real-person images, combining N audio clips and N real-person images into N groups of input samples, and combining N real-person speaking images as N groups of output samples.
[0082] Obtain N preset real-person picture sequences (also called real-person images), each real-person picture sequence and each real-person speaking picture sequence include the same number of pictures. The real-person picture is the image of the desired digital human, and the person shown in the real-person picture is the same person as the person shown in the real-person speaking picture. In addition, the real-person pictures in the N real-person picture sequences can be the same or different. The real-person mouth shape in the real-person picture can be adjusted through the digital human generation model. The N real-person picture sequences and the N audio clips are used to form N groups of input samples, and the N real-person speaking picture sequences are used as N groups of output samples.
[0083] Each real-person speaking picture has a corresponding display start time and display end time in the first real-person speaking video. Thus, for a sequence of real-person speaking pictures, the earliest display start time of the video frames in the sequence of real-person speaking pictures is used as the display start time of the sequence of real-person speaking pictures, and the latest display end time of the video frames in the sequence of real-person speaking pictures is used as the display end time of the sequence of real-person speaking pictures. Each audio clip has a corresponding playback start time and playback end time in the target audio. For each group of input samples, in each output sample, the output sample whose display start time is the same as the playback start time of the audio clip in the group of input samples, and whose display end time is the same as the playback end time of the audio clip in the group of input samples, is used as the output sample corresponding to the group of input samples.
[0084] S2015. Based on N groups of input samples and N groups of output samples, train an initial digital human generation model.
[0085] Input N groups of input samples into the initial digital human generation model in the order of the start time of the audio clip from early to late. For each group of input samples, the digital human generation model outputs the corresponding sequence of predicted digital human speech pictures. Input the output samples corresponding to the group of input samples and the corresponding sequence of predicted digital human speech pictures into the loss function, calculate the loss value, and adjust the weights in the initial digital human generation model based on the loss value. When the training end condition is met, obtain the digital human generation model. The training end condition can be that the loss value tends to be stable.
[0086] In a possible implementation, the first real person speaking video may include all phonemes, so that less sample data is used in subsequent targeted training and the training takes less time. All phonemes here may refer to all phonemes of a certain language, or all phonemes of multiple languages. Exemplarily, all phonemes here may refer to all phonemes of Chinese, or all phonemes of English, or all phonemes of Chinese and English.
[0087] Step 202: Input the second audio and the real person image into the digital human generation model to obtain a digital human speaking image corresponding to the real person image.
[0088] In the embodiments of the present disclosure, the digital human generation model obtained through preliminary training may be further tested.
[0089] When performing the test, the computing device obtains a second audio, and the second audio has different audio content from the first audio.
[0090] The following is an explanation of obtaining the second audio: the computing device may first obtain a second real person speaking video, and then extract the second audio from the second real person speaking video. The second audio is divided into M consecutive audio segments, where M is a positive integer. The duration of each audio segment obtained here is the same as the duration of the audio segment obtained in the above step S2012.
[0091] The computing device obtains M preset real-person images. The M real-person images are M real-person picture sequences, and each of the M real-person picture sequences includes the same number of real-person pictures as each real-person picture sequence in the above step S2014. Moreover, the M real-person images here and the N real-person images in the above step S2014 show the same person.
[0092] The computing device forms a set of test data with each audio clip and a real person image. The audio clips in each set of test data are sequentially input into the digital human generation model in the order of the start time of playing from earliest to latest. For each set of test data, the digital human generation model outputs the corresponding digital human speaking image. The digital human speaking image corresponding to each set of test data is a digital human speaking picture sequence, and the number of pictures included in the digital human speaking picture sequence and the input real person picture sequence is the same.
[0093] After obtaining the digital person speaking image, the computing device may use a video editing tool to synthesize the second audio and the digital person speaking image into a digital person speaking video at a specified frame rate.
[0094] In a possible implementation, the second real person speaking video may include all phonemes, so that the digital human generation model can be more accurately tested for which phonemes are not effective, and omissions can be avoided as much as possible. All phonemes here may refer to all phonemes of a certain language, or all phonemes of multiple languages.
[0095] Step 203: Determine, in the second audio, the target phonemes that do not match the digital human mouth shape in the corresponding digital human speaking image.
[0096] In an embodiment of the present disclosure, a computing device inputs a digital person speaking video into a lip matching detection model to obtain phonemes in the digital person speaking video that do not match the digital person's mouth shape. Specifically, the computing device may divide the digital person speaking video into M video clips, and for each video clip, input the video clip into a lip matching detection model to obtain lip matching degree indication information corresponding to the video clip. If the lip matching degree indication information corresponding to the video clip indicates that the digital person's mouth shape in the video clip does not match the audio in the video clip, then the audio in the video clip is extracted, and the extracted audio is input into a speech recognition model to obtain the target phonemes corresponding to the audio.
[0097] The above-mentioned lip shape matching degree indication information can be expressed in various forms. The embodiments of the present disclosure do not limit the specific forms. For ease of understanding, only two of them are shown below for illustration:
[0098] Expression form 1:
[0099] The lip shape matching degree indication information is 0 or 1. Wherein, when the lip shape matching degree indication information is 0, it means that the digital mouth shape in the video clip does not match the audio in the video clip, and when the lip shape matching degree indication information is 1, it means that the digital mouth shape in the video clip matches the audio in the video clip.
[0100] Expression form 2:
[0101] The mouth shape matching degree indication information is a score, and the value range is from 1 to 100. The larger the score, the better the matching effect between the digital human mouth shape in the video segment and the audio in the video segment.
[0102] In the case of manifestation form two, if the score corresponding to the video segment is less than the threshold, it is determined that the digital human mouth shape in the video segment does not match the audio in the video segment, and then the target phonemes included in the audio in the video segment are obtained. Among them, the threshold can be configured according to actual needs. Exemplarily, the threshold can be configured between 95 and 99.
[0103] Step 204, obtain the third real person speaking video containing the target phonemes.
[0104] In the embodiments of the present disclosure, after the computing device obtains the target phonemes, it generates a text containing the target phonemes.
[0105] Taking Chinese as an example, the text containing the target phonemes refers to the text that contains the characters composed of the target phonemes. Exemplarily, assuming that the target phonemes are p, t, s, then the text needs to contain at least one Chinese character composed of the phoneme p, such as at least one of the Chinese characters "pa", "pu", "piao", etc., and also needs to contain at least one Chinese character composed of the phoneme t, such as at least one of the Chinese characters "ta", "ta", "tu", etc., and also needs to contain at least one Chinese character composed of the phoneme s, such as at least one of the Chinese characters "si", "si", "si", etc.
[0106] In addition, in the generated text, the proportion of each target phoneme can be greater than the proportion of each other phoneme.
[0107] After generating the text, the computing device can send the text to the terminal. The user obtains the text through the terminal, finds the person who recorded the video, and then, through the camera device, records the video of this person speaking according to the text to obtain the third real person speaking video, and sends the third real person speaking video to the computing device. Here, the person who records the video can be the same person as the person shown in the above first real person speaking video and the second real person speaking video.
[0108] Step 205, train the digital human generation model based on the third real person speaking video.
[0109] In the embodiments of the present disclosure, the training process can be as follows:
[0110] S2051. The computing device extracts the third audio in the third real person speaking video and divides the third audio into H consecutive audio segments.
[0111] Where H is a positive integer.
[0112] S2052. The computing device frames the third real person speaking video to obtain H real person speaking images.
[0113] S2053, obtaining H real-person images, combining H audio clips and H real-person images into H groups of input samples, and combining H real-person speaking images as H groups of output samples.
[0114] S2054. Based on H groups of input samples and H groups of output samples, train a digital human generation model.
[0115] Here, the specific processing of steps S2051, S2052, S2053 and S2054 are respectively the same as or similar to the specific processing of the above-mentioned steps S2012, S2013, S2014 and S2015, and will not be repeated here.
[0116] After executing step 205, the process may proceed to step 202 until the target phoneme that does not match the digital population pattern can no longer be determined in the second audio. In addition, each time the process proceeds to step 202, the audio content of the second audio used may be different.
[0117] Through the training method of the digital human generation model provided by the present disclosure, it is possible to automatically detect which phonemes the digital human generation model has poor performance on, thereby obtaining targeted real-person speaking videos containing these phonemes for training and optimizing the digital human generation model. In this way, targeted training of the digital human generation model can effectively save training time and improve training efficiency.
[0118] Based on the same technical concept, the embodiment of the present disclosure also provides a training device for generating a digital human model, such as Figure 3 As shown, the device includes a generating module 310, a determining module 320, an acquiring module 330 and a training module 340, wherein:
[0119] A generation module 310 is used to input the audio and real person image into the digital human generation model to obtain a digital human speaking image corresponding to the real person image;
[0120] A determination module 320, configured to determine, in the audio, phonemes that do not match the digital human mouth shape in the digital human speaking image;
[0121] An acquisition module 330 is used to acquire a first real person speaking video containing the phoneme;
[0122] The training module 340 is used to train the digital human generation model based on the first real person speaking video.
[0123] In a possible implementation, the determining module 320 is configured to:
[0124] The audio and the digital human speaking image are input into a lip matching detection model to obtain phonemes in the audio that do not match the lip shape of the digital human in the digital human speaking image.
[0125] In a possible implementation, the determining module 320 is configured to:
[0126] Combining the audio and the digital human speaking image into a digital human speaking video;
[0127] Dividing the digital human speaking video into multiple video clips;
[0128] For each video clip, input the video clip into a lip matching detection model to obtain lip matching degree indication information corresponding to the video clip;
[0129] If the lip shape matching degree indication information corresponding to the video clip indicates that the digitized mouth shape in the video clip does not match the audio in the video clip, then the phonemes included in the audio in the video clip are obtained.
[0130] In a possible implementation, the lip shape matching degree indication information is a score, and the acquisition module 330 is used to:
[0131] If the score corresponding to the video segment is less than the threshold, the phonemes included in the audio in the video segment are obtained.
[0132] In a possible implementation, the training module 340 is further configured to:
[0133] The digital human generation model is trained based on a first real person speaking video containing all phonemes.
[0134] In a possible implementation manner, the audio includes all phonemes.
[0135] In a possible implementation, the acquisition module 330 is used to:
[0136] generating text containing the phonemes;
[0137] A first real person speaking video is obtained when a real person reads the text.
[0138] As an example of a software functional unit, a module may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, the determination module 320 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region (region) or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including a data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.
[0139] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0140] As an example of a hardware functional unit, the determination module 320 may include at least one computing device, such as a server, etc. Alternatively, the determination module 320 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0141] The multiple computing devices included in the determination module 320 may be distributed in the same region or in different regions. The multiple computing devices included in the determination module 320 may be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the determination module 320 may be distributed in the same VPC or in multiple VPCs. The multiple computing devices may be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0142] It should be noted that, in other embodiments, the determination module 320 can be used to execute any step in the training method for generating a digital human model, the generation module 310, the acquisition module 330 and the training module 340 can be used to execute any step in the training method for generating a digital human model, and the steps that the generation module 310, the determination module 320, the acquisition module 330 and the training module 340 are responsible for implementing can be specified as needed. By acquiring the generation module 310, the determination module 320, the acquisition module 330 and the training module 340, different steps in the training method for generating a digital human model can be respectively implemented to realize all the functions of the training device for generating a digital human model.
[0143] The training device for the digital human generation model provided by the embodiment of the present disclosure can automatically detect which phonemes the digital human generation model has poor effects on, so as to obtain real-person speaking videos containing these phonemes for training and optimize the digital human generation model. In this way, targeted training of the digital human generation model can effectively save training time and improve training efficiency.
[0144] The present disclosure also provides a computing device 100. Figure 4 As shown, the computing device 100 includes: a bus 102, a processor 104, a memory 106, and a communication interface 108. The processor 104, the memory 106, and the communication interface 108 communicate with each other through the bus 102. The computing device 100 can be a server or a terminal device. It should be understood that the present disclosure does not limit the number of processors and memories in the computing device 100.
[0145] The bus 102 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4The bus 102 is represented by only one line, but it does not mean that there is only one bus or one type of bus. The bus 102 may include a path for transmitting information between various components of the computing device 100 (eg, the memory 106, the processor 104, and the communication interface 108).
[0146] The processor 104 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0147] The memory 106 may include a volatile memory, such as a random access memory (RAM). The memory 106 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0148] The memory 106 stores executable program codes, and the memory 106 executes the executable program codes to respectively implement the functions of the aforementioned generation module 310, determination module 320, acquisition module 330, and training module 340, thereby implementing the training method for generating a digital human model. That is, the memory 106 stores instructions for executing the training method for generating a digital human model.
[0149] Alternatively, the memory 106 stores executable codes, and the processor 104 executes the executable codes to respectively implement the functions of the aforementioned training device for generating a digital human model, thereby implementing the training method for generating a digital human model. That is, the memory 106 stores instructions for executing the training method for generating a digital human model.
[0150] The communication interface 108 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 100 and other devices or a communication network.
[0151] The present disclosure also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device may be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device may also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0152] like Figure 5 As shown, the computing device cluster includes at least one computing device 100. The memory 106 in one or more computing devices 100 in the computing device cluster may store the same instructions for executing the training method for generating a digital human model.
[0153] In some possible implementations, the memory 106 of one or more computing devices 100 in the computing device cluster may also store partial instructions for executing the training method for generating a digital human model. In other words, the combination of one or more computing devices 100 may jointly execute instructions for executing the training method for generating a digital human model.
[0154] It should be noted that the memory 106 in different computing devices 100 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the training device for generating a digital human model. That is, the instructions stored in the memory 106 in different computing devices 100 can implement the functions of one or more modules among the generating module 310, the determining module 320, the acquiring module 330 and the training module 340.
[0155] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Figure 6 A possible implementation is shown. Figure 6 As shown, two computing devices 100A and 100B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 106 in the computing device 100A stores instructions for executing the functions of the determination module 320. At the same time, the memory 106 in the computing device 100B stores instructions for executing the functions of the generation module 310, the acquisition module 330, and the training module 340.
[0156] Figure 6 The connection method between the computing device clusters shown may be that considering that the training method for the digital human generation model provided by the present disclosure requires a large amount of computing resources, it is considered to hand over the functions implemented by the determination module 320 to the computing device 100A for execution.
[0157] It should be understood that Figure 6The functions of the computing device 100A shown in FIG. 1 may also be completed by multiple computing devices 100. Similarly, the functions of the computing device 100B may also be completed by multiple computing devices 100.
[0158] The present disclosure also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similar to that of Figure 5 and Figure 6 The connection mode of the computing device cluster is different in that the memory 106 in one or more computing devices 100 in the computing device cluster may store the same instructions for executing the training method for generating a digital human model.
[0159] In some possible implementations, the memory 106 of one or more computing devices 100 in the computing device cluster may also store partial instructions for executing the training method for generating a digital human model. In other words, the combination of one or more computing devices 100 may jointly execute instructions for executing the training method for generating a digital human model.
[0160] The present disclosure also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes a training method for generating a digital human model.
[0161] The present disclosure also provides a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be stored by a computing device or a data storage device such as a data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute a training method for generating a digital human model.
[0162] Those of ordinary skill in the art will appreciate that the various method steps and units described in the embodiments disclosed in this disclosure can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the steps and components of each embodiment have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.
[0163] The above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the protection scope of the technical solutions of the embodiments of the present disclosure.
[0164] It should be noted that the data (including but not limited to real-person images, real-person speaking videos, audio clips, etc. used for training) and signals (including but not limited to signals transmitted between terminals and computing devices, etc.) involved in this disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, real-person images, real-person speaking videos, audio clips, etc. involved in this disclosure are all obtained with full authorization.
Claims
1. A training method for generating a digital human model, characterized in that: The method is applied to a cloud platform, and the method comprises: Inputting the audio and real person image into the digital human generation model to obtain a digital human speaking image corresponding to the real person image; In the audio, determining phonemes that do not match the digital human mouth shape in the digital human speaking image; Obtaining a real person speaking video containing the phonemes; The digital human generation model is trained based on the real person speaking video.
2. The method according to claim 1, characterized in that The step of determining, in the audio, phonemes that do not match the digital human mouth shape in the digital human speaking image comprises: The audio and the digital human speaking image are input into a lip matching detection model to obtain phonemes in the audio that do not match the lip shape of the digital human in the digital human speaking image.
3. The method according to claim 2, characterized in that The step of inputting the audio and the digital human speaking image into a lip matching detection model to obtain phonemes in the audio that do not match the lip shape of the digital human in the digital human speaking image comprises: Combining the audio and the digital human speaking image into a digital human speaking video; Dividing the digital human speaking video into multiple video clips; For each video clip, input the video clip into a lip matching detection model to obtain lip matching degree indication information corresponding to the video clip; If the lip shape matching degree indication information corresponding to the video clip indicates that the digitized mouth shape in the video clip does not match the audio in the video clip, then the phonemes contained in the audio in the video clip are obtained.
4. The method according to claim 3, characterized in that The lip shape matching degree indication information is a score, and if the lip shape matching degree indication information corresponding to the video clip indicates that the digital mouth shape in the video clip does not match the audio in the video clip, obtaining the phonemes included in the audio in the video clip includes: If the score corresponding to the video segment is less than the threshold, the phonemes contained in the audio in the video segment are obtained.
5. The method according to any one of claims 1 to 4, characterized in that Before inputting the audio and real person image into the digital human generation model, the method further includes: The digital human generation model is trained based on a real person speaking video containing all phonemes.
6. The method according to any one of claims 1 to 5, characterized in that The audio contains all phonemes.
7. The method according to any one of claims 1 to 6, characterized in that The step of obtaining a real person speaking video containing the phonemes comprises: generating text containing the phonemes; Get a real person speaking video when the real person reads the text.
8. A training device for generating a digital human model, characterized in that: The device is applied to a cloud platform, and comprises: A generation module, used to input audio and real-person images into a digital human generation model to obtain a digital human speaking image corresponding to the real-person image; A determination module, used to determine, in the audio, phonemes that do not match the digital human mouth type in the digital human speaking image; An acquisition module, used for acquiring a real person speaking video containing the phonemes; The training module is used to train the digital human generation model based on the real person speaking video.
9. The device according to claim 8, characterized in that The determining module is used to: The audio and the digital human speaking image are input into a lip matching detection model to obtain phonemes in the audio that do not match the lip shape of the digital human in the digital human speaking image.
10. The device according to claim 8, characterized in that The determining module is used to: Combining the audio and the digital human speaking image into a digital human speaking video; Dividing the digital human speaking video into multiple video clips; For each video clip, input the video clip into a lip matching detection model to obtain lip matching degree indication information corresponding to the video clip; If the lip shape matching degree indication information corresponding to the video clip indicates that the digitized mouth shape in the video clip does not match the audio in the video clip, then the phonemes included in the audio in the video clip are obtained.
11. The device according to claim 10, characterized in that The lip shape matching degree indication information is a score, and the acquisition module is used to: If the score corresponding to the video segment is less than the threshold, the phonemes included in the audio in the video segment are obtained.
12. The device according to any one of claims 8 to 11, characterized in that The training module is also used for: The digital human generation model is trained based on a real person speaking video containing all phonemes.
13. The device according to any one of claims 8 to 12, characterized in that The audio contains all phonemes.
14. The device according to any one of claims 8 to 13, characterized in that The acquisition module is used to: generating text containing the phonemes; Get a real person speaking video when the real person reads the text.
15. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the training method for generating a digital human model as described in any one of claims 1 to 7.
16. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the training method for generating a digital human model as claimed in any one of claims 1 to 7.
17. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster executes the training method for generating a digital human model as described in any one of claims 1 to 7.
Citation Information
Patent Citations
A method and apparatus for generating an animation
CN109377539A
Digital human generation model, model training method and digital human generation method
CN114419702A
Real person head portrait cartoon video production method and device, equipment and storage medium
CN115474009A
Method and system for using virtual avatars associated with medical professionals during exercise sessions
US20210134426A1
