Digital human video generation method and system based on local key position enhancement
Through the digital human video generation method enhanced by local key position, the key point features and multimodal drive information are used to improve the local features and timing continuity of digital human videos, and the problem of insufficient fidelity of local features in the prior art is solved. , realizes high fidelity and high efficiency of digital human video generation.
Patent Information
- Application Number
- CN202410998132.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-24
AI Technical Summary
The existing digital life generation technology lacks fidelity in local features, resulting in the need to improve the consistency of expression and sequence continuity of the generated digital people, which increases the difficulty of development and the burden of manual modeling.
Using a method based on local key position enhancement, the two-stage adversarial training is carried out by extracting key point features from the character video, using multimodal driver information and multi-discriminators in the StyleUNet network to jointly optimize the adversarial learning framework, and the generator is generated as a video. Models, combining neurosemantic images and eye gaze images to generate high-fidelity digital human videos.
It improves the fidelity and timing continuity of digital human videos, reduces development difficulty, improves generation efficiency, and is suitable for multiple application fields.
Smart Images

Figure CN118968139A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of digital human generation, and in particular relates to a digital human video generation method and system based on local key position enhancement. Background Art
[0002] In recent years, with the growth of the Internet, virtual digital human technology has been widely used in various fields, such as intelligent customer service, virtual anchors, etc. Traditional virtual digital human technology includes 3D modeling, texture drawing, motion capture, speech synthesis, graphics rendering, audio and video synthesis and other technical processes, which ultimately simulate the appearance, sound and behavior of real humans. In human-computer interaction applications, the use of digital humans can establish connections with users faster and improve user experience. At the same time, the visual and auditory dual-modal interaction method helps to improve human language perception and provide a more accurate interactive experience.
[0003] However, the modeling process of traditional three-dimensional digital humans based on traditional graphics is cumbersome and lengthy, which hinders the popularization and application of virtual digital humans. Therefore, with the rapid development of artificial intelligence technology, the use of generative artificial intelligence technology to produce highly realistic and large-scale virtual digital humans is gradually becoming a research hotspot.
[0004] With the rise of generative adversarial networks (GANs), people have tried to use generative adversarial networks to generate digital humans. For example, the patent application with publication number CN116912421A discloses a 2D digital human modeling optimization method based on an improved generative adversarial network, which includes face image data preprocessing, face image cartoonization using U-Net, generator and discriminator adversarial training, model optimization, etc. The improved U-Net structure generator training is added to the existing 2D digital human modeling method to realize the conversion of the input cartoon face image into a real face image. At the same time, the generated model is optimized and improved using the EMA algorithm to smooth the differences in pixel points of the image blocks, which not only ensures image stability but also ensures the efficiency and practicality of actual application scenarios.
[0005] For another example, the patent application with publication number CN115471886A discloses a method and system for generating digital humans. According to the deep autoencoding theory, the encoder is called to extract facial images and voice features respectively, and the features are fused in the latent space to establish the correlation between voice and facial features. The fused features are then input into a pre-trained GAN network to generate a sequence of digital human images with dynamic changes, and the correlation between voice and face is used to drive the digital human to perform dynamic activities.
[0006] In the above two technical solutions, when using GAN to generate digital humans, local features are not taken into consideration, so the fidelity of local features of the generated digital humans needs to be improved. Summary of the invention
[0007] In view of the above, the purpose of the present invention is to provide a method and system for generating digital human videos based on local key position enhancement, which utilizes key point features extracted from character videos for modeling, relies on multimodal driving information and focuses on local key positions to generate identity-specific, high-fidelity, and temporally continuous digital human videos that are consistent with input facial expressions and movements. This method and system can reduce the difficulty of developing digital human-related applications and alleviate the workload of manual modeling, and has broad application prospects in multiple fields.
[0008] To achieve the above-mentioned purpose of the invention, an embodiment provides a method for generating a digital human video based on local key position enhancement, comprising the following steps:
[0009] Obtain a monocular video and generate a key point sequence based on the monocular video. After preprocessing the key point sequence, divide it into different action segments according to the action. Align the action segments based on the redirection method of Prof. Pütt's analysis to obtain the redirected key point sequence.
[0010] The redirected key point sequence is drawn in real time using the real-time neural semantic image drawing method based on OPENGL to obtain the neural semantic image sequence and the eye gaze image sequence.
[0011] In the StyleUNet network that includes a generator and an image quality discriminator, a local discriminator for distinguishing authenticity from local features is introduced to build an adversarial learning framework for joint optimization of multiple discriminators. Normal samples and difficult samples are constructed to conduct two-stage adversarial training on the adversarial learning framework. After the training, the generator is used as a video generation model.
[0012] A video generation model is used to continuously generate digital human images based on neural semantic image sequences, eye gaze image sequences, and introduced random noise, and audio is added to the continuous digital human images to obtain digital human videos.
[0013] Preferably, preprocessing the key point sequence includes linear interpolation processing of the key points and time series smoothing processing of the key points based on a Euro filter algorithm.
[0014] Preferably, the action segments are aligned based on the redirection method of Proctor analysis, including:
[0015] The average key points of the key points in the source action segment and the target action segment are calculated respectively as the reference key point matrix, and then the transformation matrix from the source action reference key point matrix to the target action reference key point matrix is solved according to the least square method in Prof. Pütt's analysis. The transformation matrix includes a translation matrix, a rotation matrix and a scaling matrix.
[0016] Apply the transformation matrix to the key point sequence in each action clip separately to obtain the redirected key point sequence.
[0017] Preferably, a real-time neural semantic image rendering method based on OPENGL is used to render the redirected key point sequence in real time to obtain a neural semantic image sequence and an eye gaze image sequence, including:
[0018] Key point color definition, predefine a color for each key point;
[0019] Key point interpolation: interpolation of the torso key points contained in the key point sequence to increase the number of torso key points;
[0020] Key point neural semantic graph definition, using different graphs to mark key points in different parts;
[0021] Real-time drawing is performed by parts, and head image drawing, body image drawing, and eye image drawing are performed respectively according to predefined colors, primitives, and key points, to obtain a neurosemantic image sequence obtained by head image drawing and body image drawing, and an eye gaze image sequence obtained by eye image drawing.
[0022] Preferably, in the adversarial learning framework, the generator is used to generate a video frame sequence according to an input image sequence and a random noise sequence, wherein the input image sequence is formed by splicing a neural semantic image sequence and an eye gaze image sequence;
[0023] The image quality discriminator is used to discriminate the authenticity of an input video frame, wherein the input video frame includes a combination of a real video frame and a neural semantic image, and a combination of a generated video frame and a neural semantic image;
[0024] The local feature discriminator is used to discriminate the authenticity of a region of interest that is considered to be possibly blurred, wherein the region of interest includes a combination of a real region of interest extracted from a real video frame and a region of interest extracted from a neural semantic image, and a combination of a region of interest extracted from a generated video frame and a region of interest extracted from a neural semantic image.
[0025] Preferably, all regions of interest are extracted in the same manner, namely:
[0026] Based on the redirected key point sequence, the coordinate mean point of the key points of the part of interest is calculated as the center point, and the minimum cropping length that includes the part of interest is determined based on the center point. The region of interest is cropped from the image with a size greater than the minimum cropping length and with the center point as the center to achieve the extraction of the region of interest.
[0027] Preferably, the loss function used when performing adversarial training on the adversarial learning framework includes a generation loss and a discrimination loss;
[0028] The generation loss includes the reconstruction loss L based on the difference between the generated video frame and the real video frame rec , based on the image perceptual loss L between the image features of the generated video frame and the image features of the real video frame sen , adversarial loss L based on image quality discriminator adv1 and the adversarial loss L based on the local discriminator adv2 ;
[0029] The discriminant loss includes the discriminant loss L based on the image quality discriminator. D1 and the discriminative loss L based on the local discriminator D2 .
[0030] Preferably, constructing normal samples and difficult samples to perform two-stage adversarial training on the adversarial learning framework includes:
[0031] In the pre-training stage, normal samples are used to conduct adversarial training on the adversarial learning framework. In this stage, the adversarial loss L corresponding to the local discriminator is adv2 Set to low weight; low weight settings range from 0.1-0.5.
[0032] In the fine-tuning stage, normal samples and several times more difficult samples are used to perform adversarial training on the pre-trained adversarial learning framework. In this stage, the adversarial loss L corresponding to the local discriminator is adv2 Set to high weight; high weight settings range from 1-5.
[0033] Normal samples refer to video frames in digital human materials that tend to be static and have no obvious hand and body movements. Difficult samples refer to video frames in video materials that have hand and body movements, especially the intermediate states of character motion clips. The number of samples is less than that of normal samples, and motion blur is more likely to occur, making it more difficult for the model to learn correctly, so they are called difficult samples.
[0034] To achieve the above-mentioned purpose of the invention, an embodiment of the present invention further provides a digital human video generation system based on local key position enhancement, comprising:
[0035] A key point extraction module is used to obtain a monocular video and generate a key point sequence based on the monocular video. The key point sequence is divided into different action segments according to the action, and after preprocessing the action segments, the action segments are aligned based on the redirection method of Proctor analysis to obtain the redirected key point sequence;
[0036] A neural rendering module, which is used to render the redirected key point sequence in real time using a real-time neural semantic image rendering method based on OPENGL to obtain a neural semantic image sequence and an eye gaze image sequence;
[0037] The video generation model construction module is used to introduce a local discriminator for distinguishing authenticity of local features into the StyleUNet network that includes a generator and an image quality discriminator to build an adversarial learning framework for joint optimization of multiple discriminators, and to construct normal samples and difficult samples to conduct two-stage adversarial training on the adversarial learning framework. After the training, the generator is used as a video generation model;
[0038] The digital human video generation module is used to continuously generate digital human images based on a neural semantic image sequence, an eye gaze image sequence, and introduced random noise using a video generation model, and to add audio to continuous digital human images to obtain digital human videos.
[0039] Compared with the prior art, the present invention has the following beneficial effects:
[0040] By redirecting the extracted key points, the accuracy of the key points is improved, stable and accurate data is provided for subsequent adversarial learning and digital human video generation, and the ontology modeling of digital humans is realized. On this basis, image sequences are generated through neural semantic image drawing, and based on the image sequences, local discriminators for local feature authenticity judgment are introduced into the StyleUNet network to construct an adversarial learning framework for joint optimization of multiple discriminators. Two-stage training of the adversarial learning framework can improve the generator's focus on local features when generating video frames, improve the fidelity of local features, greatly improve the fidelity of the entire video frame, and enable continuous generation in time sequence, greatly improving the generation efficiency of digital human videos. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 is a flow chart of a method for generating a digital human video based on local key position enhancement provided by an embodiment;
[0043] Figure 2 It is a neural rendering semantic graph drawing hierarchical structure diagram based on OPENGL provided in an embodiment;
[0044] Figure 3 is a schematic diagram of a neural semantic image and an eye gaze image provided by an embodiment;
[0045] Figure 4 is a schematic diagram of the structure of an adversarial learning framework provided in an embodiment;
[0046] Figure 5 is a sample generation flow chart provided by an embodiment;
[0047] Figure 6 It is a structural schematic diagram of a digital human video generation system based on local key position enhancement provided by an embodiment. DETAILED DESCRIPTION
[0048] To make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation methods described herein are only used to explain the present invention and do not limit the scope of protection of the present invention.
[0049] The technical concept of the present invention is: some technical problems existing in the existing digital human technology, such as the authenticity of the generated video, the local clarity of teeth, hands, etc., and the generation speed, etc., still need to be improved. In order to solve these technical problems, the present invention provides a digital human video generation solution based on local key position enhancement, introduces a graphics rendering pipeline in the monocular video replay technology, and performs local key position enhancement, and introduces a difficult sample learning method to further improve the high fidelity of the digital human video, so as to better meet the needs of users and application scenarios.
[0050] like Figure 1 As shown, the embodiment provides a method for generating a digital human video based on local key position enhancement, comprising the following steps:
[0051] S1, obtain a monocular video, and generate a key point sequence based on the monocular video. After preprocessing the key point sequence, divide it into different action segments according to the action, align the action segments based on the redirection method of Prof. Pütt's analysis, and obtain the redirected key point sequence.
[0052] In the embodiment, N frames of monocular video sequence V are input 1:N = {V 1 ,…,V N}, where V i ∈R H×W×3 , V i represents the i-th video frame, H×W is the video frame size, 3 represents the number of channels, and generates a key point sequence L of N frames containing facial key points, torso key points, hand key points, and eye key points. 1 : N ={L 1 ,…,L N}, where L i ∈R J×3 , J is the number of key points, 3 is the three-dimensional coordinates of the key points, L i Represents the i-th key point sequence. In actual extraction, L i ∈R560×3 , specifically including 468 facial key points, 8 torso key points, 21 key points per hand, and 21 eye key points per eye. Specifically, the Faceverse 3DMM model, DWpose model, and Mediapipe tool can be used to extract facial key points, torso and hand key points, and eye key points, respectively.
[0053] In an embodiment, the key points are preprocessed to address the problems of missing and jittering key points that may exist after the key points are extracted, including: using the video frame context to complete the possible missing key points using linear interpolation, and using a Euro filter algorithm to perform temporal smoothing on the face, body and hand key points respectively, so as to smooth out small amplitude jitters while retaining the original data samples.
[0054] In the embodiment, in view of the subsequent real-time driving application requirements, the digital human is required to be able to perform limb movements in a coherent manner in different action segments. Therefore, the preprocessed key point sequence is divided into different action segments according to the actions, and the action segments are aligned based on the redirection method of Proctor analysis, and the posture of the source action is redirected to the target action to obtain the redirected key point sequence.
[0055] The redirection process includes: calculating the average key points of the key points in the source action segment and the target action segment respectively as the reference key point matrix, and then solving the transformation matrix from the source action reference key point matrix to the target action reference key point matrix according to the least squares method in Prof. Püssler analysis. The transformation matrix includes a translation matrix, a rotation matrix and a scaling matrix; applying the transformation matrix to the key point sequence in each action segment respectively to obtain the redirected key point sequence.
[0056] S2, using the real-time neural semantic image rendering method based on OPENGL to render the redirected key point sequence in real time, and obtain the neural semantic image sequence and the eye gaze image sequence.
[0057] In the embodiment, a real-time neural semantic image rendering method based on OPENGL is used to use the redirected N-frame key point sequence L 1:N As input, generate N frames of neural semantic image sequence CCBR 1:N ={CCBR 1 ,...,CCBR N}, where CCBR i ∈R H×W×3 , eye gaze image sequence E 1:N ={E N ,...,E N}, where E i ∈R H×W×3Specifically, for OPENGL's real-time neural image rendering pipeline, such as Figure 2 As shown, it includes the following key sub-steps:
[0058] 1. Color definition, predefine a color for each key point;
[0059] Specifically, for the body, hand and face key points, each key point is given a predefined color, where the values of the red and green channels are obtained by the normalized UV coordinates, and the blue channel adopts a predefined fixed value.
[0060] 2. Key point interpolation: interpolate the torso key points contained in the key point sequence to increase the number of torso key points;
[0061] Since increasing the number of bone points can improve the replay performance, interpolation is performed between 8 body bone points, where the number and color of interpolation between joint points are fixed. After interpolation, a total of 79 body posture key points are obtained.
[0062] 3. NDC (normalized device coordinates) space coordinate transformation;
[0063] Specifically, the key points to be drawn in all video frames are converted into a coordinate space of (x, y)∈[-1, 1].
[0064] 4. Key point neural semantic graph definition, using different graphs to mark key points in different parts;
[0065] Specifically, when defining the neural semantic graph for key points, dots are used to represent the body and pupil key point parts, triangle patches are used to represent the palm and facial key point parts, polygonal patches are used to represent the mouth and eye socket key point parts, and line segments are used to represent the finger key point parts.
[0066] 5. Draw cache definition;
[0067] OPENGL interacts with the GPU through various buffer object management. In the embodiment, off-screen rendering is mainly used to control image drawing. EGL is used as the underlying API for docking with the platform window system to process the graphics context. Frame buffer objects and texture buffer objects are defined to buffer word rendering results. When docking with key point data, VAO (vertex array object) is used to define the vertex array of the specified body part, and specific VBO (vertex buffer object) and IBO (index buffer object) are bound thereunder. Two VBO objects are used respectively, corresponding to the vertex color and the body key point position of the specified frame. IBO specifies the index order of the vertex part of the body to parse the VBO object.
[0068] 6. Drawing primitives and shader definitions
[0069] This step controls the specific drawing behavior of OPENGL, specifically, the graphics drawing pipeline is controlled in the form of shader program fragments. In the embodiment, vertex shaders and fragment shaders are mainly used. For different body part definitions, the shader part accepts the corresponding color buffer and position buffer, and selects different primitive drawing methods according to the graphics drawing defined in the key point neural semantic graphics definition step. Finally, independent graphics rendering images of each body part are obtained.
[0070] 7. Graphics drawing overlay and control
[0071] In this step, the actual drawing process of the OPENGL renderer and the external interface of the graphics drawing process are mainly defined. For example, the specific primitive drawing order of eye drawing and hand drawing is implemented. The head image drawing, body image drawing, and eye image drawing are completed in sequence according to the similar process as above, and finally N frames of neural semantic image sequence CCBR obtained by head image drawing and body image drawing are obtained. 1:N ={CCBR 1 ...,CCBR N}, where CCBR i ∈R H×W×3 , eye gaze image sequence E obtained by eye image drawing 1:N ={E N ,...,E N}, where E i ∈R H×W×3 ,like Figure 3 shown.
[0072] S3, introduces a local discriminator for distinguishing the authenticity of local features into the StyleUNet network that includes a generator and an image quality discriminator to build an adversarial learning framework for joint optimization of multiple discriminators, and constructs normal samples and difficult samples to conduct two-stage adversarial training on the adversarial learning framework. After the training, the generator is used as a video generation model.
[0073] In the embodiment, Figure 4 As shown, the generator is used to generate a video frame sequence based on an input image sequence and a random noise sequence, wherein the input image sequence is spliced by a neural semantic image sequence and an eye gaze image sequence.
[0074] Specifically, the neural semantic image sequence CCBR of N frames 1:N and N frames of eye gaze image sequence E 1:N Splicing is performed on the channel dimension and uniformly represented as the input image sequence X 1:N ={X 1 ,...,X N}, where X i ∈R H×W×6, randomly sample the random noise variable Z from Gaussian noise t ∈N(0,1), the input image sequence X 1:N and random noise variable Z t Input to the generator to get a generated video sequence of N frames in
[0075] The generator G consists of three parts: a mapping network, an image encoder, and a generation network. The mapping network is used to convert the random noise Z t Transformed into a latent code W∈R for controlling style features 64 , the image feature encoder is used to encode multi-level image features, each layer of features is connected to the upper layer features, and the generator network is used to generate video frames based on image features and potential codes. In addition, the generator adopts the UNet architecture as a whole. The image encoder part contains 3 layers and is sent to the generator network through jump connections. The network performs wavelet transform on the input image and then inputs it into the backbone network. Finally, the inverse wavelet transform is performed to restore it to the original image size.
[0076] In the embodiment, the image quality discriminator D1 is used to discriminate the authenticity of an input video frame, wherein the input video frame comprises a combination of a real video frame and a neural semantic image (V t ,CCBR t ), and generate a combination of video frames and neural semantic images
[0077] In the embodiment, in order to improve the clarity of the local position, the local feature discriminator D2 is used to discriminate the authenticity of the region of interest that may be blurred, wherein the region of interest includes a real region of interest CROP extracted from a real video frame. t CCBRC with Regions of Interest Extracted from Neural Semantic Images t Combination of (CROP t ,CCBRC t ), and the regions of interest extracted from the generated video frames Combination with regions of interest extracted from neural semantic images
[0078] Specifically, the extraction method of the region of interest of each type of image is the same: based on the redirected key point sequence, the coordinate mean point of the key points of the part of interest is calculated as the center point, and the minimum cropping length min(x) covering the part of interest is determined based on the center point, and the size greater than the minimum cropping length min(x) is selected. Right now And the region of interest is cropped from the image with the center point as the center to realize the extraction of the region of interest.
[0079] The loss functions used in adversarial learning frameworks for adversarial training include generation loss and discrimination loss. G It includes the reconstruction loss L based on the difference between the generated video frame and the real video frame rec , based on the image perceptual loss L between the image features of the generated video frame and the image features of the real video frame sen , adversarial loss L based on image quality discriminator adv1 and the adversarial loss L based on the local discriminator adv2 ;
[0080] Specifically, the reconstruction loss L rec Using LI loss, image perception loss L sen The image features used can be the image features extracted by inputting the video frame into the VGG network. adv1 and the adversarial loss L based on the local discriminator adv2 Respectively expressed as:
[0081]
[0082]
[0083] Among them, fake 1,i Representation combination The result of the true and false discrimination input to the image quality discriminator, that is, the discrimination score, fake 2,i Representation combination The true or false discrimination result input to the local discriminator is the discrimination score.
[0084] Generate loss L G It is expressed as:
[0085]
[0086] Among them, λ adv1 , sen , and λ rec Represent the weight of the loss, L adv2,j represents the adversarial loss of the j-th local discriminator, λ adv2,j Indicates L adv2,j There can be several local discriminators, such as the left hand, right hand, eyes, mouth, head, etc., and one local discriminator can be used respectively. Therefore, there may be n local discriminators in this case.
[0087] Discriminative loss L D Including the discriminative loss L based on the image quality discriminator D1 and the discriminative loss L based on the local discriminator D2 , respectively expressed as:
[0088]
[0089]
[0090] Among them, real 1,i Indicates combination (V t ,CCBR t ) is input to the true and false discrimination result of the image quality discriminator, that is, the discrimination score, real 2,i Indicates combination (CROP t ,CCBRC t ) is input into the local discriminator to determine the authenticity of the result, that is, the discrimination score.
[0091] In the embodiment, the two-stage adversarial training of the adversarial learning framework using the constructed normal samples and difficult samples includes:
[0092] Construct normal samples and difficult samples, clean and segment the original collected digital human training video data, extract key points, remove background, draw neural semantic images, and build a sample annotation system. Specifically, use PY-QT to build a data annotation system that can load image frames, such as Figure 5 As shown in the figure, the system reads monocular video frames and the action clip sequences processed as above, and can perform frame review in frame order. For difficult samples, the reviewer calibrates the start frame and end frame of the character motion clip through the system. For error samples, the system can calibrate the start frame and end frame of the error sample clip. For difficult samples, their indexes are used as inputs for subsequent sample supersampling. For error samples, these error samples are skipped during the training process. Specifically, normal samples refer to video frames in digital human materials that tend to be static and have no obvious hand and body movements. Difficult samples refer to video frames in video materials with hand and body movements, especially the intermediate state of character motion clips. The number of samples is less than that of normal samples, and motion blur is prone to occur. It is difficult for the model to learn correctly, so it is called a difficult sample. Error samples are frames with large differences between the video hand image results and the key points after the visualization of the key points of the character.
[0093] In the pre-training stage, normal samples are used to perform multiple iterative adversarial training on the adversarial learning framework until the adversarial framework as a whole fits a better overall effect. In this stage, the adversarial loss L corresponding to the local discriminator is adv2 The low weight is set to 0.1-0.5, which can be adjusted according to the actual model convergence.
[0094] In the fine-tuning stage, normal samples are combined with difficult samples for training. Oversampling is used to increase the amount of difficult sample data several times in the normal training data, and adversarial training is performed on the pre-trained adversarial learning framework. At this stage, the local discriminator D2 and the generator G have been well pre-trained in the fine-tuning stage, so the adversarial loss L corresponding to the local discriminator is adv2 It is set to high weight, and the high weight setting range is 1-5, which can be adjusted according to the actual model convergence. This can meet the high-quality reenactment of all actions and expressions of the digital human video.
[0095] After the above two-stage training, the trained generator is used as a video generation model for subsequent digital human videos.
[0096] S4, using a video generation model to continuously generate digital human images based on a neural semantic image sequence, an eye gaze image sequence, and the introduced random noise, and adding audio to the continuous digital human images to obtain a digital human video.
[0097] In the embodiment, the corresponding facial key points and audio input interface are provided externally. When using, the user can select the corresponding action clip in the system that has been processed in step S1 according to the action sequence number. First, the generated facial key point representation is aligned with the template action facial representation, and then all the key point sequences are rendered by OPENGL neural semantic image to obtain the neural semantic image required for the video generation model input, and the video generation model is used to generate continuous video frames of digital humans, and the generated video frames are synthesized with the audio input to finally generate a high-fidelity digital human video with synchronized audio and video. Considering the single-frame performance, in the case of a single A100 high-performance computing card, the OPENGL neural semantic image rendering module can reach a maximum of 4ms per frame, and the neural network rendering module can reach a maximum of 10ms per frame. The overall delay is close to 30ms, and real-time video stream generation of more than 25fps can be achieved.
[0098] like Figure 6As shown, the embodiment also provides a digital human video generation system 60 based on local key position enhancement, including a key point extraction module 61, a neural rendering module 62, a video generation model construction module 63, and a digital human video generation module 64, wherein the key point extraction module 61 is used to obtain a monocular video and generate a key point sequence based on the monocular video; the neural rendering module 62 is used to use a real-time neural semantic image rendering method based on OPENGL to perform real-time rendering on the redirected key point sequence to obtain a neural semantic image sequence and an eye gaze image sequence; the video generation model construction module 63 is used to introduce a local discriminator for local feature authenticity discrimination in a StyleUNet network including a generator and an image quality discriminator to construct a multi-discriminator joint optimization adversarial learning framework, and construct normal samples and difficult samples to perform two-stage adversarial training on the adversarial learning framework. After the training, the generator is used as a video generation model; the digital human video generation module 64 is used to continuously generate digital human images based on the neural semantic image sequence, the eye gaze image sequence, and the introduced random noise using the video generation model, and add audio to the continuous digital human images to obtain digital human videos.
[0099] It should be noted that the digital human video generation device based on local key position enhancement provided in the above embodiment should be illustrated by the division of the above functional modules when performing digital human video generation. The above functional allocation can be completed by different functional modules as needed, that is, the internal structure of the terminal or server is divided into different functional modules to complete all or part of the functions described above. In addition, the digital human video generation device based on local key position enhancement provided in the above embodiment and the digital human video generation construction method embodiment based on local key position enhancement belong to the same concept. The specific implementation process is detailed in the digital human video generation method embodiment based on local key position enhancement, which will not be repeated here.
[0100] The above method and device use monocular video as input and model digital human through neural network, so as to generate digital human video with the same expression, head movement and body posture as the original video and maintaining the identity of the target person. This technology can reduce the difficulty of developing digital human-related applications, reduce the burden of manual modeling, and has broad application prospects in the fields of virtual reality, digital entertainment, audio and video games, education and finance.
[0101] The specific implementation methods described above provide a detailed description of the technical solutions and beneficial effects of the present invention. It should be understood that the above is only the most preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, supplements and equivalent substitutions made within the scope of the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for generating digital human video based on local key position enhancement, characterized in that: The following steps are involved: Obtain a monocular video and generate a key point sequence based on the monocular video. After preprocessing the key point sequence, divide it into different action segments according to the action. Align the action segments based on the redirection method of Prof. Pütt's analysis to obtain the redirected key point sequence. The redirected key point sequence is drawn in real time using the real-time neural semantic image drawing method based on OPENGL to obtain the neural semantic image sequence and the eye gaze image sequence. In the StyleUNet network that includes a generator and an image quality discriminator, a local discriminator for distinguishing authenticity from local features is introduced to build an adversarial learning framework for joint optimization of multiple discriminators. Normal samples and difficult samples are constructed to conduct two-stage adversarial training on the adversarial learning framework. After the training, the generator is used as a video generation model. A video generation model is used to continuously generate digital human images based on neural semantic image sequences, eye gaze image sequences, and introduced random noise, and audio is added to the continuous digital human images to obtain digital human videos.
2. The method for generating digital human video based on local key position enhancement according to claim 1, characterized in that: The preprocessing of the key point sequence includes linear interpolation of the key points and time series smoothing of the key points based on the Euro filter algorithm.
3. The method for generating digital human video based on local key position enhancement according to claim 1, characterized in that: The action clips are aligned based on the redirection method of Procter & Gamble analysis, including: The average key points of the key points in the source action segment and the target action segment are calculated respectively as the reference key point matrix, and then the transformation matrix from the source action reference key point matrix to the target action reference key point matrix is solved according to the least square method in Prof. Pütt's analysis. The transformation matrix includes a translation matrix, a rotation matrix and a scaling matrix. Apply the transformation matrix to the key point sequence in each action clip separately to obtain the redirected key point sequence.
4. The method for generating digital human video based on local key position enhancement according to claim 1, characterized in that: The redirected key point sequence is drawn in real time using a real-time neural semantic image drawing method based on OPENGL to obtain a neural semantic image sequence and an eye gaze image sequence, including: Key point color definition, predefine a color for each key point; Key point interpolation: interpolation of the torso key points contained in the key point sequence to increase the number of torso key points; Key point neural semantic graph definition, using different graphs to mark key points in different parts; Real-time drawing is performed by parts, and head image drawing, body image drawing, and eye image drawing are performed respectively according to predefined colors, primitives, and key points, to obtain a neurosemantic image sequence obtained by head image drawing and body image drawing, and an eye gaze image sequence obtained by eye image drawing.
5. The method for generating digital human video based on local key position enhancement according to claim 1, characterized in that: In the adversarial learning framework, the generator is used to generate a video frame sequence according to an input image sequence and a random noise sequence, wherein the input image sequence is formed by splicing a neural semantic image sequence and an eye gaze image sequence; The image quality discriminator is used to discriminate the authenticity of an input video frame, wherein the input video frame includes a combination of a real video frame and a neural semantic image, and a combination of a generated video frame and a neural semantic image; The local feature discriminator is used to discriminate the authenticity of a region of interest that is considered to be possibly blurred, wherein the region of interest includes a combination of a real region of interest extracted from a real video frame and a region of interest extracted from a neural semantic image, and a combination of a region of interest extracted from a generated video frame and a region of interest extracted from a neural semantic image.
6. The method for generating digital human video based on local key position enhancement according to claim 5, characterized in that: All regions of interest are extracted in the same way: Based on the redirected key point sequence, the coordinate mean point of the key points of the part of interest is calculated as the center point, and the minimum cropping length that includes the part of interest is determined based on the center point. The region of interest is cropped from the image with a size greater than the minimum cropping length and with the center point as the center to achieve the extraction of the region of interest.
7. The method for generating digital human video based on local key position enhancement according to claim 5, characterized in that: The loss functions used in adversarial training of the adversarial learning framework include generation loss and discrimination loss; The generation loss includes the reconstruction loss L based on the difference between the generated video frame and the real video frame rec , based on the image perceptual loss L between the image features of the generated video frame and the image features of the real video frame sen , adversarial loss L based on image quality discriminator adv1 and the adversarial loss L based on the local discriminator adv2 ; The discriminant loss includes the discriminant loss L based on the image quality discriminator. D1 and the discriminative loss L based on the local discriminator D2 .
8. The method for generating digital human video based on local key position enhancement according to claim 7, characterized in that: Construct normal samples and difficult samples to conduct two-stage adversarial training on the adversarial learning framework, including: In the pre-training stage, normal samples are used to conduct adversarial training on the adversarial learning framework. In this stage, the adversarial loss L corresponding to the local discriminator is adv2 The low weight is set to a range of 0.1-0.
5. In the fine-tuning stage, normal samples and several times more difficult samples are used to perform adversarial training on the pre-trained adversarial learning framework. In this stage, the adversarial loss L corresponding to the local discriminator is adv2 Set to high weight; high weight settings range from 1-5. Normal samples refer to video frames in digital human materials that tend to be static and have no obvious hand and body movements. Difficult samples refer to video frames in video materials that have hand and body movements, especially the intermediate states of character motion clips. The number of samples is less than that of normal samples, and motion blur is more likely to occur.
9. A digital human video generation system based on local key position enhancement, characterized in that: include: A key point extraction module is used to obtain a monocular video and generate a key point sequence based on the monocular video. The key point sequence is divided into different action segments according to the action, and after preprocessing the action segments, the action segments are aligned based on the redirection method of Proctor analysis to obtain the redirected key point sequence; A neural rendering module, which is used to render the redirected key point sequence in real time using a real-time neural semantic image rendering method based on OPENGL to obtain a neural semantic image sequence and an eye gaze image sequence; The video generation model construction module is used to introduce a local discriminator for distinguishing authenticity of local features into the StyleUNet network that includes a generator and an image quality discriminator to build an adversarial learning framework for joint optimization of multiple discriminators, and to construct normal samples and difficult samples to conduct two-stage adversarial training on the adversarial learning framework. After the training, the generator is used as a video generation model; The digital human video generation module is used to continuously generate digital human images based on a neural semantic image sequence, an eye gaze image sequence, and introduced random noise using a video generation model, and to add audio to continuous digital human images to obtain digital human videos.
Citation Information
Patent Citations
Facial expression generation method based on generative adversarial network
CN112990078A
Three-dimensional cartoon image processing method and device, computer equipment and storage medium
CN115546361A
Digital human video generation method and device, electronic equipment and storage medium
CN116071223A
Generative adversarial network-based facial expression generation method
WO2022205416A1
Cited By
Digital human modeling method and system combining Gaussian sputtering image and GAN model
CN121280577A
Digital human modeling method and system combining gaussian sputtering image and gan model
CN121280577B
