A 2D digital human re-illumination method and system based on single-view video
Through a 2D digital human relighting method based on single-view video, voice features and pre-trained models are used to generate facial normal data, achieving seamless fusion of digital humans under different lighting conditions, and solving the problems caused by different lighting conditions in the existing technology. It solves the problem of abrupt digital human images and reduces the computational complexity.
Patent Information
- Application Number
- CN202410310826.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-19
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-03-19
AI Technical Summary
When the existing technology generates digital human videos, different lighting conditions cause the digital human image to appear abrupt in different scenes, and the complexity of data collection and calculation is high, making it difficult to achieve consistent lighting effects.
A 2D digital human relighting method based on single-view video is used to obtain the video template of the digital human's speech state, extract speech features and lip mesh vertex data, estimate expression and posture coefficients, and use the pre-trained FLAME model to generate facial normals Data, and render the image through the lighting component to achieve the relighting effect.
The data collection process is simplified, the computational complexity is reduced, and the digital human can be re-illuminated and customized without adding data collection steps, and the generated digital human video can be seamlessly integrated with the background.
Smart Images

Figure CN118154830B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of artificial intelligence, and in particular relates to a 2D digital human re-illumination method and system based on single-view video. Background Art
[0002] The technology of voice-driven digital humans has become increasingly mature. The current digital human technology can match lip shape and voice to nearly 99%. Facial movements and expressions can also be regenerated based on new text or voice content, with a high sense of reality. It can be applied to short video production, e-commerce live broadcasts, human-computer dialogue and many other occasions. However, in actual use, digital human images are often placed in different scenes. These scenes usually have different backgrounds and ambient lighting conditions. Directly collage digital human images with these backgrounds will make the picture appear very abrupt due to the different lighting conditions between the original digital human video and the new scene, which seriously affects the realism of the digital human video. Therefore, how to generate a digital human video with consistent lighting effects based on digital humans and backgrounds with different lighting is still a problem to be solved.
[0003] In order to perfectly integrate the digital human image into scenes with different lighting conditions, it is necessary to modify the lighting conditions of the digital human according to the lighting information of the background, and re-light the digital human, so as to generate a digital human image under new lighting conditions, and then generate a digital human video with consistent lighting. Based on this idea, there are currently two main methods: First, digital human image cloning based on digital human videos with dynamic lighting. This method requires collecting multiple videos of the same digital human under different lighting conditions, learning the 2D screen performance of the digital human under different lighting conditions through the model, and obtaining an approximate mapping relationship from lighting conditions to screen presentation. Finally, this model is used to generate a re-illuminated digital human video. Second, digital human image cloning based on multi-view digital human data. This method estimates the 3D structure of the digital human through multi-view digital human 2D video data, and then extracts and modifies the lighting through the estimated 3D information. This type of method can be divided into two categories: the first type estimates the surface normal information of the digital human image through traditional multi-view geometry methods, and then re-renders the digital human image by re-setting the lighting conditions; the second type of method adopts a direct end-to-end method, using the NERF (neural radiance field) model to directly learn the mapping model of the digital human image and lighting conditions to the final rendered image.
[0004] There are two main problems with the above relighting approach:
[0005] (1) In actual use, the complexity of data collection is too high. Whether it is data from multiple lighting conditions or data from multiple perspectives, their collection process is much more complicated than the collection of ordinary digital human image data. For general 2D digital human image customization, only a few minutes of real-life original image video is required, which can be shot with any device, including professional cameras and ordinary mobile phones. However, multi-perspective data requires a special camera array, and multi-lighting data requires a special scene layout to obtain data under different lighting conditions. These increase the difficulty of data collection and raise the threshold for digital human image customization.
[0006] (2) The computational complexity is too high. The multi-view method needs to introduce a model such as NERF, or needs to split the digital human generation into multiple stages, divided into multiple independent modules such as voice-driven lip shape and re-lighting generation, which increases the computational complexity of digital human generation. The multi-lighting data method also requires the additional training of a separate re-lighting model. These methods all require the training of one or more models in addition to the digital human voice-driven model, introducing more computational stages, thereby increasing the computational complexity of digital human generation. Summary of the invention
[0007] In order to solve the problem of abrupt fusion of 2D digital humans in different lighting scenes, the present invention provides a 2D digital human re-lighting method and system based on single-view video. Only one single-view video is needed to customize the digital human for re-lighting, and the calculation complexity is lower.
[0008] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0009] In a first aspect, the present invention provides a 2D digital human re-illumination method based on a single-view video, comprising:
[0010] Step 1, obtaining a video template of the digital human's speaking state;
[0011] Step 2, extracting the speech features corresponding to each frame of the video template, and generating lip mesh vertex data according to the speech features;
[0012] Step 3, using the lip mesh vertex data and speech features, estimating the expression coefficient and posture coefficient of the digital human;
[0013] Step 4, using the pre-trained FLAME model, generate the normal data of the digital human face through the expression coefficient and posture coefficient;
[0014] Step 5: convert the generated normal data into the image of the lip-related area, and directly use the original digital human image in the video template for the lip-irrelevant area, and fuse them to obtain a new digital human image;
[0015] Step 6: Extract the illumination component in the new digital human image, re-render the current video frame based on the illumination component, and obtain the final rendered image as the re-illumination result.
[0016] In a second aspect, the present invention provides a 2D digital human re-lighting system based on single-view video, which is used to implement the above-mentioned 2D digital human re-lighting method.
[0017] In a third aspect, the present invention provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned 2D digital human re-lighting method.
[0018] In a fourth aspect, the present invention provides a machine-readable storage medium storing machine-executable instructions, which, when called and executed by a processor, are used to implement the above-mentioned 2D digital human re-lighting method.
[0019] The beneficial effects of the present invention are:
[0020] (1) The present invention only needs a single-view video to customize the digital human with re-illumination, and no other data collection steps need to be added to the existing digital human customization process. Therefore, the data collection stage is simpler and more feasible, and the present invention is more convenient when used.
[0021] (2) Through simple model training, the present invention can obtain the final end-to-end usable re-illuminated digital human voice-driven model. Compared with the existing multi-stage method, the computational efficiency is higher, and compared with the existing NERF-based method, the computational complexity is lower. The final generated digital human image can be seamlessly integrated with the background. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 The figure is a flow chart of a 2D digital human re-illumination method based on a single-view video according to an embodiment of the present invention.
[0023] Figure 2 It is a schematic diagram of the structure of an electronic device terminal of a 2D digital human re-illumination method based on a single-view video according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order 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 embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0025] On the contrary, the present invention covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present invention as defined by the claims. Further, in order to make the public have a better understanding of the present invention, some specific details are described in detail in the detailed description of the present invention below. Those skilled in the art can fully understand the present invention without the description of these details.
[0026] Unless otherwise defined, all technical and scientific terms used in the present invention have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "or / and" used in the present invention includes any and all combinations of one or more of the related listed items.
[0027] like Figure 1 As shown, this embodiment proposes a 2D digital human re-illumination method based on a single-view video, comprising:
[0028] Step 1: Shoot the video template D of the digital human speaking state = {f1, ..., f n}, where n is the length of the video template, v = {v1, ..., v n} is the speech segment corresponding to each frame of video, that is, f i Corresponding to v i .
[0029] Step 2: Get each frame f i , i = 1, ..., n corresponds to the feature V of speech v, and the lip-related mesh vertex data V is generated by the pre-trained model lip .
[0030] Step 3: Use the mesh vertex data V lip and speech features V, through model F exp Estimate the expression coefficient θ and posture coefficient φ of the digital human.
[0031] Step 4: Use the pre-trained FLAME model to estimate the normal data of the digital human face through the expression coefficient θ and the posture coefficient φ The FLAME model here uses linear blend skinning technology to deform the facial mesh according to the expression and posture. This model is an existing model in this field and will not be described in detail.
[0032] Step 5: Use local network F local The generated normal The lip-related area is converted into the image, and the lip-irrelevant area directly uses the original digital human image, that is, the video frame in the video template. blendBy fusing these two parts, we can get a new digital human image.
[0033] Step 6: Use the normal model F normal , Shadow Model F shad , diffuse reflection model F albedo and specular reflection model F spec To extract new digital human images Various lighting components are used to re-render the image based on the lighting components to obtain the final rendered image
[0034] Step seven: train the above model until the model converges.
[0035] Step 8: Input new voice and lighting conditions, and generate a new driving screen through voice drive Then generate a rendered image based on the new lighting information input As a result of heavy lighting.
[0036] In a specific implementation of the present invention, a possible implementation of step 2 is as follows:
[0037] Step 2.1: Extract the speech feature V=Wav2vec2(v) corresponding to the current speech segment v through the pre-trained Wav2vec2 model. The Wav2vec2 model here is an existing model in the art and will not be described in detail.
[0038] Step 2.2: Input the speech feature V into the pre-trained lip generation model based on the 3D structure of speech-generated lips, namely the VOCA model, and extract the 3D mesh vertex data V of the lips lip =VOCA(V)∈R m×3 , where m is the number of vertices.
[0039] In a specific implementation of the present invention, a possible implementation of step three is as follows:
[0040] Step 3.1: Using the lip vertex feature encoder E lip Get the encoded features FV of the lip mesh vertices lip =E lip (V lip ). In this embodiment, the lip vertex feature encoder E lip A multi-layer fully connected network structure is used, preferably three layers.
[0041] Step 3.2: Using speech feature encoder E voc Obtain the coding feature FV=E of the speech feature voc (V). In this embodiment, the speech feature encoder E vocA multi-layer fully connected network structure is used, preferably three layers.
[0042] Step 3.3: Estimate the network F using the expression coefficient exp Estimate the facial expression coefficients and posture coefficients corresponding to the speech and lip mesh, φ, θ = F exp (FV lip , FV). In this embodiment, the expression coefficient estimation network F exp A multi-layer fully connected network structure is used, preferably three layers.
[0043] In a specific implementation of the present invention, a possible implementation of step 5 is as follows:
[0044] Step 5.1: Through a ResNet-based local network F local Normal data Converted to actual digital human image In this embodiment, the local network F local A residual convolutional network model consisting of multiple residual convolutional blocks is used, preferably three.
[0045] Step 5.2: Obtain the mask image M of the digital human's lips and generate a new digital human image The lips of the new digital human image come from the digital human image I′, while the other parts come directly from the frame image I in the original video template. Finally, a fusion network F based on ResNet is used to blend Specifically, In this embodiment, the fusion network F blend A residual convolution network model consisting of multiple residual convolution blocks is used, preferably three. The frame image I here refers to f in the above text. i .
[0046] In a specific implementation of the present invention, a possible implementation of step six is as follows:
[0047] Step 6.1: Use a 9-dimensional spherical harmonic function coefficient vector to represent the lighting information L. The 9-dimensional coefficients are represented as w1, ..., w9, and each coefficient w i Substituting the spherical harmonic function, the illumination information L(w i ). Initialize the 9-dimensional coefficient to the setting of frontal illumination, denoted as w o , and optimized in subsequent training.
[0048] Step 6.2: Normal data estimated by the FLAME model Rough, use a more sophisticated ResNet-based normal residual model F normal To estimate more accurate normal data, specifically In this embodiment, the normal residual model F normal A residual convolutional network model consisting of multiple residual convolutional blocks is used, preferably three.
[0049] Step 6.3: Use the ResNet-based shadow model F shad To extract the shadow map S shad :
[0050] S shad =F shad (N, L)
[0051] In this embodiment, the shadow model F shad A residual convolutional network model consisting of multiple residual convolutional blocks is used, preferably three.
[0052] Step 6.4: Use the ResNet-based diffuse model F albedo From the generated new digital human image Extract the basic color information of the face that remains unchanged by illumination and generate diffuse reflection map A:
[0053]
[0054] In this embodiment, the diffuse reflection model F albedo A residual convolutional network model consisting of multiple residual convolutional blocks is used, preferably three.
[0055] Step 6.5: Calculate the specular component S using the Phong lighting model spec :
[0056]
[0057] Among them, R spec This is the calculation process of the Phong lighting model. i , i = 1, ..., 9 is the illumination coefficient, which is a hyperparameter and can be optimized during the training process; w o is the initial illumination coefficient, which always corresponds to the frontal illumination situation. Note that when the illumination changes, only the illumination coefficient w needs to be modified. i , i = 1, ..., 9 to match the new lighting, and thus generate a new specular reflection component, thereby realizing the re-lighting process.
[0058] Then use the ResNet-based specular reflection model F spec For the specular reflection component S spec Further refinement is performed to ensure that the specular component is aligned with the original image. This step is done by calculating the specular reflection coefficient map C spec To do:
[0059]
[0060] In this embodiment, the mirror reflection model F spec A residual convolutional network model consisting of multiple residual convolutional blocks is used, preferably three.
[0061] Step 6.6: According to the current lighting component map (shadow map S shad , specular reflection component S spec , Specular Reflectance Graph C spec ), re-render the current frame using an image-based rendering method to generate the final rendered image As a result of the relighting:
[0062]
[0063] In a specific implementation of the present invention, a possible implementation of step seven is as follows:
[0064] Step 7.1: During training, each frame of speech data v is selected i From the original digital human video template data, the frame f corresponding to the original video template i .
[0065] Step 7.2: Normal data generated according to step 5 The converted digital human image I′ and the new digital human image Calculate the speech-driven face rendering loss, which consists of three parts:
[0066] Localized color loss on the lips
[0067]
[0068] Color loss after fusion
[0069]
[0070] Perceived loss It uses the pre-trained VGG network to extract features and calculate the L2 loss:
[0071]
[0072] in, They represent the local color loss of the lips, the color loss after fusion, and the perception loss. represents the square of the L2 norm, M represents the mask image of the digital human's lips, I′ represents the actual digital human image converted from the normal data generated in step 4, and I represents the frame image in the original video template. represents the new digital human image and VGG represents the VGG network.
[0073] Step 7.3: Calculate illumination loss, including smoothness loss Color Rarity Loss L parsimony , normal residual estimation loss L δN , Rendering Color Loss Person identity consistency loss L consistent .
[0074] First, there is the loss related to the diffuse image. Although there is no ground truth for diffuse reflection, it can be constrained by smoothness and color rarity. Smoothness means that the total variation of diffuse reflection should be relatively small, so that the change of diffuse reflection image should be gentle and non-dramatic. The smoothness loss formula of diffuse reflection image is:
[0075]
[0076] Where A is the diffuse reflectance map generated in step 6.4, β * is the component value of the diffuse reflection map A, h, w are the pixel positions of the diffuse reflection map.
[0077] In addition to the smoothness loss of the diffuse map, it also includes N, S shad , C spec The smoothness loss of , together constitutes the total smoothness loss:
[0078]
[0079] L smooth (*) Calculation process and L smooth (A) Completely consistent, it is used to ensure that the data are smooth.
[0080] Color rarity means that the number of colors used to generate the original image should be relatively small. In other words, just like painting, the color of the face itself should be generated using only a few colors on the palette. This is a common assumption. The color rarity loss can be measured by the entropy of the diffuse map:
[0081] L parsimony =E[-log p(A)]
[0082] Among them, p(A) represents the probability density function of the diffuse reflectance map, which is discretely estimated by the Monte Carlo sampling method; E[.] represents the expectation.
[0083] The residual of the normal estimation should be sparse, so an L1 constraint is imposed on the normal residual estimation and the normal residual estimation loss is calculated:
[0084]
[0085] The loss of final image rendering, we hope that the final re-rendered image is the same as the original Figure 1 Therefore, rendering color loss is introduced
[0086]
[0087] In addition, we also hope that the identity of the person in the re-illuminated image is consistent with the original person, which can be constrained by introducing a pre-trained face recognition model and calculating the person identity consistency loss L consistent :
[0088]
[0089] Among them, E id It is the feature extraction module of the pre-trained face recognition model. In order to re-render the digital human screen using arbitrary lighting conditions, different lighting conditions can be randomly selected in practice.
[0090] Step 7.4: Calculate the total loss function:
[0091]
[0092] The weights of these losses are set as λ δN =1,λ consistent =3,λ parsimony =0.001,
[0093] Step 7.5: According to the loss function in step 7.4, the lip vertex feature encoder E lip , speech feature encoder E voc , Expression coefficient estimation network F exp , local network F local , Converged Network blend , normal residual model F normal , Shadow Model F shad , diffuse reflection model F albedo , Specular reflection model F spec And 9-dimensional illumination coefficients are trained to optimize the model parameters and their illumination coefficients, and the optimized illumination coefficients are assigned to w in step 6.5 o .
[0094] In a specific implementation of the present invention, a possible implementation of step eight is as follows:
[0095] Get the current driving speech feature v′ and adjust the new illumination coefficient L′∈R according to the new illumination setting 9, through the process of steps 2 to 6, calculate the final rendered image As the final speech-driven and re-illuminated frame.
[0096] In order to verify the effect of the present invention, the method of the present invention is compared with the NERF-based method. The data set contains 10 speaker videos, each of which is 5 minutes long. The test set contains 10 1-minute speech data and 20 groups of different illumination coefficients.
[0097] Table 1
[0098] method PSNR (Signal to Noise Ratio) SSIM (Structural Similarity Lip sync rate NERF-based methods 25.1 0.892 55% Method of the present invention 37.9 0.989 91%
[0099] As shown in Table 1, it can be seen that the method proposed in the present invention has a very low loss in lip synchronization rate after re-illumination, while the previous methods, such as the NERF-based method, not only have high computational complexity, but also have a large loss in lip synchronization rate after re-illumination.
[0100] In this embodiment, a 2D digital human re-illumination system based on a single-view video is also provided, which is used to implement the above embodiment. The terms "module", "unit", etc. used below can implement a combination of software and / or hardware for a predetermined function. Although the system described in the following embodiments is preferably implemented in software, it is also possible to implement hardware, or a combination of software and hardware.
[0101] This embodiment provides a 2D digital human re-illumination system based on a single-view video, comprising:
[0102] A lip mesh vertex generation module is used to extract the speech features corresponding to each frame of the video template and generate lip mesh vertex data according to the speech features;
[0103] A digital human expression and posture acquisition module, which is used to estimate the expression coefficient and posture coefficient of the digital human using the lip mesh vertex data and voice features;
[0104] The FLAME model module is used to generate normal data of the digital human face through expression coefficients and posture coefficients using the pre-trained FLAME model;
[0105] A new digital human image fusion module is used to convert the generated normal data into the image of the lip-related area, and the lip-irrelevant area directly uses the original digital human image in the video template to fuse the new digital human image;
[0106] The re-lighting module is used to extract the lighting components in the new digital human image, re-render the current video frame based on the lighting components, and obtain the final rendered image as the re-lighting result.
[0107] For the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment, and the implementation methods of the remaining modules will not be repeated here. The system embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present invention. Ordinary technicians in this field can understand and implement it without paying creative work.
[0108] The embodiments of the system of the present invention can be applied to any device with data processing capabilities, and the device with data processing capabilities can be a device or apparatus such as a computer. The system embodiments can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, the corresponding computer program instructions in the non-volatile memory are read into the memory by the processor of any device with data processing capabilities and run.
[0109] An embodiment of the present invention further provides an electronic device, including a memory and a processor;
[0110] The memory is used to store computer programs;
[0111] The processor is used to implement the above-mentioned 2D digital human re-illumination method based on single-view video when executing the computer program.
[0112] From the hardware level, Figure 2 As shown, a hardware structure diagram provided for this embodiment, in addition to the processor, memory, network interface, and non-volatile memory shown in the figure, any device with data processing capabilities where the system in the embodiment is located may also include other hardware, usually based on the actual functions of the device with data processing capabilities, which will not be described in detail.
[0113] An embodiment of the present invention further provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned 2D digital human re-illumination method based on a single-view video is implemented.
[0114] The computer-readable storage medium may be an internal storage unit of any device with data processing capability described in any of the aforementioned embodiments, such as a hard disk or a memory. The computer-readable storage medium may also be an external storage device of any device with data processing capability, such as a plug-in hard disk, a smart media card (SMC), an SD card, a flash card, etc. equipped on the device. Furthermore, the computer-readable storage medium may also include both an internal storage unit and an external storage device of any device with data processing capability. The computer-readable storage medium is used to store the computer program and other programs and data required by any device with data processing capability, and may also be used to temporarily store data that has been output or is to be output.
[0115] Obviously, the above-described embodiments and drawings are only some examples of the present application. For those of ordinary skill in the art, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that, although the work done in this development process may be complicated and lengthy, for those of ordinary skill in the art, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application. Without departing from the concept of the present application, several variations and improvements can also be made, which all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.
Claims
1. A 2D digital human re-illumination method based on single-view video, characterized in that: include: Step 1, obtaining a video template of the digital human's speaking state; Step 2, extracting the speech features corresponding to each frame of the video template, and generating lip mesh vertex data according to the speech features; Step 3, using the lip mesh vertex data and speech features, estimating the expression coefficient and posture coefficient of the digital human; Step 4, using the pre-trained FLAME model, generate the normal data of the digital human face through the expression coefficient and posture coefficient; Step 5: convert the generated normal data into the image of the lip-related area, and directly use the original digital human image in the video template for the lip-irrelevant area, and fuse them to obtain a new digital human image; The step 5 comprises: The normal data generated in step 4 is converted into the actual digital human image I through a local network based on ResNet ′ ; Get digital human image I ′ The lip mask M is used to generate a new digital human image It is expressed as: Among them, F blend represents the fusion network based on ResNet, and I represents the frame image in the original video template; Step 6: Extract the illumination component in the new digital human image, re-render the current video frame based on the illumination component, and obtain the final rendered image as the re-illumination result.
2. The 2D digital human re-illumination method based on single-view video according to claim 1, characterized in that: The step 2 comprises: Extract the speech features corresponding to the current speech through the pre-trained Wav2vec2 model; The speech features are input into the pre-trained VOCA model to extract the 3D mesh vertex data of the lips.
3. The 2D digital human re-illumination method based on single-view video according to claim 1, characterized in that: The step 3 comprises: The lip vertex feature encoder is used to obtain the encoded features FV of the lip mesh vertices. lip ; A speech feature encoder is used to obtain a coding feature FV of the speech feature; The facial expression coefficient estimation network is used to estimate the facial expression coefficient θ and posture coefficient φ corresponding to the speech and lip mesh, expressed as: φ,θ=F exp (FV lip ,FV).
4. The 2D digital human re-illumination method based on single-view video according to claim 3, characterized in that: The lip vertex feature encoder, speech feature encoder, and expression coefficient estimation network adopt a multi-layer fully connected network structure.
5. The 2D digital human re-illumination method based on single-view video according to claim 1, characterized in that: The step 6 comprises: Step 6.1: Use spherical harmonics containing 9-dimensional illumination coefficients to represent the illumination information L; Step 6.2: Using the ResNet-based normal residual model F normal Optimize normal data: Where N represents the optimized normal data, Represents the normal data generated in step 4, Representing a new digital human image; Step 6.3: Use the ResNet-based shadow model F shad To extract the shadow map: S shad =F shad (N,L), where S shad represents a shadow map; Step 6.4: Use the ResNet-based diffuse model F albedo New digital human image Extract the basic color information of the face and generate a diffuse reflection map: Where A represents the diffuse reflection map; Step 6.5: Using the Phong lighting model R spec Calculate the specular component: Among them, R spec is the calculation process of the Phong lighting model, w o is the initial illumination coefficient, that is, the front illumination coefficient; S spec represents the specular reflection component, L(w i ) represents the corresponding i-th illumination coefficient w i Lighting information; Step 6.6: Use the ResNet-based specular reflection model F spec The specular reflection component is refined and the coefficient graph of specular reflection is calculated: Among them C spec Coefficient graph representing specular reflection; Step 6.7: Calculate the final rendered image based on the illumination components consisting of the diffuse map, shadow map, specular reflection coefficient map, and specular reflection component: in Represents the final rendered image.
6. The 2D digital human re-illumination method based on single-view video according to claim 5, characterized in that:The lip vertex feature encoder, speech feature encoder, expression coefficient estimation network, local network, fusion network, normal residual model, shadow model, diffuse reflection model, specular reflection model and 9-dimensional illumination coefficient need to be trained and optimized end-to-end. During the training process, the total loss is the weighted sum of the speech-driven face rendering loss and the illumination loss; the optimized 9-dimensional illumination coefficient replaces the initialized illumination coefficient w o , by adjusting the 9-dimensional illumination coefficient, a new specular reflection component is generated to achieve digital human re-illumination.
7. A 2D digital human re-illumination system based on single-view video, applied to the method of claim 1, characterized in that: include: A lip mesh vertex generation module is used to extract the speech features corresponding to each frame of the video template and generate lip mesh vertex data according to the speech features; A digital human expression and posture acquisition module, which is used to estimate the digital human's expression coefficient and posture coefficient using lip mesh vertex data and voice features; The FLAME model module is used to generate normal data of the digital human face through expression coefficients and posture coefficients using the pre-trained FLAME model; A new digital human image fusion module is used to convert the generated normal data into the image of the lip-related area, and the lip-irrelevant area directly uses the original digital human image in the video template to fuse the new digital human image; The re-lighting module is used to extract the lighting components in the new digital human image, re-render the current video frame based on the lighting components, and obtain the final rendered image as the re-lighting result.
8. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the 2D digital human re-illumination method based on single-view video according to any one of claims 1 to 6.
9. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions, which, when called and executed by a processor, are used to implement the 2D digital human re-illumination method based on single-view video according to any one of claims 1 to 6.
Citation Information
Patent Citations
Speech-driven lip-synchronous face video synthesis algorithm based on concatenated convolution LSTM
CN109308731A
Digital human image generation method and device based on voice driving and storage medium
CN116758189A
Voice-driven face generation model construction method and target person speaking video generation method
CN117237521A
Real-time multi-language processing live broadcast method and system based on deep learning
CN117253486A
