A human face reenactment method based on semantic-aware neural radiance fields
By employing a semantic-aware neural radiation field method, the challenge of capturing non-rigid facial movements and expression changes has been solved, enabling natural and realistic facial reenactment, improving image quality and coherence, and extending to applications such as virtual reality and entertainment.
Patent Information
- Application Number
- CN202311372550.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-23
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-10-23
AI Technical Summary
Existing technologies struggle to accurately capture the non-rigid movements and facial expressions of the human face, resulting in unnatural replays with separation of head and torso movements and insufficient realism.
A semantically perceptive neural radiation field-based approach is adopted. By combining semantically perceptive dynamic ray sampling, hyperspace deformation, and volume rendering modules with expression and pose parameters, a neural radiation field network model is constructed and trained using the backpropagation algorithm to generate realistic human facial images.
It improves the naturalness and coherence of facial reconstruction, enhances the accuracy of capturing expressions and postures, and generates more natural and realistic images, making it suitable for fields such as virtual reality, entertainment, and education.
Smart Images

Figure CN117333604B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of facial reenactment technology, specifically to a method for facial reenactment based on semantic-aware neural radiance fields. The method mainly involves a dynamic neural radiance field method based on semantic awareness, which can effectively represent specific 3D faces and can precisely control the face generation process using expression and pose parameters. Background Technology
[0002] Facial reconstruction holds immense potential in fields such as digital humans, augmented reality, virtual reality, and video editing. However, it remains a highly challenging problem in computer vision and computer graphics. Traditional methods often fail to capture the subtle details and expressive changes of human faces, resulting in generated facial images lacking realism. Currently, facial reconstruction methods have been extensively researched, and numerous schemes have been proposed, broadly categorized into traditional method-based and deep learning-based approaches.
[0003] Traditional methods for facial reconstruction modify or synthesize human faces through steps such as feature point detection, feature extraction, interpolation, image synthesis, and detail processing. These methods offer advantages such as high computational efficiency, strong interpretability, and flexibility, but are limited by feature extraction and interpolation techniques, making them unsuitable for complex tasks like realistic synthesis and detailed feature editing. Furthermore, they require high-quality input data, necessitating significant manual engineering and adjustments. With the rise of deep learning, deep neural networks have become mainstream due to their ability to better handle complex tasks and broader datasets. The core of this approach is leveraging deep neural networks such as Generative Adversarial Networks (GANs) to automatically generate, modify, or synthesize highly realistic facial images. In this process, a generator neural network generates the image, while a discriminator neural network distinguishes the generated image from the real one. Trained on large-scale facial image data, the generator aims to deceive the discriminator, generating images that are as realistic as possible. The advantage of this method lies in the realism of the generated results, often making it difficult to distinguish between the generated and real images. Moreover, it can be applied to multiple fields, including virtual character creation, facial expression editing, special effects production, facial reconstruction, and image resolution enhancement. Compared to traditional methods, deep learning methods reduce the need for manual engineering and adjustments, offering a higher degree of automation. Neural Radiance Fields (NeRF) is an advanced computer graphics technique capable of generating highly realistic 3D scenes. It learns from 2D images using deep learning and generates continuous 3D scene models. The key idea of NeRF is to encode color and density as functions of spatial position and viewpoint using a neural network consisting only of fully connected layers, and to synthesize new views using volume rendering techniques. While NeRF has demonstrated excellent rendering quality in static scenes, challenges remain in reconstructing dynamic scenes. To address this issue, researchers have gradually applied the principles of NeRF to human face replay, introducing the concept of deformable neural radiance fields. This innovation allows us to better capture non-rigidly deformable faces appearing in monocular videos, improving the replay quality of dynamic faces. However, despite significant progress, accurate replay of dynamic faces remains a complex problem requiring further research and innovation. Therefore, our task aims to solve several challenging problems.
[0004] 1) The difficulty of capturing non-rigid facial movements
[0005] Non-rigid motion refers to facial deformation and movement that is influenced not only by muscle contraction but also by the structure of the skin, soft tissue, and bones. Therefore, capturing non-rigid motion and its relationship to facial expressions is a challenging problem.
[0006] 2) Significant differences were observed in head posture, facial expression, and trunk movement.
[0007] While it is easy to bind head pose to camera pose, it is very challenging to accurately model facial expressions and non-rigid motion of the torso using a single model.
[0008] 3) Realism and naturalness
[0009] Creating realistic and natural facial reenactments is a major challenge. People are highly sensitive to facial expressions and movements, so the generated reenactments must accurately capture subtle facial details, including muscle movements, eye blinks, and lip shapes. Summary of the Invention
[0010] This invention provides a method for facial replay based on semantically perceptive neural radiation fields. This method uses expression and pose parameters as inputs to the semantically perceptive neural radiation field, precisely controlling the generation of facial replay images. Experiments on the NeRFace dataset have yielded excellent quantitative and qualitative results.
[0011] A method for facial reenactment based on semantically perceptive neural radiation fields includes the following steps:
[0012] Step (1) Collect task data and preprocess the data to construct a dataset, which includes face images, expression parameters, pose parameters, and face semantic information;
[0013] Step (2) Construct a semantically perceptive neural radiation field network model, which includes a semantically perceptive dynamic light sampling module, a hyperspace deformation module, a semantically perceptive neural radiation field and volume rendering module;
[0014] Step (3) Use the parameters of the semantically aware neural radiation field network model based on the backpropagation algorithm to train until the entire model converges. The parameter training is carried out using the preprocessed dataset while minimizing photometric loss and semantic loss.
[0015] Step (4) Use the semantically aware neural radiation field network model after training to generate the corresponding face image.
[0016] Preferably, in step (1), a face image is input, and the facial expression parameters and head pose parameters of the person are estimated from the face image using a three-dimensional face deformation model; a face parser is used to calculate a face semantic information containing 12 labels.
[0017] The calculated facial expression parameters are 76-dimensional vectors, and the head pose parameters are 4x4 matrices. Additionally, it contains facial semantic information labeled with 12 tags, each tag representing a specific part of the neck, torso, background, and head, such as the cheeks, nose, eyes, and eyebrows.
[0018] Preferably, the semantic-aware dynamic light sampling module uses a dynamic light sampling strategy for uniform sampling, as detailed below:
[0019] The light sampling probability of the image region for the i-th category is as follows:
[0020]
[0021] in, It is the sum of the semantic loss and photometric loss of the i-th semantic category in the previous iteration. Initially, Therefore, the number of light rays that need to be sampled for the image region of the i-th category is:
[0022] N i =p i ·N s
[0023] Where, N s =2048 is the total number of sampled light rays.
[0024] Preferably, the hyperspace deformation module includes two multilayer perceptrons, the first multilayer perceptron having a depth of 6 and a width of 128, and the second multilayer perceptron having a depth of 6 and a width of 64.
[0025] Preferably, in step S2, the displacement of the coordinates in the reference space is obtained through the first multilayer perceptron, and the specific method is as follows:
[0026] Given coordinates in the observation space Expression parameters and head posture information Unified Transformation Function Trained to output displacement Transform the coordinates x in the observation space into coordinates x′ in the reference space, i.e., x′ = x + Δx, as shown in the following expression:
[0027]
[0028] Γ(x)=[sin(2 0 πx),cos(2 0 πx),…,sin(2 L-1 πx),cos(2 L-1 πx)]
[0029] in, For sinusoidal position encoding, L = 10; function The input is a concatenation of Γ(x), head pose p, and facial expression parameter γ, and the output is the displacement Δx that transforms the coordinate x in the observation space to the reference space.
[0030] Preferably, in step S2, the environmental coordinates are obtained through a second multilayer perceptron, and the specific method is as follows:
[0031] For each coordinate x in the observation space, given the facial expression parameter γ and the head pose information p, it is mapped through a hyperspace mapping function. Coordinates mapped to the environment space This point defines the coordinates of the cross-sectional subspace in the hyperspace, and the hyperspace mapping function. The expression is as follows:
[0032]
[0033] The function takes Γ(x) as input, the head pose information p and the expression parameter γ as input, and outputs the coordinates w in the environment space.
[0034] Preferably, the semantic-aware neural radiation field includes a main multilayer perceptron and two branch multilayer perceptrons. The main multilayer perceptron has a depth of 8 and a width of 256. The two branch multilayer perceptrons are the RGB branch and the semantic branch, respectively. The depth of each branch multilayer perceptron is 4 and the width is 128.
[0035] Preferably, in step S2, the RGB values and semantic labels are obtained through the semantic perception neural radiation field, and the specific method is as follows:
[0036] The coordinates x′ in the reference space, the view direction d, and the coordinates w in the environment space are mapped to the pixel color and the distribution of K semantic tags. This is expressed as follows:
[0037]
[0038] Γ(d)=[sin(2 0 πd),cos(2 0 πd),…,sin(2 M-1 πd),cos(2 M-1 πd)]
[0039] Γ(w)=[sin(2 0 πw),cos(2 0 πw),…,sin(2 N-1 πw),cos(2N-1 πw)]
[0040] Where c is the RGB value and s is a semantic tag of length 12; For sinusoidal position coding, M=6; N = 4; It consists of a backbone multilayer perceptron and two branch multilayer perceptrons. The input of the backbone multilayer perceptron is the concatenation of Γ(x′) and Γ(w), and the output is a feature vector β of length 256. The input of the RGB branch is the concatenation of β and Γ(d), and the output is the RGB value c. The input of the semantic branch is β, and the output is the semantic label s.
[0041] Preferably, in step S2, the volume rendering module is used to output the reconstruction result, and the specific method is as follows:
[0042] Let x(t) denote a point along the camera ray r(t) = o + td emitted from the projection center o to pixel v, and the near and far boundaries t on this ray. n and t f The expected color C and semantic value S of pixel v can be represented as:
[0043]
[0044]
[0045] in,
[0046]
[0047]
[0048]
[0049]
[0050] in, The system takes the positional encoding of coordinates in the reference space, the positional encoding of coordinates in the environment space, and the positional encoding of the view direction as inputs, and outputs RGB values, semantic values, and volume density. Then, the semantic values are processed by the softmax activation function to transform them into multi-class probabilities.
[0051] Preferably, the training method for the semantically aware neural radiation field network model is as follows:
[0052] Using photometric loss and semantic loss The combination of these is used for training:
[0053]
[0054]
[0055] in, It is the set of light rays in each batch, C(r), and These are the actual RGB value of ray r, the predicted RGB value of the coarse network volume, and the predicted RGB value of the fine network volume, respectively; p l (r), and Let r represent the actual multi-class semantic probability of ray r, the multi-class semantic probability predicted by the coarse network volume, and the multi-class semantic probability predicted by the fine network volume, respectively.
[0056] Therefore, the total training loss of the model is:
[0057]
[0058] Here, λ is the weight of the semantic loss, used to balance the magnitude of the two losses.
[0059] Beneficial effects of this invention:
[0060] Compared to existing methods, this invention addresses several key issues, improving the quality and coherence of facial replays. First, existing methods often produce unnatural results when processing facial expressions, leading to stiff and distorted replays. However, this invention introduces a semantically aware neural radiation field, which helps to more accurately represent facial expressions, resulting in more natural and fluid replay images. Second, many methods suffer from head and torso separation when generating replay images, leading to uncoordinated movements and postures. This invention uses a unified model to handle head and torso movements, making the movements more coherent and realistic, enhancing the overall effect. Furthermore, this invention utilizes a state-of-the-art 3D facial deformation model to extract facial expression and posture parameters, meaning it can capture subtle changes in facial expressions and postures more naturally. This further improves the accuracy and realism of the generated facial replay images, making them more attractive and believable. The benefits of this invention extend beyond the quality and coherence of replays and can be extended to a wider range of applications, such as virtual reality, the entertainment industry, and education. Attached Figure Description
[0061] Figure 1 This is a flowchart illustrating the method of the present invention.
[0062] Figure 2 This is the semantic-aware neural radiation field network model in the method of this invention.
[0063] Figure 3 This is a schematic diagram of the data set of the present invention. Detailed Implementation
[0064] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0065] This invention provides a method for facial replay based on semantically perceptive neural radiation fields. This method uses expression and pose parameters as inputs to the semantically perceptive neural radiation field, precisely controlling the generation of facial replay images. Experiments on the NeRFace dataset demonstrate excellent quantitative and qualitative results.
[0066] like Figure 1 As shown, a method for facial reenactment based on semantic-aware neural radiation fields comprises the following steps:
[0067] Step (1): Using the existing face dataset, collect task data and preprocess the data to construct a face image, expression parameter, pose parameter, and semantic information data set.
[0068] Step (1) involves collecting task data using existing face datasets. In this embodiment, the face reconstruction method was evaluated on the NeRFace dataset, which contains three different face datasets. Each face dataset was evaluated separately.
[0069] Specifically, the construction of the facial image, expression parameters, pose parameters, and semantic information data set refers to using a state-of-the-art 3D morphable model (3DMM) to estimate the facial expression parameters and head pose parameters from the corresponding facial image data. The calculated expression parameters are a 76-dimensional vector, and the head pose parameters are a 4*4 matrix. Additionally, an advanced face parser is used to calculate facial semantic information containing 12 labels, each label representing a specific part of the neck, torso, background, and head, such as the cheeks, nose, eyes, and eyebrows.
[0070] Step (2): With the goal of generating natural and accurate face images based on the existing face dataset, construct a semantically perceptive neural radiation field network model.
[0071] The method involves constructing a semantically perceptive neural radiation field to generate continuous and realistic reenactment images of human faces.
[0072] Further features of the present invention, such as Figure 2 As shown, the network architecture of a semantically aware neural radiation field model is illustrated. This model consists of a semantically aware dynamic ray sampling module, a hyperspace deformation module, a semantically aware neural radiation field module, and a volume rendering module.
[0073] Specifically, the semantic-aware dynamic light sampling module is implemented as follows:
[0074] In the original NeRF model, a uniform sampling strategy was used when sampling light from an image, meaning all pixels were sampled with equal probability ( Here, W and H represent the width and height of the image, respectively, for sampling. However, the following challenges exist: the human figure in the scene is clearly more important than the background, and among facial features, the mouth is obviously the part that needs more attention. Therefore, it is crucial to make the semantically aware dynamic lighting sampling module focus more on these small but important parts to obtain better results in the final generation.
[0075] Unlike the original NeRF's uniform sampling strategy on the image plane, this embodiment employs a dynamic ray sampling strategy to allow the model to focus more on small but important regions, such as the mouth region. The sampling probabilities for the image region of the i-th category are as follows:
[0076]
[0077] in, It is the sum of the semantic loss and photometric loss of the i-th semantic category in the previous iteration. Initially, Therefore, the number of light rays that need to be sampled for the image region of the i-th category is:
[0078] N i =p i ·N s
[0079] Where, N s =2048 is the total number of sampled light rays.
[0080] The hyperspace deformation module is implemented as follows:
[0081] It is necessary to address the inconsistent motion between different parts of a human image. For the inconsistency in head and facial motion, simply using expression parameters as conditions to implement dynamic NeRF leads to insufficient constraints, resulting in artifacts in the generated image. For the inconsistency in head and torso motion, some techniques use two separate NeRF models to model these two parts, resulting in a separated head and torso in the generated image. To solve these problems, this embodiment uses a hyperspace deformation module to map the coordinates of the observation space to a reference hyperspace to learn more natural facial deformation and head-torso motion. The hyperspace deformation module consists of a unified deformation function and a hyperspace mapping function.
[0082] A unified deformation function is optimized to estimate the deformation field between the scene in the view space and the scene in the reference space. However, when the head pose acts as the camera pose and the rigidity of the head is not considered, facial deformation depends only on facial expression, while torso deformation is affected by both head pose and facial expression (even if the effect is slight). To enable the function to model the non-rigid deformation of the head and torso, this embodiment adopts a direct approach, passing the head pose and expression parameters as input to the function. Formally, given the coordinates in the view space... Expression parameters and head posture Unified Transformation Function Trained to output displacement Transform the coordinate x in the observation space into the coordinate x′ in the reference space, i.e., x′=x+Δx.
[0083]
[0084] Γ(x)=[sin(2 0 πx),cos(2 0 πx),…,sin(2 L-1 πx),cos(2 L-1 (Formula 2)
[0085] in, For sinusoidal position encoding, L = 10; function Designed as a multilayer perceptron (MLP) with a depth of 6 and a width of 128, Γ(x) is used as the residual input in the 4th layer. The function takes Γ(x), head pose p, and facial expression parameter γ as inputs and outputs the displacement Δx that transforms the coordinate x in the observation space to the reference space.
[0086] However, continuous deformation fields cannot adequately represent facial topological deformations, such as blinking, mouth opening and closing, which can lead to artifact generation. To address this, a hyperspace mapping function is used to represent the 5D radiation field of each input image, treating it as a slice in hyperspace. Specifically, similar to a unified deformation function, each viewpoint coordinate x, given the expression parameter γ and head pose p, is mapped through a hyperspace mapping function. Coordinates mapped to the environment space This point defines the coordinates of the cross-sectional subspace within the hyperspace. The function takes the following form:
[0087]
[0088] Among them, the function It is designed as a multilayer perceptron with a depth of 6 and a width of 64, and Γ(x) is used as the residual input in the 4th layer. The input of the function is the concatenation of Γ(x), head pose p, and expression parameter γ, and the output is the coordinate w in the environment space.
[0089] The specific implementation of the semantic-aware neural radiation field module is as follows:
[0090] Research on implicit scene representation shows that objects of similar categories are more likely to have similar shapes and appearances. Using semantic graphs as prior information can help the model process different parts of a portrait differently. This paper enhances the original NeRF by introducing a semantic branch before injecting the viewpoint orientation into the MLP, and proposes a method to formulate semantic segmentation as a function inherently viewpoint invariant. Specifically, the coordinates x′ in the reference space, the viewpoint orientation d, and the coordinates w in the environment space are mapped to the pixel color and the distribution of K semantic labels. This formulation is as follows:
[0091]
[0092] Γ(d)=[sin(2 0 πd),cos(2 0 πd),…,sin(2 M-1 πd),cos(2 M-1 πd)] (Formula 5)
[0093] Γ(w)=[sin(2 0 πw),cos(2 0 πw),…,sin(2 N-1 πw),cos(2 N-1 πw)] (Formula 6)
[0094] Where c is the RGB value and s is a semantic tag of length 12; For sinusoidal position coding, M=6; N = 4; It consists of a backbone multilayer perceptron and two branch multilayer perceptrons. The backbone multilayer perceptron has a depth of 8 and a width of 256, and uses Γ(x′) as the residual input in layer 4. The input of the backbone multilayer perceptron is the concatenation of Γ(x′) and Γ(w), and the output is a feature vector β of length 256. The two branch multilayer perceptrons have a depth of 4 and a width of 128, one for RGB and the other for semantics. The input of the RGB branch is the concatenation of β and Γ(d), and the output is the RGB value c. The input of the semantic branch is β, and the output is the semantic label s.
[0095] The proposed semantic-aware method not only achieves natural segmentation of all parts of the image, but also utilizes predicted semantic information to improve the accuracy and quality of 3D reconstruction.
[0096] The specific implementation of the volume rendering model is as follows:
[0097] The NeRF volumetric rendering equations are adjusted to compute the semantics and color of individual pixels, and a unified deformation function and hyperspace mapping function are considered. Let x(t) represent a point along the camera ray r(t) = o + td emitted from the projection center o to pixel v. Consider the near and far bounds t on this ray. n and t f The expected color C and semantic value S of pixel v can be represented as:
[0098]
[0099]
[0100]
[0101] in,
[0102]
[0103]
[0104]
[0105]
[0106] in, Taking the positional encoding of coordinates in the reference space, the positional encoding of coordinates in the environment space, and the positional encoding of the view direction as inputs, the outputs RGB values, semantic values, and volume density. Subsequently, the semantic values can be processed using a softmax activation function to transform them into multi-class probabilities. In equations (7), (8), and (12), the volume rendering integral can be approximated by numerical integration.
[0107] Step (3) uses the parameters of the semantically aware neural radiation field network model based on the backpropagation algorithm to train until the entire model converges. The parameter training is carried out using the preprocessed dataset while minimizing photometric loss and semantic loss.
[0108] Construct a deep learning framework that minimizes photometric and semantic losses, such as Figure 3 As shown, a semantic-aware neural radiation field network model is trained using the collected dataset. Specifically:
[0109] To ensure the model can generate high-fidelity and 3D consistent face images, photometric and semantic losses were used for training. Similar to NeRF, a hierarchical volume sampling strategy was employed, simultaneously optimizing both the coarse and fine networks. Both networks utilize photometric loss. and semantic loss The combination of these is used for training:
[0110]
[0111]
[0112] in, It is the set of light rays in each batch, C(r), and These are the actual RGB value of ray r, the predicted RGB value of the coarse network volume, and the predicted RGB value of the fine network volume, respectively; p l (r), and Let represent the actual multi-class semantic probability of ray r (at class l), the multi-class semantic probability predicted by the coarse network volume, and the multi-class semantic probability predicted by the fine network volume, respectively. Therefore, the total training loss of the model is:
[0113]
[0114] In this embodiment, λ = 0.02 is the weight of the semantic loss, used to balance the magnitude of the two losses.
[0115] Step (4) Use the semantically aware neural radiation field network model after training to generate the corresponding face image.
[0116] The image to be reconstructed is input into the semantically perceptive neural radiation field network model trained in step (3), and then the corresponding face image is output.
[0117] Based on the technical solution provided in this embodiment, the data in the NeRFace dataset is used to construct a test set through step (1), and then input into the semantically aware neural radiation field network model that has been trained. Based on the output face image, the following quantitative indicators are obtained, as shown in Table 1.
[0118] Table 1 shows the quantitative results of experiments on the NeRFace dataset.
[0119]
[0120] As shown in Table 1, this embodiment quantitatively compares the proposed method with two previous facial reconstruction methods, FOMM and NeRFace, on the NeRFace dataset. It is easy to see from the table that the method in this embodiment shows significant improvements across all evaluation metrics, outperforming the two previous methods.
[0121] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions, and variations can be made to these embodiments, including components, without departing from the principles and spirit of the present invention, and these variations still fall within the protection scope of the present invention.
Claims
1. A method for facial reenactment based on semantically perceptive neural radiation fields, characterized in that, Includes the following steps: Step (1): Collect task data and preprocess the data to construct a dataset, which includes face images, expression parameters, pose parameters, and face semantic information. Step (2): Construct a semantically perceptive neural radiation field network model, which includes a semantically perceptive dynamic light sampling module, a hyperspace deformation module, a semantically perceptive neural radiation field and volume rendering module; The RGB values and semantic labels are obtained through semantically perceptual neural radiation fields, as follows: coordinates in the reference space Viewpoint direction Coordinates in environmental space Color mapped to pixels and The distribution of semantic tags is described as follows: in, RGB values A semantic tag of length 12; For sinusoidal position encoding, ; , ; It consists of a backbone multilayer perceptron and two branch multilayer perceptrons. The input of the backbone multilayer perceptron is... and The concatenation outputs a feature vector of length 256. The input for the RGB branch is and The concatenation outputs RGB values. The input to the semantic branch is The output is semantic tags. ; The volume rendering module is used to output the reconstructed results, and the specific method is as follows: let Indicates along from the projection center Emit to pixel Camera rays A point on the ray, the near and far boundaries of the ray. and , pixels Expected color and semantic value It can be represented as: in, in, Taking the positional codes of the reference spatial coordinates, the environmental spatial coordinates, and the viewpoint direction as inputs, the outputs RGB values, semantic values, and volume density. Subsequently, the semantic values are processed by a softmax activation function to transform them into multi-class probabilities. This refers to the head's pose information. To unify the deformation function, For facial expression parameters, For hyperspace mapping functions; Step (3): Use the backpropagation algorithm to train the parameters of the semantically aware neural radiation field network model until the entire model converges. The parameter training is carried out using the preprocessed dataset while minimizing photometric loss and semantic loss. Step (4): Use the trained semantic-aware neural radiation field network model to generate the corresponding face image.
2. The method for facial replay based on semantic-perceptive neural radiation field according to claim 1, characterized in that, In step (1), a face image is input, and the facial expression parameters and head pose parameters of the person are estimated from the face image using a three-dimensional face deformation model; a face parser is used to calculate a face semantic information containing 12 labels.
3. The method for facial reenactment based on semantic-perceptive neural radiation fields according to claim 1, characterized in that, The semantic-aware dynamic light sampling module uses a dynamic light sampling strategy for uniform sampling, as detailed below: No. The light sampling probabilities for each category of image region are as follows: in, It is the first in the previous iteration The sum of semantic loss and photometric loss for each semantic category, initially, Therefore, the first The number of light rays required to sample each category of image region is: in, It represents the total number of light rays sampled.
4. The method for facial reenactment based on semantic-perceptive neural radiation field according to claim 3, characterized in that, The hyperspace deformation module includes two multilayer perceptrons. The first multilayer perceptron has a depth of 6 and a width of 128, and the second multilayer perceptron has a depth of 6 and a width of 64.
5. The method for facial replay based on semantically perceptive neural radiation fields according to claim 4, characterized in that, In step (2), the displacement of the reference spatial coordinates is obtained through the first multilayer perceptron, and the specific method is as follows: Given coordinates in the observation space Expression parameters and head posture information Unified transformation function Trained to output displacement The coordinates in the observation space Convert to coordinates in reference space ,Right now The expression is as follows: in, For sinusoidal position encoding, ;function The input is Head posture and expression parameters The concatenation outputs the coordinates in the observation space. Displacement converted to reference space .
6. The method for facial replay based on semantic-perceptive neural radiation field according to claim 5, characterized in that, In step (2), the environmental coordinates are obtained through a second multilayer perceptron, and the specific method is as follows: Coordinates in each observation space Given expression parameters and head posture information In this case, through a hyperspace mapping function Coordinates mapped to the environment space This point defines the coordinates of the cross-sectional subspace in the hyperspace, and the hyperspace mapping function. The expression is as follows: The input to this function is Head posture information and expression parameters The concatenation outputs coordinates in the ambient space. .
7. The method for facial replay based on semantically perceptive neural radiation fields according to claim 6, characterized in that, The semantic-aware neural radiation field includes a main multilayer perceptron and two branch multilayer perceptrons. The main multilayer perceptron has a depth of 8 and a width of 256. The two branch multilayer perceptrons are the RGB branch and the semantic branch, respectively. The depth of each branch multilayer perceptron is 4 and the width is 128.
8. The method for facial replay based on semantically perceptive neural radiation fields according to claim 1, characterized in that, The training method for the semantically aware neural radiation field network model is as follows: Using photometric loss and semantic loss Combined training: in, It is the collection of light rays in each batch. , and They are rays The actual RGB values, coarse-network volume predicted RGB values, and fine-network volume predicted RGB values; , and Representing rays respectively The actual multi-class semantic probability, the multi-class semantic probability predicted by the coarse network volume, and the multi-class semantic probability predicted by the fine network volume. Therefore, the total training loss of the model is: in, The weights for semantic loss are used to balance the magnitudes of the two types of loss.
