Facial expression manipulation video generation method and system based on spatial correlation model
By constructing a spatial correlation model, the synchronization and local distortion problems in the generation of videos manipulated by facial expressions in existing technologies are solved, and higher quality video generation effects are achieved.
Patent Information
- Application Number
- CN202410247832.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-05
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-03-05
AI Technical Summary
Existing facial expression manipulation technologies lack sufficient synchronization between voice and mouth movements, resulting in asynchronous audio and video. Furthermore, the lack of local supervision leads to localized distortion in the generated video, resulting in a poor user experience.
A spatial correlation model is constructed, including a pose alignment network unit, a feature extraction network unit, a sample pair construction network unit, and a difference-aware adaptive network unit. By training the total visual difference loss function, the quality of video generation is improved.
By introducing additional monitoring signals, local video distortion is reduced, user experience is improved, and the synchronicity and quality of video generation are enhanced.
Smart Images

Figure CN118212671B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of computer image processing and machine learning, and more specifically, to a method and system for generating videos of facial expression manipulation based on a spatial correlation model. Background Technology
[0002] With the continuous advancement of internet technology and the increasing demands for video quality, the shortcomings of existing facial expression manipulation technologies have gradually become apparent. Current facial expression manipulation technologies are insufficient in their ability to maintain the accuracy of speech and corresponding mouth movements, leading to audio-visual asynchrony in practical applications. Furthermore, the lack of local supervision in facial expression manipulation technologies results in localized distortion in the generated videos, leading to a poor user experience.
[0003] Existing technology provides a virtual digital human lip-syncing method and system. This method first captures sample videos based on pre-acquired target corpus, extracts facial images and audio information from these samples, then processes the facial images using OpenFace to obtain facial key point images, and preprocesses the audio information to convert it into a Mel spectrogram. Finally, it trains a Wav2Lip model based on the facial key point images and the Mel spectrogram, and uses the trained Wav2Lip model to process the target video to obtain the corresponding lip-sync video. Summary of the Invention
[0004] To overcome the aforementioned defects in local video distortion, this invention provides a method and system for generating videos that manipulate facial expressions based on a spatial correlation model.
[0005] To solve the above-mentioned technical problems, the technical solution of the present invention is as follows:
[0006] This invention provides a method for generating facial expression manipulation videos based on a spatial correlation model, the method comprising:
[0007] Obtain the input and output images of the face from an existing facial expression manipulation model;
[0008] The spatial correlation model is trained using the input and output images of the face to obtain the trained spatial correlation model.
[0009] The facial input image is fed into a trained spatial correlation model to generate an image, which is then integrated into a facial expression video.
[0010] Preferably, the method for obtaining a trained spatial correlation model is as follows:
[0011] A spatial correlation model is constructed, which includes a pose alignment network unit, a feature extraction network unit, a sample pair construction network unit, and a difference-aware adaptive network unit connected in sequence.
[0012] The pose alignment network unit is used to align the face input image and the face output image to obtain a face output image that is aligned with the face input image.
[0013] The feature extraction network unit is used to extract features from the face input image and the aligned face output image to obtain the face input image feature map and the face output image feature map;
[0014] The network unit is constructed using sample pairs to sample both the feature map of the input face image and the feature map of the output face image. Local feature blocks are extracted from the feature maps. Sample pairs are formed between different local feature blocks. Sample pairs with the same correspondence between the local feature blocks of the input feature map and the local feature blocks of the output feature map are positive sample pairs, and sample pairs with different correspondences are negative sample pairs.
[0015] Weights are assigned to positive and negative sample pairs using a difference-aware adaptive network unit.
[0016] Set up a total visual difference loss function, calculate the total visual difference loss function value based on the face input image and face output image, and adjust the parameters of the spatial correlation model.
[0017] When the total visual difference loss function value reaches the preset value, a well-trained spatial correlation model is obtained.
[0018] Preferably, the feature extraction network unit comprises a first convolutional layer, a first normalization layer, a first activation layer, a first residual layer, a second residual layer, a third residual layer, a fourth residual layer, a second normalization layer, an average pooling layer, a fully connected layer, a third normalization layer, and a second activation layer connected in sequence.
[0019] The first residual layer, the second residual layer, the third residual layer, and the fourth residual layer output the feature maps of the face output image, respectively.
[0020] Preferably, the total visual difference loss is specifically:
[0021]
[0022] Among them, L asccl For visual difference loss; The weight values represent the feature differences between adjacent regions i to j of image features in the l-th residual layer; For contrast loss; x is the input image of the face; y is the output image of the face.
[0023] Preferably, the contrast loss is specifically:
[0024]
[0025] Where τ is the temperature hyperparameter; m is the number of adjacent regions; This represents the visual difference between image x in two adjacent regions i and j; represents the visual difference between image y and two adjacent regions i and j; k represents the adjacent regions of a negative sample pair.
[0026] This invention also provides a facial expression manipulation video generation system based on a spatial correlation model, used to implement the above-mentioned method, the system comprising:
[0027] The image acquisition module acquires the input and output images of the face from the existing facial expression manipulation model;
[0028] The model training module uses the face input image and face output image to train the constructed spatial correlation model and obtain the trained spatial correlation model.
[0029] The video generation module takes the input image of the face and feeds it into a trained spatial correlation model to generate an image, which is then integrated into a video of facial expressions.
[0030] Preferably, the method for obtaining a trained spatial correlation model is as follows:
[0031] A spatial correlation model is constructed, which includes a pose alignment network unit, a feature extraction network unit, a sample pair construction network unit, and a difference-aware adaptive network unit connected in sequence.
[0032] The pose alignment network unit is used to align the face input image and the face output image to obtain a face output image that is aligned with the face input image.
[0033] The feature extraction network unit is used to extract features from the face input image and the aligned face output image to obtain the face input image feature map and the face output image feature map;
[0034] The network unit is constructed using sample pairs to sample both the feature map of the input face image and the feature map of the output face image. Local feature blocks are extracted from the feature maps. Sample pairs are formed between different local feature blocks. Sample pairs with the same correspondence between the local feature blocks of the input feature map and the local feature blocks of the output feature map are positive sample pairs, and sample pairs with different correspondences are negative sample pairs.
[0035] Weights are assigned to positive and negative sample pairs using a difference-aware adaptive network unit.
[0036] Set up a total visual difference loss function, calculate the total visual difference loss function value based on the face input image and face output image, and adjust the parameters of the spatial correlation model.
[0037] When the total visual difference loss function value reaches the preset value, a well-trained spatial correlation model is obtained.
[0038] Preferably, the feature extraction network unit comprises a first convolutional layer, a first normalization layer, a first activation layer, a first residual layer, a second residual layer, a third residual layer, a fourth residual layer, a second normalization layer, an average pooling layer, a fully connected layer, a third normalization layer, and a second activation layer connected in sequence.
[0039] The first residual layer, the second residual layer, the third residual layer, and the fourth residual layer output the feature maps of the face output image, respectively.
[0040] Preferably, the total visual difference loss is specifically:
[0041]
[0042] Among them, L asccl For visual difference loss; The weight values represent the feature differences between adjacent regions i to j of image features in the l-th residual layer; For contrast loss; x is the input image of the face; y is the output image of the face.
[0043] Preferably, the contrast loss is specifically:
[0044]
[0045] Where τ is the temperature hyperparameter; m is the number of adjacent regions; This represents the visual difference between image x in two adjacent regions i and j; represents the visual difference between image y and two adjacent regions i and j; k represents the adjacent regions of a negative sample pair.
[0046] Compared with the prior art, the beneficial effects of the technical solution of the present invention are:
[0047] This invention constructs a spatial correlation learning model to qualitatively and quantitatively compare the quality of pre- and post-generated videos; it improves video quality by introducing additional supervision signals into existing facial expression manipulation techniques. This method employs a novel supervision module that reduces local video distortion and enhances the user experience. Attached Figure Description
[0048] Figure 1 This is a flowchart of the facial expression manipulation video generation method based on the spatial correlation model described in Example 1;
[0049] Figure 2 This is a schematic diagram of the network unit structure constructed from the sample pairs described in Example 2;
[0050] Figure 3 This is a schematic diagram of the facial expression manipulation video generation system based on the spatial correlation model described in Example 3. Detailed Implementation
[0051] The accompanying drawings are for illustrative purposes only and should not be construed as limiting the scope of this patent.
[0052] To better illustrate this embodiment, some parts in the accompanying drawings may be omitted, enlarged, or reduced, and do not represent the actual product dimensions;
[0053] It will be understood by those skilled in the art that certain well-known structures and their descriptions may be omitted in the accompanying drawings.
[0054] The technical solution of the present invention will be further described below with reference to the accompanying drawings and embodiments.
[0055] Example 1
[0056] This embodiment provides a method for generating facial expression manipulation videos based on a spatial correlation model, such as... Figure 1 As shown, the method includes:
[0057] Obtain the input and output images of the face from an existing facial expression manipulation model;
[0058] The spatial correlation model is trained using the input and output images of the face to obtain the trained spatial correlation model.
[0059] The facial input image is fed into a trained spatial correlation model to generate an image, which is then integrated into a facial expression video.
[0060] Example 2
[0061] This embodiment provides a method for generating facial expression manipulation videos based on a spatial correlation model. The method includes:
[0062] Obtain the input and output images of the face from an existing facial expression manipulation model;
[0063] The spatial correlation model is trained using the input and output images of the face to obtain the trained spatial correlation model.
[0064] The facial input image is fed into a trained spatial correlation model to generate an image, which is then integrated into a facial expression video.
[0065] The method for obtaining a well-trained spatial correlation model is as follows:
[0066] A spatial correlation model is constructed, which includes a pose alignment network unit, a feature extraction network unit, a sample pair construction network unit, and a difference-aware adaptive network unit connected in sequence.
[0067] The pose alignment network unit is used to align the face input image and the face output image to obtain a face output image that is aligned with the face input image.
[0068] The feature extraction network unit is used to extract features from the face input image and the aligned face output image to obtain the face input image feature map and the face output image feature map;
[0069] like Figure 2 As shown, network units are constructed using sample pairs to sample both the feature maps of the input and output face images, extracting local feature blocks from the feature maps. Sample pairs are formed between different local feature blocks. Sample pairs with the same correspondence between the local feature blocks of the input feature map and the local feature blocks of the output feature map constitute positive sample pairs, while sample pairs with different correspondences constitute negative sample pairs.
[0070] ArcFace is used as a feature extractor to identify multi-scale features of images, and the module is trained using the MEAD dataset. By fine-tuning ArcFace using paired data, we can establish spatial coherence correlations within the feature space between two images. Specifically, we designate the image with neutral sentiment as x and the image with alternative sentiment as y. Using ArcFace, we extract the features corresponding to x, denoted as xi. f,l Similarly, the feature corresponding to y is denoted as y f,l Here, l∈[1,2,3,4] represents the feature output of the l-th feature block in ArcFace. Subsequently, we sample this region and generate positive and negative samples in the feature space.
[0071] To construct positive and negative sample pairs, we sample two adjacent regions in the feature map of image x and align the region indices with the feature map of image y. Simultaneously, we randomly select adjacent regions in the feature map of image y whose indices are not aligned to construct negative samples. The visual difference between two adjacent regions i and j in image x is represented as follows: For the image y, it is represented as Similarly, the visual difference between regions i and k in image y is represented as For each i, we capture its eight surrounding neighboring regions and denote that set j, while k represents a set of eight randomly sampled regions. Therefore, and The pairings constitute positive samples, while and The pairs constitute negative samples.
[0072] Visual consistency between two images is achieved by maximizing the similarity between positive samples while simultaneously increasing the distance between negative samples. During training, all images are resized to 224×224 resolution. We use Adam as the optimizer, with a batch size of 16 and an initial learning rate of 1×10⁻⁶. -4 .
[0073] Weights are assigned to positive and negative sample pairs using a difference-aware adaptive network unit.
[0074] Set up a total visual difference loss function, calculate the total visual difference loss function value based on the face input image and face output image, and adjust the parameters of the spatial correlation model.
[0075] When the total visual difference loss function value reaches the preset value, a well-trained spatial correlation model is obtained.
[0076] The feature extraction network unit includes a first convolutional layer, a first normalization layer, a first activation layer, a first residual layer, a second residual layer, a third residual layer, a fourth residual layer, a second normalization layer, an average pooling layer, a fully connected layer, a third normalization layer, and a second activation layer connected in sequence.
[0077] The first residual layer, the second residual layer, the third residual layer, and the fourth residual layer output the feature maps of the face output image, respectively.
[0078] Preferably, the total visual difference loss is specifically:
[0079]
[0080] Among them, L asccl For visual difference loss; The weight values represent the feature differences between adjacent regions i to j of the image features of images x and y in the l-th residual layer; For contrast loss; x is the input image of the face; y is the output image of the face.
[0081] The comparison loss is specifically as follows:
[0082]
[0083] Where τ is the temperature hyperparameter; m is the number of adjacent regions; This represents the visual difference between image x and two adjacent regions i and j; represents the visual difference between image y and two adjacent regions i and j; k represents the adjacent regions of a negative sample pair.
[0084] To evaluate the quality of videos generated by the facial expression manipulation model before and after incorporating the spatial correlation module, we used two settings for video generation: 1) self-identification, where the source video and the emotional reference video are spoken by the same speaker; and 2) cross-identification, where the source video and the emotional reference video are spoken by different speakers.
[0085] The following three metrics were used to evaluate the model's output.
[0086] Frechet Arcface Distance(FAD):
[0087] FAD, inspired by Frechet's Inception Distance (FID), is a metric used to compare the distance between two probability distributions. It primarily assesses the similarity between images generated by generative models (such as GANs) and real images. It calculates the distance between two image distributions based on the activation feature vectors of the Inception network. Furthermore, it measures video realism by comparing the feature vectors of generated and real videos using advanced face recognition technology. A lower FAD value indicates better realism.
[0088] We use a pre-trained Inception network, inputting both generated and real images into the network to obtain their activation feature vectors. We then calculate the mean vector and covariance matrix of the activation feature vectors for both the generated and real images, and use these vectors to calculate the Frechet distance, yielding the FAD index. The specific formula is as follows:
[0089]
[0090] Where μ x and μ y Let represent the feature means of the real image and the generated image, respectively; let ∑x and ∑y represent the covariance matrices of the real image and the generated image, respectively; and let Tr represent the trace of the matrix.
[0091] Cosine Similarity (CSIM):
[0092] CSIM measures the similarity between two feature vectors by measuring the cosine of the angle between them. The cosine of the angle determines whether the two vectors point in roughly the same direction: 1 for 90° angles, 0 for 90° angles, and -1 for opposite directions. State-of-the-art facial expression recognition networks are used to evaluate the emotional similarity between generated and target emotional videos; a higher CSIM value indicates greater similarity.
[0093] We use the ResNet-Face18 model to obtain corresponding feature vectors for both real and generated images via a neural network. We construct feature vector pairs corresponding to the input and output face images, calculate their cosine similarity, and take the maximum value. Then, we calculate the average of the maximum values of all feature vector pairs as the cosine similarity between the input and output videos. The specific formula is as follows:
[0094] CSIM(x,y)=(x·y) / (||x||*||y||)
[0095] Where x and y represent the feature vectors of the real image and the generated image, respectively, · represents the dot product operation of the vectors, and ||x|| and ||y|| represent the norm of the vector (i.e. the length of the vector).
[0096] To better train the spatial correlation learning neural network and the neural network needed for facial expression manipulation, we need to preprocess the character data. For the messy data provided by users, we will select and apply the appropriate methods, and standardize all the data, transforming it into a form that is easy for computers to process, which will greatly improve computing speed.
[0097] The core of this embodiment is to utilize the spatial correlation between input and output videos to construct paired supervisory signals, and then combine 3D reconstruction and neural network techniques to improve the effectiveness of facial expression manipulation methods. Therefore, training the neural network becomes a crucial step; selecting a suitable, high-quality training set allows the model to fit better.
[0098] After preparing the dataset, we will pre-train the neural network, aiming to converge the training loss and stabilize the neural network model output. Then, we will package the model parameters and apply them to the needs of real-world projects.
[0099] Using a well-organized dataset, a spatial correlation learning network is trained, and paired supervision signal data is constructed to provide a paired supervision database for subsequent facial expression transfer training.
[0100] Expression extraction is performed on the videos of the person to be edited (A) and the person to be edited (B), respectively. The target emotion is extracted as an expression vector, and the video to be edited is extracted as an expression base. Then, the expression style vector and the expression base to be edited are fused and mapped to the expression base domain, thus achieving expression transfer. Simultaneously, a 3D reconstruction neural network is used to generate base class parameters for the person to be edited (A). Combined with the transferred expression base, images such as the NMFC map, rough face reconstruction map, and eye region tracking map are generated. After image rendering, these images are then integrated frame by frame into a video. Finally, audio is loaded to obtain a video containing the emotion of person B while retaining the speech content of person A.
[0101] Example 3
[0102] This embodiment also provides a facial expression manipulation video generation system based on a spatial correlation model, used to implement the method of embodiment 1 or 2, such as... Figure 3 As shown, the system includes:
[0103] The image acquisition module acquires the input and output images of the face from the existing facial expression manipulation model;
[0104] The model training module uses the face input image and face output image to train the constructed spatial correlation model and obtain the trained spatial correlation model.
[0105] The video generation module takes the input image of the face and feeds it into a trained spatial correlation model to generate an image, which is then integrated into a video of facial expressions.
[0106] The method for obtaining a well-trained spatial correlation model is as follows:
[0107] A spatial correlation model is constructed, which includes a pose alignment network unit, a feature extraction network unit, a sample pair construction network unit, and a difference-aware adaptive network unit connected in sequence.
[0108] The pose alignment network unit is used to align the face input image and the face output image to obtain a face output image that is aligned with the face input image.
[0109] The feature extraction network unit is used to extract features from the face input image and the aligned face output image to obtain the face input image feature map and the face output image feature map;
[0110] The network unit is constructed using sample pairs to sample both the feature map of the input face image and the feature map of the output face image. Local feature blocks are extracted from the feature maps. Sample pairs are formed between different local feature blocks. Sample pairs with the same correspondence between the local feature blocks of the input feature map and the local feature blocks of the output feature map are positive sample pairs, and sample pairs with different correspondences are negative sample pairs.
[0111] Weights are assigned to positive and negative sample pairs using a difference-aware adaptive network unit.
[0112] Set up a total visual difference loss function, calculate the total visual difference loss function value based on the face input image and face output image, and adjust the parameters of the spatial correlation model.
[0113] When the total visual difference loss function value reaches the preset value, a well-trained spatial correlation model is obtained.
[0114] The feature extraction network unit includes a first convolutional layer, a first normalization layer, a first activation layer, a first residual layer, a second residual layer, a third residual layer, a fourth residual layer, a second normalization layer, an average pooling layer, a fully connected layer, a third normalization layer, and a second activation layer connected in sequence.
[0115] The first residual layer, the second residual layer, the third residual layer, and the fourth residual layer output the feature maps of the face output image, respectively.
[0116] The total visual difference loss is specifically as follows:
[0117]
[0118] Among them, L asccl For visual difference loss; The weight values represent the feature differences between adjacent regions i to j of image features in the l-th residual layer; For contrast loss; x is the input image of the face; y is the output image of the face.
[0119] The comparison loss is specifically as follows:
[0120]
[0121] Where τ is the temperature hyperparameter; m is the number of adjacent regions; This represents the visual difference between image x in two adjacent regions i and j; represents the visual difference between image y and two adjacent regions i and j; k represents the adjacent regions of a negative sample pair.
[0122] The same or similar labels correspond to the same or similar parts;
[0123] The terms used to describe positional relationships in the accompanying drawings are for illustrative purposes only and should not be construed as limiting this patent.
[0124] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the implementation of the present invention. Those skilled in the art can make other variations or modifications based on the above description. It is neither necessary nor possible to exhaustively describe all embodiments here. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the claims of the present invention.
Claims
1. A method for generating facial expression manipulation videos based on a spatial correlation model, characterized in that, The method includes: Obtain the input and output images of the face from an existing facial expression manipulation model; The spatial correlation model is trained using the input and output images of the face to obtain the trained spatial correlation model. The face input image is fed into a trained spatial correlation model to generate an image, which is then integrated into a facial expression video. The method for obtaining a well-trained spatial correlation model is as follows: A spatial correlation model is constructed, which includes a pose alignment network unit, a feature extraction network unit, a sample pair construction network unit, and a difference-aware adaptive network unit connected in sequence. The pose alignment network unit is used to align the face input image and the face output image to obtain a face output image that is aligned with the face input image. The feature extraction network unit is used to extract features from the face input image and the aligned face output image to obtain the face input image feature map and the face output image feature map; The network unit is constructed using sample pairs to sample both the feature map of the input face image and the feature map of the output face image. Local feature blocks are extracted from the feature maps. Sample pairs are formed between different local feature blocks. Sample pairs with the same correspondence between the local feature blocks of the input feature map and the local feature blocks of the output feature map are positive sample pairs, and sample pairs with different correspondences are negative sample pairs. Weights are assigned to positive and negative sample pairs using a difference-aware adaptive network unit. Set up a total visual difference loss function, calculate the total visual difference loss function value based on the face input image and face output image, and adjust the parameters of the spatial correlation model. When the total visual difference loss function value reaches the preset value, a well-trained spatial correlation model is obtained; The feature extraction network unit includes a first convolutional layer, a first normalization layer, a first activation layer, a first residual layer, a second residual layer, a third residual layer, a fourth residual layer, a second normalization layer, an average pooling layer, a fully connected layer, a third normalization layer, and a second activation layer connected in sequence. The first residual layer, the second residual layer, the third residual layer, and the fourth residual layer output the feature maps of the face output image, respectively.
2. The method for generating facial expression manipulation video based on a spatial correlation model according to claim 1, characterized in that, The total visual difference loss is specifically as follows: in, For visual difference loss; The weight values represent the feature differences between adjacent regions i to j of image features in the l-th residual layer; For contrast loss; x is the input image of the face; y is the output image of the face.
3. The method for generating facial expression manipulation video based on a spatial correlation model according to claim 2, characterized in that, The comparison loss is specifically as follows: in, Here, m represents the temperature hyperparameter; m is the number of adjacent regions. This represents the visual difference between image x in two adjacent regions i and j; represents the visual difference between image y and two adjacent regions i and j; k represents the adjacent regions of a negative sample pair.
4. A facial expression manipulation video generation system based on a spatial correlation model, used to implement the method described in any one of claims 1-3, characterized in that, The system includes: The image acquisition module acquires the input and output images of the face from the existing facial expression manipulation model; The model training module uses the face input image and face output image to train the constructed spatial correlation model and obtain the trained spatial correlation model. The video generation module takes the input image of the face and feeds it into a trained spatial correlation model to generate an image, which is then integrated into a video of facial expressions.
5. The facial expression manipulation video generation system based on a spatial correlation model according to claim 4, characterized in that, The method for obtaining a well-trained spatial correlation model is as follows: A spatial correlation model is constructed, which includes a pose alignment network unit, a feature extraction network unit, a sample pair construction network unit, and a difference-aware adaptive network unit connected in sequence. The pose alignment network unit is used to align the face input image and the face output image to obtain a face output image that is aligned with the face input image. The feature extraction network unit is used to extract features from the face input image and the aligned face output image to obtain the face input image feature map and the face output image feature map; The network unit is constructed using sample pairs to sample both the feature map of the input face image and the feature map of the output face image. Local feature blocks are extracted from the feature maps. Sample pairs are formed between different local feature blocks. Sample pairs with the same correspondence between the local feature blocks of the input feature map and the local feature blocks of the output feature map are positive sample pairs, and sample pairs with different correspondences are negative sample pairs. Weights are assigned to positive and negative sample pairs using a difference-aware adaptive network unit. Set up a total visual difference loss function, calculate the total visual difference loss function value based on the face input image and face output image, and adjust the parameters of the spatial correlation model. When the total visual difference loss function value reaches the preset value, a well-trained spatial correlation model is obtained.
6. The facial expression manipulation video generation system based on a spatial correlation model according to claim 5, characterized in that, The feature extraction network unit includes a first convolutional layer, a first normalization layer, a first activation layer, a first residual layer, a second residual layer, a third residual layer, a fourth residual layer, a second normalization layer, an average pooling layer, a fully connected layer, a third normalization layer, and a second activation layer connected in sequence. The first residual layer, the second residual layer, the third residual layer, and the fourth residual layer output the feature maps of the face output image, respectively.
7. The facial expression manipulation video generation system based on a spatial correlation model according to claim 5, characterized in that, The total visual difference loss is specifically as follows: in, For visual difference loss; The weight values represent the feature differences between adjacent regions i to j of image features in the l-th residual layer; For contrast loss; x is the input image of the face; y is the output image of the face.
8. The facial expression manipulation video generation system based on a spatial correlation model according to claim 7, characterized in that, The comparison loss is specifically as follows: in, Here, m represents the temperature hyperparameter; m is the number of adjacent regions. This represents the visual difference between image x in two adjacent regions i and j; represents the visual difference between image y and two adjacent regions i and j; k represents the adjacent regions of a negative sample pair.
Citation Information
Patent Citations
Video expression recognition method based on deep residual attention network
CN111797683A
Avatar video apparatus and method
WO2016070354A1
