Video processing method, device and equipment and computer readable storage medium

By using a network structure that supports multiple modes of driving information in the three-dimensional face driving model, the problem of needing to retrain the model in the existing technology is solved, the function of quickly switching between different driving information is realized, and the training cost and time are reduced. .

CN118828107AActive Publication Date: 2024-10-22CHINA MOBILE COMM LTD RES INST +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410023896.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-05
Publication Date
2024-10-22
Estimated Expiration
2044-01-05

AI Technical Summary

Technical Problem

Existing 3D face driving methods only support a single type of driving information. When switching to other types of driving information, the entire reconstructed driving model needs to be retrained, resulting in high training costs and long time-consuming.

Method used

The driving model is used to support multiple modes of driving information based on the first network model and the second network model. By fixing the parameters of the second network model and the basis of the first space, the encoder network corresponding to the target driving information to be switched is separately trained. , to avoid retraining the entire model.

Benefits of technology

The computing cost and time cost of the model training process are reduced, and support for quickly switching between different types of driving information during the facial image driving process is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828107A_ABST
    Figure CN118828107A_ABST
Patent Text Reader

Abstract

The invention discloses a video processing method, device and equipment and a computer readable storage medium. The method comprises the following steps: acquiring original video data and target driving information; inputting the original video data and the target driving information into a pre-trained driving model to obtain target video data; the driving model supports driving information of multiple modes; the target driving information is at least one of the driving information of the multiple modes; wherein the driving model comprises a first network model and a second network model, and the first network model comprises an encoder network and a first space corresponding to the driving information of the multiple modes; in the face image driving process, the parameters of the second network model and the substrate of the first space are fixed, and the parameters of the encoder network are determined from multiple groups of preset parameters based on the type of the target driving information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video service technology, and in particular to a video processing method, device, equipment and computer-readable storage medium. Background Art

[0002] With the continuous development and progress of computer technology, image processing technology based on facial images such as human faces has developed from two-dimensional to three-dimensional. Due to the stronger sense of reality of three-dimensional image processing, it has received widespread attention, and driving three-dimensional faces (abbreviated as face driving) is an important application in the field of three-dimensional image processing.

[0003] However, the face driving method in the related art only supports a single type of driving information, such as text information, voice information, and any type of driving information in the facial three-dimensional deformation statistical model (3DMM, 3D Morphable Face Models) expression coefficient. If switched to other types of driving information, the entire reconstructed driving model needs to be retrained, which has high training costs and is time-consuming. Summary of the invention

[0004] In order to solve the technical problems existing in the related art, the embodiments of the present application provide a video processing method, device, equipment and computer-readable storage medium.

[0005] To achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a video processing method, the method comprising:

[0007] Acquire original video data and target drive information; the original video data includes at least one video frame, each of the video frames includes at least one facial image;

[0008] The original video data and the target driving information are input into a pre-trained driving model to obtain target video data; the target video data is a facial dynamic video image synthesized based on the original video data, the driving model supports driving information of multiple modes; the target driving information is at least one of the driving information of the multiple modes;

[0009] Among them, the driving model includes a first network model and a second network model, the first network model includes an encoder network and a first space corresponding to the driving information of the multiple modalities; during the facial image driving process, the parameters of the second network model and the basis of the first space are fixed, and the parameters of the encoder network are determined from multiple sets of preset parameters based on the type of the target driving information.

[0010] In a second aspect, an embodiment of the present application further provides a video processing device, including:

[0011] An acquisition unit, configured to acquire original video data and target drive information; the original video data includes at least one video frame, each of which includes at least one facial image;

[0012] A generating unit, configured to input the original video data and target driving information into a pre-trained driving model to obtain target video data; the target video data is a facial dynamic video image synthesized based on the original video data, the driving model supports driving information of multiple modes; the target driving information is at least one of the driving information of the multiple modes;

[0013] Among them, the driving model includes a first network model and a second network model, the first network model includes an encoder network and a first space corresponding to the driving information of the multiple modalities; during the facial image driving process, the parameters of the second network model and the basis of the first space are fixed, and the parameters of the encoder network are determined from multiple sets of preset parameters based on the type of the target driving information.

[0014] In a third aspect, an embodiment of the present application further provides a video processing device, including:

[0015] A communication interface, used to obtain raw video data and target drive information; the raw video data includes at least one video frame, each of which includes at least one facial image;

[0016] A processor, configured to input the original video data and target driving information into a pre-trained driving model to obtain target video data; the target video data is a facial dynamic video image synthesized based on the original video data, the driving model supports driving information of multiple modes; the target driving information is at least one of the driving information of the multiple modes;

[0017] Among them, the driving model includes a first network model and a second network model, the first network model includes an encoder network and a first space corresponding to the driving information of the multiple modalities; during the facial image driving process, the parameters of the second network model and the basis of the first space are fixed, and the parameters of the encoder network are determined from multiple sets of preset parameters based on the type of the target driving information.

[0018] In a fourth aspect, an embodiment of the present application further provides a video processing device, comprising: a processor and a memory for storing a computer program that can be run on the processor;

[0019] Wherein, when the processor is used to run the computer program, it executes the steps of the video processing method described in the embodiment of the present application.

[0020] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the video processing method described in the embodiment of the present application are implemented.

[0021] The video processing method, apparatus, device and computer-readable storage medium provided in the embodiments of the present application obtain original video data and target driving information; the original video data includes at least one video frame, each of which includes at least one facial image; the original video data and target driving information are input into a pre-trained driving model to obtain target video data; the target video data is a facial dynamic video image synthesized based on the original video data, and the driving model supports driving information of multiple modes; the target driving information is at least one of the driving information of the multiple modes; wherein the driving model includes a first network model and a second network model, the first network model includes an encoder network and a first space corresponding to the driving information of the multiple modes; during the facial image driving process, the parameters of the second network model and the base of the first space are fixed, and the parameters of the encoder network are determined from multiple preset groups of parameters based on the type of the target driving information. By adopting the method of the embodiment of the present application, the driving model supports driving information of multiple modes based on the first network model and the second network model, so as to synthesize facial dynamic video images. In the process of facial image driving, when it is necessary to switch to other types of target driving information, it is only necessary to fix the parameters of the second network model in the driving model and the basis of the first space, and train an encoder network corresponding to the target driving information to be switched separately. The parameters of the encoder network are determined from multiple sets of preset parameters based on the type of target driving information to be switched, without the need to retrain the entire reconstructed driving model, which effectively reduces the computational cost and time cost of the model training process. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 The video processing method of the present invention is shown in FIG. Figure 1 ;

[0023] Figure 2 The video processing method of the present invention is shown in FIG. Figure 2 ;

[0024] Figure 3 The video processing method of the present invention is shown in FIG. Figure 3 ;

[0025] Figure 4The video processing method of the present invention is shown in FIG. Figure 4 ;

[0026] Figure 5 A schematic diagram of the structure of a video processing device according to an embodiment of the present application;

[0027] Figure 6 Schematic diagram of the hardware structure of the video processing device according to the embodiment of the present application. DETAILED DESCRIPTION

[0028] The present application will be further described in detail below with reference to the accompanying drawings and embodiments.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0030] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0031] Multimodal information 3D face driving refers to the technology of reconstructing multi-perspective and consistent 3D face shape and texture based on monocular dynamic face video, and then displaying face image, voice, expression coefficient and other information in monocular red, green and blue (RGB, Red GREEN BLUE) color mode to guide the 3D face model to perform corresponding deformation, present corresponding expressions and lip shapes, and finally render and synthesize to obtain dynamic face video.

[0032] In the related art, the method of driving a three-dimensional face can be divided into an explicit modeling driving method and an implicit modeling driving method according to different modeling methods. The following describes these two types of driving methods respectively.

[0033] The driving methods of explicit modeling include blend shape driving method, bone driving method, and text / speech driving method. Explicit modeling refers to a modeling method that obtains a 3D face mesh model and the texture value of each vertex by restoring the depth information of the 3D face.

[0034] Among them, the hybrid deformation driving method is usually used to drive the explicit three-dimensional face model reconstructed based on the 3DMM expression coefficient. The face deformation caused by facial expression is represented as a linear combination of a series of expression bases (expression elements), and the 3DMM expression coefficient is used as the driving information to solve the three-dimensional coordinates of the vertices of the deformed face model. However, this method simplifies facial expressions into low-dimensional linear expressions, and has limited ability to express personalized and complex expressions.

[0035] The skeletal driving method requires the reconstructed explicit 3D model to be skeletally bound in advance, that is, to calibrate the 3D key points of the face deformation and the motion dependencies and constraints between each 3D key point. When driving the 3D face, it is necessary to detect the 3D key points of the driver's face from the monocular image frame, align the corresponding key points of the model with them, and then use the skinning algorithm to calculate the 3D coordinates of the vertices of the deformed face model. However, this method requires high accuracy in the detection of the 3D key points of the driver's face. Inaccurate key point detection may cause jitter or even distorted expression, and the skeletal binding process requires manual intervention.

[0036] The text / speech driven method is a method that uses text / speech as face driving information to drive the 3D face. In this method, it is generally necessary to extract speech features and use deep learning methods to learn the mapping relationship from phonemes to face deformation:

[0037] 1) Text / speech feature-3DMM expression coefficient mapping: This method usually trains a neural network model to learn the mapping between phonemes and 3DMM expression coefficients of each frame, and uses the above-mentioned hybrid deformation-driven method to obtain the final deformed face model.

[0038] 2) Text / speech feature-facial key point mapping: This method inputs the phoneme features and the coordinates of the facial key points detected in the video frame corresponding to the phoneme into the neural network, learns the deformed facial key point coordinates corresponding to the phoneme, and then uses a skeleton-driven approach to obtain the deformed face model.

[0039] It can be seen that the above-mentioned text / speech driven method based on 3DMM expression coefficient and skeleton drive requires additional training of a mapping network from phonemes to face deformation, which increases the computational cost and affects the driving reasoning speed.

[0040] Obviously, the above-mentioned explicit modeling driving methods all have certain defects and cannot support multimodal information of images, voices, and 3DMM expression coefficients. For this reason, an implicit modeling driving method is proposed.

[0041] The implicit modeling in the driving method of implicit modeling refers to the use of models such as neural radiance field (NeRF) or 3D generative adversarial network (3D GAN) to learn facial features of different perspectives and expressions from monocular portrait videos, and encode dynamic three-dimensional faces into continuous volumetric radiation fields of color and density.

[0042] When implementing the implicit modeling driving method, given a certain viewing angle, the driving information (speech features or 3DMM expression coefficients) is used as a conditional input, and a neural rendering method is used to generate images under the current viewing angle and speech or expression conditions; that is, this method is an implicit reconstruction-driving method with driving information as a conditional input. However, this method only supports a single type of driving information. If the type of conditional input needs to be changed, that is, if other types of driving information need to be supported, the network framework of the entire reconstructed driving model needs to be retrained, which is costly and time-consuming.

[0043] Based on this, an embodiment of the present application proposes a video processing method. In various embodiments of the present application, the driving model supports driving information of multiple modalities based on the first network model and the second network model, so as to synthesize facial dynamic video images. In the process of facial image driving, when it is necessary to switch to other types of target driving information, it is only necessary to fix the parameters of the second network model in the driving model and the basis of the first space, and train an encoder network corresponding to the target driving information to be switched separately. The parameters of the encoder network are determined from multiple sets of preset parameters based on the type of target driving information to be switched, without the need to retrain the entire reconstructed driving model, which effectively reduces the computational cost and time cost of the model training process.

[0044] The embodiment of the present application provides a video processing method, which is applied to a video processing device. Figure 1 The video processing method of the present invention is shown in FIG. Figure 1 ;like Figure 1 As shown, the video processing method includes:

[0045] Step 101: Acquire original video data and target drive information.

[0046] In an embodiment of the present application, the original video data includes at least one video frame, each of which includes at least one facial image. Wherein, at least one video frame in the original video data is a video frame of a facial image of the same object, i.e., the same user, such as a face, and each video frame is continuous in time.

[0047] In actual application, the target driving information is associated with the original video data, so the video processing device can determine the target driving information based on the acquired original video data.

[0048] Based on this, in one embodiment, the step of obtaining target driving information includes:

[0049] The original video data is preprocessed to obtain the target driving information.

[0050] In an embodiment of the present application, the target driving information includes at least one of the following: image frame; speech feature; 3DMM expression coefficient.

[0051] Here, after acquiring the original video data, the video processing device extracts features from the original video data to obtain image frames and continuous speech signals, and then preprocesses the image frames to obtain the 3DMM expression coefficients of the face, and preprocesses the continuous speech signals to obtain speech features.

[0052] The process of determining the 3DMM expression coefficient is described below.

[0053] In practical applications, for each image frame, the camera intrinsic matrix and camera extrinsic matrix are first estimated, and then the camera intrinsic matrix and camera extrinsic matrix are flattened to obtain a multi-dimensional vector. Finally, the vector is processed by minimizing the reprojection error of the face key points to obtain the 3DMM expression coefficient. The image frame can be represented as X t , that is, the tth frame image in the input original video data; the multi-dimensional vector can be expressed as p t , the 3DMM expression coefficient can be expressed as β t , t represents the image frame number of a certain frame.

[0054] It should be noted that the camera intrinsic parameter matrix can be expressed as a 3*3 upper triangular matrix, which mainly describes the camera focal length (f x , f y )、camera center(c x , c y ) attribute, where the camera intrinsic parameter matrix can be expressed as a matrix in the following form:

[0055]

[0056] The camera extrinsic matrix can be expressed as a 4*4 matrix, which describes a series of rotation and translation operations. Each camera extrinsic matrix includes a rotation matrix R and a translation vector t=-RC. Among them, the row of the 3*3 rotation matrix R describes the representation of the camera coordinate system in the world coordinate system, and the vector C is the camera center represented by the world coordinate system. The camera extrinsic matrix can be expressed as a matrix in the following form:

[0057]

[0058] It should be noted that the camera extrinsic matrix describes how to transform a point in the world coordinate system to the camera coordinate system. The vector t represents the position of the origin of the world coordinate system in the camera coordinate system; r ij represents the element in the i-th row and j-th column of the rotation matrix R; t krepresents the kth element of the translation vector t.

[0059] In an embodiment of the present application, a 3*3 camera intrinsic parameter matrix and a 4*4 camera extrinsic parameter matrix can be obtained through camera calibration or camera parameter estimation methods in related technologies, and after determining the camera intrinsic parameter matrix and the camera extrinsic parameter matrix, the two matrices are flattened and spliced ​​into a 25-dimensional vector.

[0060] It should be noted that the "method for minimizing the reprojection error of facial key points" mentioned above is only an exemplary method for estimating the corresponding 3DMM expression coefficient from the input face image frame. Of course, the 3DMM expression coefficient can also be estimated by using a deep learning method. The embodiment of the present application does not make any limitation on the method for determining the 3DMM expression coefficient.

[0061] Among them, the obtained vector is processed by minimizing the reprojection error method of facial key points, and the specific process of obtaining the 3DMM expression coefficient is as follows: first, initialize the three-dimensional face model; detect the position of the 2D key points of the face in the original image frame; then project the three-dimensional face model from 3D to 2D and obtain the corresponding key point positions; compare the original input 2D key points with the key points projected onto 2D by the three-dimensional face model, and continuously optimize the 3DMM expression coefficient of the three-dimensional face model to narrow the gap between the two, so as to obtain a more accurate fitting result of the face shape and expression coefficient.

[0062] The following is an explanation of the process of determining speech features. Specifically, an automatic speech recognition (ASR) model is used to extract speech features from continuous speech signals using a sliding window of length W. The dimension of the speech feature is D, and the extracted speech feature can be expressed as δ∈R W×D Therefore, the entire input raw video data can be represented as {X t , β t , p t , δ} t=1,...,T .

[0063] Step 102: Input the original video data and target driving information into a pre-trained driving model to obtain target video data.

[0064] In an embodiment of the present application, the target video data is a facial dynamic video image synthesized based on the original video data, and the driving model supports driving information of multiple modalities; the target driving information is at least one of the driving information of the multiple modalities; wherein the driving model includes a first network model and a second network model, and the first network model includes an encoder network and a first space corresponding to the driving information of the multiple modalities; during the facial image driving process, the parameters of the second network model and the basis of the first space are fixed, and the parameters of the encoder network are determined from multiple sets of preset parameters based on the type of the target driving information.

[0065] Here, the driving model supports driving information of multiple modes, for example, the driving model can support at least one of the driving information such as image frames, speech features, 3DMM expression coefficients, etc. The encoder network in the first network model of the driving model corresponds to multiple sets of parameters, that is, the first network model includes multiple types of encoder networks, each encoder network corresponds to a type of driving information, and the target driving information is at least one of the driving information of multiple modes, wherein the mapping relationship between the type of target driving information and the parameters of the encoder network can be pre-stored in the video processing device, so that when switching to the target driving information, the parameters of the encoder network corresponding to the target driving information can be found from the preset multiple sets of parameters.

[0066] Based on this, in one embodiment, the inputting the original video data and the target driving information into a pre-trained driving model to obtain the target video data includes:

[0067] Determining a target parameter based on a mapping relationship between the type of drive information and a parameter of an encoder network; the target parameter represents a parameter selected from a plurality of groups of parameters of the encoder network and having a mapping relationship with the type of the target drive information;

[0068] The target video data is generated based on the target parameters and the driving model.

[0069] The process of generating target video data is described in detail below.

[0070] In actual application, in one embodiment, generating the target video data based on the target parameter and the driving model includes:

[0071] Inputting the target drive information and target voxel features into an encoder network corresponding to the target parameters to obtain corresponding target projection coefficients;

[0072] Based on the target projection coefficient, determining a target projection feature;

[0073] The target video data is generated based on the target projection features and the second network model.

[0074] Here, different types of target drive information correspond to a target projection coefficient respectively, and therefore, different target projection coefficients need to be determined for different types of target drive information. That is, for each type of target drive information, the corresponding type of target drive information and target voxel features are used as conditional information and input into the encoder network corresponding to the target parameter to obtain the corresponding type of target projection coefficient output by the encoder network; wherein the parameters of the encoder network match the type of target drive information.

[0075] In actual application, the video processing device needs to determine the target voxel characteristics before determining the target projection coefficient.

[0076] Based on this, in one embodiment, before inputting the target drive information and the target voxel features into the encoder network corresponding to the target parameters to obtain the corresponding target projection coefficients, the method further includes:

[0077] Determining feature sampling points in a second space; the second space represents a three-dimensional facial image space;

[0078] The pre-constructed three-dimensional spatial feature grid is used to query the voxel feature corresponding to the feature sampling point, and the queried voxel feature is determined as the target voxel feature.

[0079] In one embodiment, the querying of voxel features corresponding to the feature sampling points using a pre-constructed three-dimensional spatial feature grid includes:

[0080] Encoding the facial image spatial features using the three-dimensional spatial feature grid to obtain a corresponding hash table; the facial image spatial features include at least two feature sampling points, and the hash table stores a mapping relationship between the feature sampling points and the voxel features;

[0081] The hash table is used to query voxel features that have a mapping relationship with the feature sampling points.

[0082] Here, determining the feature sampling points in the second space is specifically determining the feature sampling points in the three-dimensional facial image, such as the face space, and the feature sampling points are three-dimensional space points. Specifically, for each image frame, the camera posture, such as the camera angle of view, is estimated by the posture estimation module, and then a ray is emitted to the three-dimensional facial image space based on the estimated camera angle of view, and the three-dimensional space points on the ray are sampled to obtain the corresponding feature sampling points. Since a three-dimensional space feature grid is established in advance, the face space features are encoded by the three-dimensional space feature grid to obtain a hash table, which stores the mapping relationship between the feature sampling points and the voxel features. In this way, by querying the hash table, the voxel features having a mapping relationship with the feature sampling points can be quickly obtained.

[0083] Exemplarily, a trilinear interpolation method may be used to query the hash table to obtain the voxel features corresponding to the feature sampling points, that is, the target voxel features. It should be noted that the trilinear interpolation method is not limited in the present embodiment.

[0084] In actual application, the video processing device needs to use the projection coefficient to realize the projection operation of the driving information to the first space, that is, to project the driving information represented by the image frame, speech features, and 3DMM expression coefficients onto a learnable orthogonal low-dimensional implicit space.

[0085] Based on this, in one embodiment, determining the target projection feature based on the target projection coefficient includes:

[0086] Using the target projection coefficient, projecting the target driving information into the first space to obtain the target projection feature;

[0087] The first space refers to a low-dimensional implicit space including at least two mutually orthogonal bases.

[0088] Here, the target projection feature represents a projection feature of the target driving information on the first space.

[0089] In actual application, after obtaining the target projection coefficients corresponding to various types of target driving information, the video processing device may determine the target projection features based on the corresponding target projection coefficients.

[0090] Based on this, in one embodiment, determining the target projection feature based on the target projection coefficient includes:

[0091] The target projection feature is obtained by performing a product operation on the target projection parameter and at least two mutually orthogonal bases included in the first space.

[0092] For example, under the currently set viewing angle and position, the target projection feature of the target driving information in the first space, i.e., the low-dimensional implicit space, can be calculated by the following formula (1):

[0093]

[0094] Where ω represents the target projection feature of the target driving information in the first space; α i represents the i-th target projection coefficient (or target projection parameter) in the target projection coefficient matrix α, and the target projection coefficient matrix is ​​expressed as α={α1, α2, ..., α k}; k represents the total number of target projection coefficients in the target projection coefficient matrix, b i The i-th basis in the basis matrix B of the first space can be expressed as B = {b i} i=1,..,k The basis in the basis matrix here has a corresponding relationship with the target driving information.

[0095] In one embodiment, generating the target video data based on the target projection feature and the second network model includes:

[0096] Inputting the target projection features into the second network model to obtain feature parameters at the prediction sampling points;

[0097] The characteristic parameters at the predicted sampling points are rendered to obtain the target video data.

[0098] In an embodiment of the present application, the second network model may be a neural network model, such as a face modeling model based on NeRF.

[0099] Here, the second network model includes a first perceptron network and a second perceptron network, and the characteristic parameters include at least one of the following: density value; color value; wherein the first perceptron network is used to predict the density value at the prediction sampling point, and the second perceptron network is used to predict the color value at the prediction sampling point.

[0100] Taking the second network model as a NeRF-based face modeling model as an example, the second network model includes a first perceptron network and a second perceptron network, specifically, a first multilayer perceptron (MLP) network and a second MLP network, wherein the first MLP network represents a density prediction MLP network, and the second MLP network represents a texture prediction MLP network. Specifically, after obtaining the target projection features and the target voxel features, the video processing device inputs the target projection features and the target voxel features into the NeRF-based face modeling model, and sequentially passes through the density prediction MLP network and the texture prediction MLP network in the NeRF-based face modeling model, thereby obtaining the density value at the predicted sampling point output by the density prediction MLP network, and the color value at the predicted sampling point output by the texture prediction MLP network, and then neural rendering is performed on the density value at the predicted sampling point and the color value at the predicted sampling point to obtain a dynamic face reconstruction / driving result video, i.e., the target video data.

[0101] It should be noted that NeRF is a deep learning model for three-dimensional implicit space modeling. This deep learning model is also called a fully connected neural network model (or multi-layer perceptron). The task that NeRF is to perform is NovelView Synthesis, which is generally translated as a new perspective synthesis task. The definition is: a series of captures of the scene under a known perspective (including the captured images, and the internal and external parameters corresponding to each image), without the need for an intermediate three-dimensional reconstruction process, and synthesizing images under a new perspective based only on the pose internal parameters and the image. Under the NeRF-based representation method, the three-dimensional space is represented as a set of learnable and continuous radiation fields. Given a camera posture, the three-dimensional space points on the ray where the perspective is located are sampled, and the geometric and texture information at the perspective and three-dimensional points are learned in combination with the groundtruth image to obtain the three-dimensional shape density and color value.

[0102] The embodiment of the present application also provides another video processing method, which is applied to a video processing device. Figure 2 The video processing method of the present invention is shown in FIG. Figure 2 ;like Figure 2 As shown, the video processing method includes:

[0103] Step 201: Acquire original video data and target drive information.

[0104] In an embodiment of the present application, the original video data includes at least one video frame, and each of the video frames contains at least one facial image.

[0105] In one embodiment, the acquiring target driving information includes:

[0106] The original video data is preprocessed to obtain the target driving information.

[0107] Step 202: Determine target parameters based on a mapping relationship between the type of drive information and the parameters of the encoder network.

[0108] In the embodiment of the present application, the target parameter represents a parameter selected from multiple groups of parameters of the encoder network and having a mapping relationship with the type of the target drive information.

[0109] Step 203: Generate target video data based on the target parameters and the driving model.

[0110] In an embodiment of the present application, the target video data is a facial dynamic video image synthesized based on the original video data, the driving model supports driving information of multiple modes; the target driving information is at least one of the driving information of the multiple modes;

[0111] Among them, the driving model includes a first network model and a second network model, the first network model includes an encoder network and a first space corresponding to the driving information of the multiple modalities; during the facial image driving process, the parameters of the second network model and the basis of the first space are fixed, and the parameters of the encoder network are determined from multiple sets of preset parameters based on the type of the target driving information.

[0112] The embodiment of the present application also provides another video processing method, which is applied to a video processing device. Figure 3 The video processing method of the present invention is shown in FIG. Figure 3 ;like Figure 3 As shown, the video processing method includes:

[0113] Step 301: Obtain original video data.

[0114] In an embodiment of the present application, the original video data includes at least one video frame, and each of the video frames contains at least one facial image.

[0115] Step 302: pre-process the original video data to obtain target drive information.

[0116] Step 303: Determine target parameters based on the mapping relationship between the type of drive information and the parameters of the encoder network.

[0117] In the embodiment of the present application, the target parameter represents a parameter selected from multiple groups of parameters of the encoder network and having a mapping relationship with the type of the target drive information.

[0118] Step 304: Input the target drive information and target voxel features into an encoder network corresponding to the target parameters to obtain corresponding target projection coefficients.

[0119] Step 305: Determine target projection characteristics based on the target projection coefficients.

[0120] In one embodiment, determining the target projection feature based on the target projection coefficient includes:

[0121] Using the target projection coefficient, projecting the target driving information into the first space to obtain the target projection feature;

[0122] The first space refers to a low-dimensional implicit space including at least two mutually orthogonal bases.

[0123] In another embodiment, determining the target projection feature based on the target projection coefficient includes:

[0124] The target projection feature is obtained by performing a product operation on the target projection parameter and at least two mutually orthogonal bases included in the first space.

[0125] Step 306: Generate target video data based on the target projection features and the second network model.

[0126] In an embodiment of the present application, the target video data is a facial dynamic video image synthesized based on the original video data, and the driving model supports driving information of multiple modalities; the target driving information is at least one of the driving information of the multiple modalities; wherein the driving model includes a first network model and a second network model, and the first network model includes an encoder network and a first space corresponding to the driving information of the multiple modalities; during the facial image driving process, the parameters of the second network model and the basis of the first space are fixed, and the parameters of the encoder network are determined from multiple sets of preset parameters based on the type of the target driving information.

[0127] In one embodiment, generating target video data based on the target projection feature and the second network model includes:

[0128] Inputting the target projection features into the second network model to obtain feature parameters at the prediction sampling points;

[0129] The characteristic parameters at the predicted sampling points are rendered to obtain the target video data.

[0130] In an embodiment of the present application, the second network model includes a first perceptron network and a second perceptron network, and the characteristic parameter includes at least one of the following: density value; color value; wherein,

[0131] The first perceptron network is used to predict the density value at the prediction sampling point, and the second perceptron network is used to predict the color value at the prediction sampling point.

[0132] It should be noted that the specific process of the video processing device completing the video processing has been described in detail above and will not be repeated here.

[0133] By adopting the technical solution of the embodiment of the present application, the driving model supports driving information of multiple modes based on the first network model and the second network model, so as to synthesize facial dynamic video images. In the process of facial image driving, when it is necessary to switch to other types of target driving information, it is only necessary to fix the parameters of the second network model in the driving model and the basis of the first space, and train an encoder network corresponding to the target driving information to be switched separately. The parameters of the encoder network are determined from multiple sets of preset parameters based on the type of target driving information to be switched, without the need to retrain the entire reconstructed driving model, which effectively reduces the computational cost and time cost of the model training process.

[0134] The present application is described below in conjunction with application examples.

[0135] Figure 4 The video processing method of the present invention is shown in FIG. Figure 4 ,like Figure 4 As shown, the present application proposes a 3D face driving architecture based on low-dimensional implicit space projection and NeRF, which can simultaneously support multi-modal information of images, voices, and 3DMM expression coefficients. The architecture mainly includes a pre-processing stage, a training stage, and a multi-modal information unified driving stage. The following describes the 3D face driving scheme of the present application in detail starting from these stages.

[0136] 1. Preprocessing stage

[0137] The present application is to train a drivable three-dimensional portrait. Therefore, in the preprocessing stage, what is input into the three-dimensional face driving architecture (corresponding to the aforementioned pre-trained driving model) is raw video data of a person speaking (wherein each video frame in the raw video data contains at least one facial image, such as a face). Then, feature extraction is performed on the input raw video data to obtain image frames and continuous speech signals, and preprocessing operations are performed on the image frames and continuous speech signals to obtain the corresponding 3DMM expression coefficients and speech features of the face.

[0138] It should be noted that the specific processing process for preprocessing the image frames and continuous speech signals to obtain the 3DMM expression coefficients of the face and the speech features has been described in detail above and will not be repeated here.

[0139] 2. Training Phase

[0140] For a certain image frame t, the camera pose, such as the camera view angle, is first estimated by the pose estimation module, and then based on the known camera pose (camera view angle) p t , emit a ray into a three-dimensional space, such as a three-dimensional face space (corresponding to the three-dimensional facial image space mentioned above), and sample the three-dimensional space point x on the ray, that is, collect the feature sampling point. By establishing a three-dimensional spatial feature grid The facial spatial features are encoded in the form of a hash table, that is, the hash table stores the mapping relationship between sampling points and voxel features. The hash table is queried using the trilinear interpolation method to obtain the voxel feature f (corresponding to the aforementioned target voxel feature) of the three-dimensional spatial point x.

[0141] In order to realize the unified driving framework of multimodal information, a personalized learnable low-dimensional latent space S is first constructed for individuals. B , that is, the first space mentioned above, which consists of a set of k mutually orthogonal bases B = {b i} i=1,..,k Indicates that the basis can be an optimizable parameter during the network training process. In the training phase, the original video data and driving information are used as conditional information. The driving information and voxel features f are input into the visual encoder network. The output of the visual encoder network is the projection coefficient α = {α1, α2, ..., α k}, therefore, under the current viewing angle and position, the projection of the dynamic information of the face on the low-dimensional implicit space (i.e., the projection feature) can be expressed as the above formula (1), which will not be repeated here. Finally, the projection feature ω and the voxel feature f are input into the NeRF model (corresponding to the aforementioned second network model). The NeRF model consists of two multi-layer perceptron networks (MLP), namely, a first MLP network and a second MLP network, which are used to predict the density value σ and the color value c at the sampling point, respectively, and then the three-dimensional face is rendered by a differential renderer to obtain a rendered three-dimensional face image (corresponding to the aforementioned target video data). Compared with the corresponding input video frame, the target loss function is established by pixel-by-pixel color value loss, face key point loss, etc. to train the entire network framework.

[0142] Here, the pixel-by-pixel color value loss measures the sum of the differences between all input training video frames and the corresponding frames reconstructed and rendered by the NeRF model. The pixel-by-pixel color value loss can be expressed by the following formula (2):

[0143]

[0144] Among them, T represents the total number of frames, and D represents the calculation of the input image frame X t and the corresponding rendered frame The mean square error (MSE) between pixels, Represents X t The pixel value of the i-th pixel, express The pixel value of the i-th pixel. Among them, It can be expressed by the following formula (3):

[0145]

[0146] Here, the face key point loss measures the sum of the differences between the 2D face key point coordinates of all input training video frames and the 2D face key point coordinates of the corresponding frames reconstructed and rendered by the NeRF model. The face key point loss can be expressed by the following formula (4):

[0147]

[0148] Where D represents the calculation of the input image frame X t The set of 2D face key points detected on t and the corresponding rendered frame The set of 2D face key points detected on The mean square error between Represents X t The coordinates of the i-th key point, express The coordinates of the i-th key point. Among them, It can be expressed by the following formula (5):

[0149]

[0150] In addition, in the process of calculating the target loss function, the learned perceptual image patch similarity (LPIPS), also known as perceptual loss, is also considered to measure the difference between two images. Therefore, the target loss function L can be expressed by the following formula (6):

[0151] L=λ color L color +λ ldmk L ldmk +λ LPIPS L LPIPS (6)

[0152] Among them, λ represents the adjustable coefficient of each loss term, λ color An adjustable coefficient representing the pixel-by-pixel color value loss, L color represents the pixel-by-pixel color value loss, λ ldmk Represents the adjustable coefficient of face key point loss, L ldmk represents the loss of facial key points, λ LPIPS represents the adjustable coefficient of perceptual loss, L LPIPS Indicates perceived loss.

[0153] It should be noted that the determination of the target loss function L is not limited to the above formula (6), and of course, other loss terms may also be included.

[0154] It can be seen that by projecting the driving information into an orthogonal low-dimensional implicit space (corresponding to the first space mentioned above), the present application can obtain good semantic information understanding, information disentanglement capability and generalization performance, thereby achieving high-quality dynamic face synthesis. The visual encoder network can be directly applied to images outside the training set to extract dynamic facial features for expression driving.

[0155] 3. Multimodal Information Unified Driving Stage

[0156] The model obtained through the above training process can use image frames as driving information to synthesize dynamic face images. If you need to make the trained 3D face model support the driving of multimodal information such as voice and 3DMM expression coefficients, there is no need to retrain the entire driving model. You only need to fix the basis of the low-dimensional implicit space and the parameters of the MLP network, and train an encoder network corresponding to the driving information separately, which can effectively reduce the training calculation and time overhead.

[0157] For speech input, the speech feature fragment and voxel feature corresponding to a certain frame are input into the speech encoder network, and the speech projection coefficient α output by the speech encoder network is obtained. audio ; For 3DMM expression coefficient input, the β corresponding to a certain frame t And voxel feature f is input into the expression encoder network, and the expression projection coefficient α output by the expression encoder network is obtained 3dmm Through these two projection coefficients, the speech / 3DMM expression coefficients are projected into an orthogonal low-dimensional implicit space, so that the three-dimensional face model supports speech / 3DMM coefficient drive and synthesizes the corresponding lip shape and expression.

[0158] The present application proposes a three-dimensional face driving method based on a learnable low-dimensional implicit space projection with multimodal information. The method projects the driving information represented by the image / speech / 3DMM expression coefficients into an orthogonal low-dimensional implicit space, so that the three-dimensional face model supports the driving of the image / speech / 3DMM expression coefficients and synthesizes the corresponding lip shape and expression. It can be seen that the three-dimensional face driving method based on a learnable low-dimensional implicit space projection with multimodal information proposed in the present application can simultaneously support multimodal driving information of images, speech, and 3DMM expression coefficients. When it is necessary to increase support for a certain type of driving information, it is only necessary to train the parameters of the encoder network corresponding to the type of the target driving information, without the need to retrain the entire driving model, effectively reducing the computational cost and time cost of the training process.

[0159] In order to implement the video processing method of the embodiment of the present application, the embodiment of the present application also provides a video processing device, Figure 5 FIG. 1 is a schematic diagram of the composition structure of the video processing device according to an embodiment of the present application. Figure 5 As shown, the video processing device includes:

[0160] The acquisition unit 51 is used to acquire original video data and target driving information; the original video data includes at least one video frame, and each of the video frames includes at least one facial image;

[0161] A generating unit 52 is used to input the original video data and the target driving information into a pre-trained driving model to obtain target video data; the target video data is a facial dynamic video image synthesized based on the original video data, the driving model supports driving information of multiple modes; the target driving information is at least one of the driving information of the multiple modes;

[0162] Among them, the driving model includes a first network model and a second network model, the first network model includes an encoder network and a first space corresponding to the driving information of the multiple modalities; during the facial image driving process, the parameters of the second network model and the basis of the first space are fixed, and the parameters of the encoder network are determined from multiple sets of preset parameters based on the type of the target driving information.

[0163] In one embodiment, the acquisition unit 51 is specifically configured to:

[0164] The original video data is preprocessed to obtain the target driving information.

[0165] In one embodiment, the generating unit 52 includes: a first determining unit and a second determining unit; wherein,

[0166] The first determination unit is used to determine the target parameter based on the mapping relationship between the type of drive information and the parameter of the encoder network; the target parameter represents a parameter selected from the multiple groups of parameters of the encoder network and having a mapping relationship with the type of the target drive information;

[0167] The second determination unit is used to generate the target video data based on the target parameter and the driving model.

[0168] In one embodiment, the second determining unit includes: a first determining subunit, a second determining subunit and a third determining subunit; wherein,

[0169] The first determination subunit is used to input the target drive information and the target voxel feature into the encoder network corresponding to the target parameter to obtain the corresponding target projection coefficient;

[0170] The second determining subunit is used to determine a target projection feature based on the target projection coefficient;

[0171] The third determination subunit is used to generate the target video data based on the target projection features and the second network model.

[0172] In one embodiment, the second determining subunit is specifically configured to:

[0173] Using the target projection coefficient, projecting the target driving information into the first space to obtain the target projection feature;

[0174] The first space refers to a low-dimensional implicit space including at least two mutually orthogonal bases.

[0175] In another embodiment, the second determining subunit is further specifically configured to:

[0176] The target projection feature is obtained by performing a product operation on the target projection parameter and at least two mutually orthogonal bases included in the first space.

[0177] In one embodiment, the third determining subunit is specifically configured to:

[0178] Inputting the target projection features into the second network model to obtain feature parameters at the prediction sampling points;

[0179] The characteristic parameters at the predicted sampling points are rendered to obtain the target video data.

[0180] Here, the second network model includes a first perceptron network and a second perceptron network, and the characteristic parameter includes at least one of the following: density value; color value; wherein,

[0181] The first perceptron network is used to predict the density value at the prediction sampling point, and the second perceptron network is used to predict the color value at the prediction sampling point.

[0182] In one embodiment, the second determining unit further includes: a fourth determining subunit and a querying subunit; wherein,

[0183] The fourth determination subunit is used to determine feature sampling points in a second space before the first determination subunit inputs the target drive information and the target voxel feature into the encoder network corresponding to the target parameter to obtain the corresponding target projection coefficient; the second space represents a three-dimensional facial image space;

[0184] The query subunit is used to query the voxel feature corresponding to the feature sampling point by using the pre-constructed three-dimensional space feature grid, and determine the queried voxel feature as the target voxel feature.

[0185] In one embodiment, the query subunit is specifically used to:

[0186] Encoding the facial image spatial features using the three-dimensional spatial feature grid to obtain a corresponding hash table; the facial image spatial features include at least two feature sampling points, and the hash table stores a mapping relationship between the feature sampling points and the voxel features;

[0187] The hash table is used to query voxel features that have a mapping relationship with the feature sampling points.

[0188] In actual application, the acquisition unit 51 can be implemented by a communication interface in the video processing device; the generation unit 52 can be implemented by a processor in the video processing device.

[0189] It should be noted that: when the video processing device provided in the above embodiment performs video processing, only the division of the above program modules is used as an example. In actual application, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the video processing device provided in the above embodiment and the video processing method embodiment belong to the same inventive concept, and the specific implementation process is detailed in the video processing method embodiment, which will not be repeated here.

[0190] Based on the hardware implementation of the above program modules, and in order to implement the video processing method of the embodiment of the present application, the embodiment of the present application also provides a video processing device, Figure 6 FIG. 1 is a schematic diagram of the hardware structure of the video processing device according to an embodiment of the present application. Figure 6 As shown, the video processing device 60 includes:

[0191] Communication interface 61, capable of exchanging information with other devices;

[0192] The processor 62 is connected to the communication interface 61 to implement information interaction with other devices and is used to execute the above-mentioned video processing method when running a computer program, and the computer program is stored in the memory 63.

[0193] Specifically, the communication interface 61 is used to obtain original video data and target driving information; the original video data includes at least one video frame, and each of the video frames includes at least one facial image;

[0194] The processor 62 is used to input the original video data and the target driving information into a pre-trained driving model to obtain target video data; the target video data is a facial dynamic video image synthesized based on the original video data, the driving model supports driving information of multiple modes; the target driving information is at least one of the driving information of the multiple modes;

[0195] Among them, the driving model includes a first network model and a second network model, the first network model includes an encoder network and a first space corresponding to the driving information of the multiple modalities; during the facial image driving process, the parameters of the second network model and the basis of the first space are fixed, and the parameters of the encoder network are determined from multiple sets of preset parameters based on the type of the target driving information.

[0196] In one embodiment, the communication interface 61 is specifically used for:

[0197] The original video data is preprocessed to obtain the target driving information.

[0198] In one embodiment, the processor 62 is specifically configured to:

[0199] Determining a target parameter based on a mapping relationship between the type of drive information and a parameter of an encoder network; the target parameter represents a parameter selected from a plurality of groups of parameters of the encoder network and having a mapping relationship with the type of the target drive information;

[0200] The target video data is generated based on the target parameters and the driving model.

[0201] In one embodiment, the processor 62 is specifically configured to:

[0202] Inputting the target drive information and target voxel features into an encoder network corresponding to the target parameters to obtain corresponding target projection coefficients;

[0203] Based on the target projection coefficient, determining a target projection feature;

[0204] The target video data is generated based on the target projection features and the second network model.

[0205] In one embodiment, the processor 62 is specifically configured to:

[0206] Using the target projection coefficient, projecting the target driving information into the first space to obtain the target projection feature;

[0207] The first space refers to a low-dimensional implicit space including at least two mutually orthogonal bases.

[0208] In another embodiment, the processor 62 is further configured to:

[0209] The target projection feature is obtained by performing a product operation on the target projection parameter and at least two mutually orthogonal bases included in the first space.

[0210] In one embodiment, the processor 62 is specifically configured to:

[0211] Inputting the target projection features into the second network model to obtain feature parameters at the prediction sampling points;

[0212] The characteristic parameters at the predicted sampling points are rendered to obtain the target video data.

[0213] Here, the second network model includes a first perceptron network and a second perceptron network, and the characteristic parameter includes at least one of the following: density value; color value; wherein,

[0214] The first perceptron network is used to predict the density value at the prediction sampling point, and the second perceptron network is used to predict the color value at the prediction sampling point.

[0215] In one embodiment, the processor 62 is further configured to:

[0216] Before inputting the target drive information and the target voxel features into the encoder network corresponding to the target parameters to obtain the corresponding target projection coefficients, determining feature sampling points in a second space; the second space represents a three-dimensional facial image space;

[0217] The pre-constructed three-dimensional spatial feature grid is used to query the voxel feature corresponding to the feature sampling point, and the queried voxel feature is determined as the target voxel feature.

[0218] In one embodiment, the processor 62 is specifically configured to:

[0219] Encoding the facial image spatial features using the three-dimensional spatial feature grid to obtain a corresponding hash table; the facial image spatial features include at least two feature sampling points, and the hash table stores a mapping relationship between the feature sampling points and the voxel features;

[0220] The hash table is used to query voxel features that have a mapping relationship with the feature sampling points.

[0221] It should be noted that the specific processing process of the communication interface 61 and the processor 62 can be understood by referring to the above-mentioned video processing method.

[0222] Of course, in actual application, the various components in the video processing device 60 are coupled together through the bus system 64. It is understandable that the bus system 64 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 64 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 6 Various buses are labeled as bus system 64.

[0223] The memory 63 in the embodiment of the present application is used to store various types of data to support the operation of the video processing device 60. Examples of such data include: any computer program used to operate on the video processing device 60.

[0224] The video processing method disclosed in the above embodiment of the present application can be applied to the processor 62, or implemented by the processor 62. The processor 62 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above video processing method can be completed by the hardware integrated logic circuit or software instructions in the processor 62. The above processor 62 may be a general processor, a digital signal processor (DSP, DigitalSignal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 62 can implement or execute the various video processing methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the video processing method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 63, and the processor 62 reads the information in the memory 63 and completes the steps of the aforementioned video processing method in combination with its hardware.

[0225] In an exemplary embodiment, the video processing device 60 can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned video processing method.

[0226] It can be understood that the memory 63 of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAMbus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 63 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memory.

[0227] In an exemplary embodiment, the present application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, a memory 63 storing a computer program, and the computer program can be executed by a processor 62 in a video processing device 60 to complete the steps of the video processing method described in the above embodiment of the present application. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0228] It should be noted that: "first", "second", "third", etc. are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0229] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0230] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A video processing method, It is characterized in that The method comprises: Acquire original video data and target drive information; the original video data includes at least one video frame, each of the video frames includes at least one facial image; The original video data and the target driving information are input into a pre-trained driving model to obtain target video data; the target video data is a facial dynamic video image synthesized based on the original video data, the driving model supports driving information of multiple modes; the target driving information is at least one of the driving information of the multiple modes; Among them, the driving model includes a first network model and a second network model, the first network model includes an encoder network and a first space corresponding to the driving information of the multiple modalities; during the facial image driving process, the parameters of the second network model and the basis of the first space are fixed, and the parameters of the encoder network are determined from multiple sets of preset parameters based on the type of the target driving information.

2. The method according to claim 1, It is characterized in that The obtaining of target drive information includes: The original video data is preprocessed to obtain the target driving information.

3. The method according to claim 1, It is characterized in that The step of inputting the original video data and the target driving information into a pre-trained driving model to obtain the target video data includes: Determining a target parameter based on a mapping relationship between the type of drive information and a parameter of an encoder network; the target parameter represents a parameter selected from a plurality of groups of parameters of the encoder network and having a mapping relationship with the type of the target drive information; The target video data is generated based on the target parameters and the driving model.

4. The method according to claim 3, It is characterized in that The generating the target video data based on the target parameter and the driving model comprises: Inputting the target drive information and target voxel features into an encoder network corresponding to the target parameters to obtain corresponding target projection coefficients; Based on the target projection coefficient, determining a target projection feature; The target video data is generated based on the target projection features and the second network model.

5. The method according to claim 4, It is characterized in that The determining of the target projection feature based on the target projection coefficient includes: Using the target projection coefficient, projecting the target driving information into the first space to obtain the target projection feature; The first space refers to a low-dimensional implicit space including at least two mutually orthogonal bases.

6. The method according to claim 4, It is characterized in that The determining of the target projection feature based on the target projection coefficient includes: The target projection feature is obtained by performing a product operation on the target projection parameter and at least two mutually orthogonal bases included in the first space.

7. The method according to claim 4, It is characterized in that The generating the target video data based on the target projection feature and the second network model includes: Inputting the target projection features into the second network model to obtain feature parameters at the prediction sampling points; The characteristic parameters at the predicted sampling points are rendered to obtain the target video data.

8. The method according to claim 7, It is characterized in that The second network model includes a first perceptron network and a second perceptron network, and the characteristic parameter includes at least one of the following: density value; color value; wherein, The first perceptron network is used to predict the density value at the prediction sampling point, and the second perceptron network is used to predict the color value at the prediction sampling point.

9. The method according to claim 4, It is characterized in that Before inputting the target drive information and the target voxel features into the encoder network corresponding to the target parameters to obtain the corresponding target projection coefficients, the method further includes: Determining feature sampling points in a second space; the second space represents a three-dimensional facial image space; The pre-constructed three-dimensional spatial feature grid is used to query the voxel feature corresponding to the feature sampling point, and the queried voxel feature is determined as the target voxel feature.

10. The method according to claim 9, It is characterized in that The method of using the pre-constructed three-dimensional spatial feature grid to query the voxel features corresponding to the feature sampling points includes: Encoding the facial image spatial features using the three-dimensional spatial feature grid to obtain a corresponding hash table; the facial image spatial features include at least two feature sampling points, and the hash table stores a mapping relationship between the feature sampling points and the voxel features; The hash table is used to query voxel features that have a mapping relationship with the feature sampling points.

11. A video processing device, It is characterized in that include: An acquisition unit, used for acquiring original video data and target drive information; The original video data includes at least one video frame, each of which contains at least one facial image; A generating unit, configured to input the original video data and target driving information into a pre-trained driving model to obtain target video data; The target video data is a facial dynamic video image synthesized based on the original video data, the driving model supports driving information of multiple modes; the target driving information is at least one of the driving information of the multiple modes; Among them, the driving model includes a first network model and a second network model, the first network model includes an encoder network and a first space corresponding to the driving information of the multiple modalities; during the facial image driving process, the parameters of the second network model and the basis of the first space are fixed, and the parameters of the encoder network are determined from multiple sets of preset parameters based on the type of the target driving information.

12. A video processing device, It is characterized in that include: A communication interface for acquiring raw video data and target drive information; The original video data includes at least one video frame, each of which contains at least one facial image; A processor, configured to input the original video data and target driving information into a pre-trained driving model to obtain target video data; The target video data is a facial dynamic video image synthesized based on the original video data, the driving model supports driving information of multiple modes; the target driving information is at least one of the driving information of the multiple modes; Among them, the driving model includes a first network model and a second network model, the first network model includes an encoder network and a first space corresponding to the driving information of the multiple modalities; during the facial image driving process, the parameters of the second network model and the basis of the first space are fixed, and the parameters of the encoder network are determined from multiple sets of preset parameters based on the type of the target driving information.

13. A video processing device, It is characterized in that include: a processor and a memory for storing a computer program capable of running on said processor; Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 1 to 10.

14. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

Citation Information

Patent Citations

  • Information processing method and device, computer equipment and storage medium

    CN114782864A

  • Emotion-controllable facial animation generation method based on multi-modal driving

    CN115100329A

  • Speaking face video generation method and system based on adaptive region occlusion

    CN117153195A

  • Audio-speech driven animated talking face generation using a cascaded generative adversarial network

    US20220036617A1