Audio-assisted face video coding method
By using audio features to interact with video features in face video coding, more accurate optical flow maps and occlusion maps are generated, which solves the problem of failing to fully utilize the correlation between audio and video in the existing technology, and achieves more efficient coding. decoding and better video quality.
Patent Information
- Application Number
- CN202410879517.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-20
AI Technical Summary
In the existing technology, face video encoding methods fail to fully utilize the correlation between audio and video, resulting in large code streams and low video quality during the encoding and decoding process, especially artifacts when decoding videos at low bit rates. and distortion.
During the encoding and decoding process, more accurate optical flow maps and occlusion maps are generated through audio feature extraction and video feature interaction, audio assistance is used to generate non-key frames, and audio and video features are combined for end-to-end encoding and decoding to optimize video reconstruction. process.
It effectively reduces the code stream size, improves the subjective and objective quality of the video, provides a smoother and clearer audio-visual experience, and significantly reduces the code stream size under the PSNR, SSIM, DISTS, and LPIPS indicators.
Smart Images

Figure CN118678083A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of information source coding, and in particular relates to an audio-assisted face video coding method. Background Art
[0002] In recent years, the growing demand for video conferencing / telephony relies heavily on the effective encoding and transmission of face videos. In the past few decades, many video coding standards have been developed to improve coding performance. The most advanced video coding standard, VVC (Versatile video coding), has improved the coding efficiency by 30-50% compared with HEVC (High Efficiency video coding). With the development of deep learning, video coding methods based on deep learning have also been widely studied. A large number of studies have shown that integrating neural networks into traditional coding frameworks and replacing some of their sub-modules can significantly improve coding efficiency. At the same time, there are also studies that use deep learning technology in the post-processing stage of video coding to reduce the distortion caused by coding and improve video quality. In addition, end-to-end video coding schemes have also received extensive research and attention, aiming to explore more performance gains through end-to-end designs. At present, these schemes are comparable to traditional coding schemes in performance. The above methods are general video coding methods. There is no requirement for video content, and videos of any content can be encoded. However, when it comes to face videos, the situation is more special. The rich prior knowledge contained in facial videos, such as the stability of facial structure and the short-term invariance of character appearance, and especially the fact that the movement of the video is mainly concentrated in the facial area, is expected to further improve the coding efficiency of facial videos.
[0003] There is a method for generating facial video coding in the prior art (publication number: CN114422795A), which achieves good coding efficiency at ultra-low bit rates by utilizing strong prior knowledge of facial videos. This method encodes key frames using traditional coding methods and extracts compact features from the remaining non-key frames. At the decoding end, the powerful generation capability of the generative model is used to combine the texture information of the key frames and the motion information of the compact features to generate the current frame image. However, this method does not involve audio information.
[0004] In the prior art, there is a solution that uses audio information to assist in post-processing of face videos. In this method, the decoding end uses audio information to assist in video enhancement to reduce artifacts of decoded videos at low bit rates. Although this method utilizes the correlation between audio and video to improve the reconstruction quality, these methods are post-processing methods that use audio information to assist in quality enhancement of decoded videos. They do not affect the encoding and decoding process of face videos. Their bit rate depends on the selected video encoding method, and they cannot fully utilize the correlation between audio and video.
[0005] The current face video coding technology mainly focuses on the video modality, and rarely considers the correlation of the audio modality. However, in daily scenes, the audio modality and the video modality usually coexist, and there is a correlation between the two. The existing audio information-assisted face video post-processing solution uses audio information to assist video denoising, which does not affect the encoding and decoding process and cannot fully utilize the correlation between audio and video. Summary of the invention
[0006] In order to overcome the shortcomings of the above-mentioned prior art, the purpose of the present invention is to provide an audio-assisted face video encoding method, which utilizes the semantic correlation between audio and video in the encoding and decoding process, and can make more full use of this correlation, which not only reduces the bit rate required for transmission, but also can improve the subjective (DISTS and LPIPS) and objective (PSNR and SSIM) quality of the face video.
[0007] In order to achieve the above object, the technical solution adopted by the present invention is:
[0008] An audio-assisted face video encoding method comprises the following steps:
[0009] Step 1: For the input video, use the video encoder to encode it to obtain the video bit stream Vbit;
[0010] Step 2: Encode the input audio using an audio encoder to obtain an audio bitstream Abit; the audio is collected simultaneously with the video, and the main content of the audio is the voice of the person in the input video in step 1;
[0011] Step 3: Using an audio decoder to decode the audio code stream Abit to generate an audio file;
[0012] Step 4: The video decoder uses the audio file and the video bit stream Vbit to decode and generate a video file for playback.
[0013] In step 1, the video is divided into two parts: key frames and non-key frames. The first frame is selected as the key frame and the remaining frames are selected as non-key frames. If the video duration is long, the frame played at the current moment is selected as the key frame and the remaining frames are selected as non-key frames at intervals (such as a few seconds).
[0014] Use image / video coding methods (such as VVC, HEVC, etc.) to encode key frames to obtain bitstreams;
[0015] For non-key frames, the representation features are first extracted using a feature extraction network;
[0016] The extracted non-key frame features are encoded to obtain a feature code stream of the non-key frame;
[0017] Perform differential operation between the features extracted from non-key frames and the reconstructed features to obtain the residual, then quantize the residual into an integer, then convert the quantized result into a binary code, and finally encode the binary code using entropy coding to obtain the feature code stream of the non-key frame;
[0018] The key frame bitstream and the non-key frame feature bitstream together constitute the video bitstream Vbit.
[0019] In step 2, the audio encoder uses an audio coding method (such as advanced audio coding, linear prediction coding, etc.) to obtain an audio bit stream Abit.
[0020] In step 3, the audio code stream Abit is first decoded using an audio decoding method to obtain an audio file; then, the audio file is passed through an audio feature extraction module to extract audio features related to the video;
[0021] The audio feature extraction module extracts audio features. In the video stream, each frame will select an audio file of a length (such as 0.4s) corresponding to the currently decoded frame, and then calculate the audio features. The audio feature type is not limited, and can be the common Mel Frequency Cepstral Coefficient (MFCC) or Perceptual Linear Prediction Coefficient (PLP), etc.
[0022] The following is an embodiment of calculating MFCC audio features. The audio is pre-emphasized, framed, windowed, power spectrum calculated, Mel filter, log transform and DCT transform operations are used to obtain MFCC (Mel Frequency Cepstral Coefficient) features.
[0023] Specifically, pre-emphasis is to pass the speech signal through a high-pass filter to enhance the high-frequency part, then regard N sampling points as one frame, divide the audio sampling points into multiple frames, where some sampling points overlap between adjacent frames, and then multiply each frame by a Hamming window to reduce spectrum leakage. The processed speech frame is subjected to fast Fourier transform to obtain the energy distribution on the spectrum, and then the modulus square is taken to obtain the power spectrum. Finally, the energy spectrum is passed through a Mel-scale filter bank, and the logarithmic energy of the output of the filter bank is calculated, and the logarithmic energy is substituted into the discrete cosine transform to obtain the MFCC feature. The audio features are further processed with the help of a machine learning model to obtain the audio features Afeat related to the video;
[0024] In step 4, for the video bitstream, key frame and non-key frame features are respectively reconstructed, and the key frame, non-key frame features and extracted audio features are used to generate corresponding optical flow maps and occlusion maps through an audio-guided optical flow map generation module;
[0025] Then, based on the key frames, audio features, optical flow maps, and occlusion maps, non-key frames are generated through the audio-assisted inter-frame generation module;
[0026] Finally, the key frames and the generated non-key frames are combined to obtain a complete video file.
[0027] The audio-guided optical flow map generation module establishes the motion relationship between the key frame and the current frame. Due to the use of audio information for guidance, more accurate and robust optical flow maps and occlusion maps can be obtained, which is beneficial to improving the quality of the final video.
[0028] First, a feature extraction network is used to extract representative features feat1 from the key frame, and reconstruct the representative features feat2 of the current non-key frame; there is no limitation on the structure and parameters of the feature extraction network, for example, an Hourglass network based on a combination of a convolutional neural network and a generalized division normalization activation function can be used, and so on.
[0029] Secondly, an optical flow algorithm is used to build a sparse optical flow map between feat1 and feat2, and the optical flow field is used to perform a preliminary image deformation estimation on the downsampled key frame to obtain the downsampled distorted image warpimg;
[0030] Again, perform a difference operation on feat1 and feat2 to obtain the feature difference, which is recorded as featd;
[0031] The distorted images warpimg and featd are input into the optical flow estimation network for dense motion estimation.
[0032] The output results of the optical flow estimation network are optical flow maps and occlusion maps, which represent the motion relationship between the key frame and the current frame and are used in the next module.
[0033] Furthermore, the additional audio information is conducive to obtaining more accurate and robust optical flow maps and occlusion maps, so some structures for the interaction between video features and audio features can be added to the optical flow estimation network. There is no restriction on the interaction method of the two modalities, and methods such as multimodal feature fusion and multimodal feature guidance can be used. For example: you can use the Hourglass network based on a combination of a convolutional neural network and a generalized division normalization activation function, and replace some convolutional layers with adjustable weight convolutional layers;
[0034] An implementation method of multimodal feature guidance based on an adjustable weight convolution layer, wherein the adjustable weight convolution layer uses the extracted audio feature Afeat to dynamically adjust the convolution layer weight ω ijk , thus achieving audio-guided optical flow map generation;
[0035] The calculation formula of the specific adjustment process is shown in the following formula (1):
[0036]
[0037] Among them, i, j and k represent the number of input channels, output channels and the spatial position of the convolution kernel respectively, ε is a constant to prevent the denominator from being 0, Afeat i is the audio feature of the i-th channel, ω ijk is the weight of the convolution kernel. The output of the optical flow estimation network is the optical flow map and the occlusion map, which represent the motion relationship between the key frame and the current frame and are used in the next module.
[0038] Specifically, the optical flow map is the offset direction and size of the pixel between the key frame and the current frame, and the occlusion map is a feature map with a value between 0 and 1, and the value represents the credibility of the pixel at that point;
[0039] The audio-assisted inter-frame generation module generates a current frame using the key frame and the optical flow map and occlusion map obtained by the previous module with the assistance of audio;
[0040] Extract texture features from key frames, including the face and part of the background, and then use the optical flow map to deform the texture features;
[0041] Since there is motion between the key frame and the current frame, not all pixels of the current frame can be found in the key frame. Therefore, it is necessary to multiply the deformed features by the occlusion map to represent the credibility of the deformed features, and the video features after multiplying the occlusion map are recorded as feato.
[0042] The video features feato are input into the generative model to obtain the reconstructed video frame.
[0043] Furthermore, the additional audio information is helpful to improve the quality of the reconstructed video frame. In order to further improve the quality of the reconstructed video frame, in some embodiments, the audio feature Afeat and the video feature feato can be fused and input into the generative model to obtain the reconstructed video frame. This fusion is helpful to further utilize the audio features and improve the quality of the final video. There is no restriction on the type of fusion method, and direct splicing, attention mechanism fusion, matrix operation fusion, feature projection fusion, etc. can be used.
[0044] An implementation method based on self-attention mechanism fusion, first upsample the audio feature Afeat to the same size as the video feature and pass it through the convolution layer as K and V, while the video feature feato passes through the convolution layer as Q. V T represents the transposed matrix of V, Q T represents the transposed matrix of Q. Where softmax(·) represents the softmax function, which aims to normalize the attention map. Then, we calculate it by the following formula (2):
[0045] Attenfeature(Q,K,V)=softmax(Q T K)V T (2)
[0046] Finally, the feature Attenfeature(Q, K, V) extracted by the attention mechanism is concatenated with the original video feature feato and then sent to the generation network to obtain the final generated image.
[0047] Beneficial effects of the present invention:
[0048] Different from the previous audio-assisted post-processing solutions, the present invention utilizes the semantic correlation of audio and video in the process of encoding and decoding, and more efficiently utilizes the correlation to assist encoding and decoding.
[0049] The present invention uses audio features in the process of inferring non-key frames. And because the network is trained end-to-end, the audio features can affect both the encoding and decoding processes. In addition, the specially designed loss function includes the bitstream size, so that the network in the encoding end can learn by itself during training to reduce the repeated transmission of relevant information to effectively compress the bitstream, thereby reducing the loss function.
[0050] The present invention can not only reduce the repeated transmission of relevant information and thus reduce the transmission bandwidth, but also improve the subjective and objective quality of the video, bringing a smoother and clearer audio-visual experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a flow chart of the multi-modal joint encoding method of the present invention.
[0052] Figure 2 It is a schematic diagram of the audio-assisted face video encoding method of the present invention. DETAILED DESCRIPTION
[0053] The present invention will be further described in detail below in conjunction with the accompanying drawings.
[0054] The block diagram of the technical solution of the present invention is shown in the following figure:
[0055] Figure 1 The framework of the proposed audio-assisted face video coding scheme is given.
[0056] The input video and audio are encoded using a video encoder and an audio encoder respectively to obtain corresponding bit streams, which are recorded as Vbit and Abit.
[0057] At the decoding end, once the Vbit and Abit data streams are received, since decoding Vbit requires the use of features extracted from the audio, the audio decoder is preferentially used to decode the audio bitstream Abit to generate an audio file.
[0058] These decoded audio files can not only be used for playback directly, but also play an important role in the decoding process of video files. This is because in the video decoder, the process of generating non-key frames from non-key frame features requires the use of features extracted from audio. Subsequently, the video decoder uses these audio files and the video bitstream Vbit for decoding to generate video files for playback.
[0059] Figure 2 yes Figure 1 A specific embodiment of .
[0060] The encoding end mainly includes video encoder and audio encoder.
[0061] The audio encoder uses an audio coding method (such as advanced audio coding, linear prediction coding, etc.) to obtain an audio bit stream Abit.
[0062] The video is divided into two parts: key frames and non-key frames. The first frame is selected as the key frame and the remaining frames are selected as non-key frames. If the video duration is long, the frame played at the current moment is selected as the key frame and the remaining frames are selected as non-key frames at regular intervals.
[0063] If you want to generate a high-quality video, you can select a shorter interval for key frames.
[0064] Further, the key frames are encoded using an image / video encoding method (such as VVC, HEVC, etc.) to obtain a bitstream;
[0065] For non-key frames, a feature extraction network is first used to extract representation features. There is no limitation on the structure and parameters of the feature extraction network. For example, an Hourglass network based on a combination of a convolutional neural network and a generalized division normalization activation function can be used, etc.
[0066] The extracted non-key frame features are encoded to obtain a feature code stream of the non-key frame;
[0067] The features are inter-frame predicted, quantized and entropy encoded to obtain a bitstream. The specific feature compression process is: the features extracted from non-key frames and the reconstructed features are differentially calculated to obtain a residual, and then the residual is quantized into an integer. Then the quantized result is converted into a binary code, and finally the binary code is encoded using entropy coding to obtain a feature bitstream of non-key frames.
[0068] The key frame bitstream and the non-key frame feature bitstream together constitute the video bitstream Vbit.
[0069] The audio bitstream Abit and the video bitstream Vbit can be combined for network transmission or storage.
[0070] In the decoding end, the audio code stream Abit is first decoded using an audio decoding method to obtain an audio file;
[0071] Subsequently, the audio file will pass through a dedicated audio feature extraction module to extract audio features related to the video;
[0072] For the video bitstream, the key frame and non-key frame features are reconstructed respectively. Then, the key frame, non-key frame features and previously extracted audio features are used to generate the corresponding optical flow map and occlusion map through the audio-guided optical flow map generation module.
[0073] Then, based on the key frames, audio features, optical flow maps, and occlusion maps, non-key frames are generated through the audio-assisted inter-frame generation module;
[0074] Finally, the key frames and the generated non-key frames are combined to obtain a complete video file.
[0075] In the audio feature extraction module, audio feature extraction: in the video stream, each frame will select an audio file of a length corresponding to the currently decoded frame, and then calculate the audio features. There is no restriction on the feature type of audio, which can be a common Mel-frequency cepstral coefficient (MFCC) or perceptual linear prediction coefficient (PLP), etc.; the audio features are further processed with the help of a machine learning model to obtain audio features Afeat related to the video; there is no restriction on the structure and parameters of the machine learning model used for audio feature processing, for example: a long short-term memory network (LSTM) network with an introduced gated unit can be used, etc. There are many features in the audio, but not all features are related to the video, so the audio features Afeat related to the video are extracted from the audio and combined with the video features in subsequent operations.
[0076] The audio-guided optical flow map generation module.
[0077] The function of this module is to establish the motion relationship between the key frame and the current frame;
[0078] First, use the feature extraction network to extract the representative feature feat1 from the key frame, and reconstruct the representative feature feat2 of the current non-key frame. There is no limitation on the structure and parameters of the feature extraction network. You can refer to the feature extraction network for extracting non-key frame features at the encoder end.
[0079] Next, an optical flow algorithm is used to build a sparse optical flow map between feat1 and feat2, and the optical flow field is used to perform a preliminary image deformation estimation on the downsampled key frame to obtain the downsampled distorted image warpimg;
[0080] Then, perform a difference operation on feat1 and feat2 to obtain the feature difference, which is recorded as featd;
[0081] Input the distorted images warpimg and featd into the optical flow estimation network for dense motion estimation;
[0082] The structure and parameters of the optical flow estimation network are not limited and can be set according to actual needs. For example, an Hourglass network based on a combination of a convolutional neural network and a generalized division normalization activation function can be used.
[0083] Furthermore, the additional audio information is conducive to obtaining more accurate and robust optical flow maps and occlusion maps, so some structures for the interaction between video features and audio features can be added to the optical flow estimation network. There is no restriction on the interaction method of the two modalities, and methods such as multimodal feature fusion and multimodal feature guidance can be used. For example: you can use the Hourglass network based on a combination of a convolutional neural network and a generalized division normalization activation function, and replace some convolutional layers with adjustable weight convolutional layers;
[0084] The following is an embodiment of multimodal feature guidance based on an adjustable weight convolution layer, where the adjustable weight convolution layer uses the extracted audio feature Afeat to dynamically adjust the convolution layer weight ω ijk , thereby achieving audio-guided optical flow map generation.
[0085] The calculation formula of the specific adjustment process is shown in the following formula (1):
[0086]
[0087] Among them, i, j and k represent the number of input channels, output channels and the spatial position of the convolution kernel respectively, ε is a constant to prevent the denominator from being 0, Afeat i is the audio feature of the i-th channel, ω ijk is the weight of the convolution kernel. The output of the optical flow estimation network is the optical flow map and the occlusion map, which represent the motion relationship between the key frame and the current frame and are used in the next module. Specifically, the optical flow map is the offset direction and size of the pixel between the key frame and the current frame, and the occlusion map represents the credibility of the pixel at that point.
[0088] The audio-assisted inter-frame generation module is used to reconstruct video frames.
[0089] This module extracts texture features from key frames, including the face and part of the background, and then deforms the texture features using the optical flow map;
[0090] Since there is motion between the key frame and the current frame, not all pixels of the current frame can be found in the key frame. Therefore, it is necessary to multiply the deformed feature by the occlusion map to represent the credibility of the deformed feature, and the video feature after multiplying the occlusion map is recorded as feato
[0091] The video features feato are input into the generative model to obtain the reconstructed video frame.
[0092] Furthermore, the additional audio information is helpful to improve the quality of the reconstructed video frame. In order to further improve the quality of the reconstructed video frame, in some embodiments, the audio feature Afeat and the video feature feato can be fused and then input into the generative model. This fusion is helpful to further utilize the audio features and improve the quality of the final video. There is no restriction on the type of fusion method, and direct splicing, attention mechanism fusion, matrix operation fusion, feature projection fusion, etc. can be used;
[0093] The following is an implementation example based on the self-attention mechanism fusion. First, the audio feature AFeat is upsampled to the same size as the video feature and passed through the convolution layer as K and V, while the video feature feato is passed through the convolution layer as Q. VT represents the transposed matrix of V, Q T represents the transposed matrix of Q. Where softmax(·) represents the softmax function, which aims to normalize the attention map. Then, we calculate it by the following formula (2):
[0094] Attenfeature(Q,K,V)=softmax(Q T K)V T (2)
[0095] Finally, the feature Attenfeature(Q, K, V) extracted by the attention mechanism is concatenated with the original video feature feato, and then sent to the generation network to reconstruct the video frame.
[0096] The above is the process of testing. During the network training phase, the entire network uses an end-to-end training method to make the audio features affect both the encoding process and the decoding process, which not only improves the generation quality of non-keyframes, but also reduces the bit rate of non-keyframe features. Loss function It can be designed in the following forms:
[0097]
[0098] Among them, Rate(·) represents the number of bits required to convert into a binary code stream, which is usually obtained by estimation during the training phase. Quality(·,·) measures the quality of reconstruction, which can be measured using subjective quality indicators such as perceptual loss or DISTS. and is the loss function of the generative adversarial network, representing the loss function of the generator and the discriminator respectively.
[0099] When the indicators PSNR, SSIM, DISTS and LPIPS are used as quality indicators to calculate BD-rate, the present invention saves 9.88%, 7.22%, 8.00% and 8.26% compared with the existing single-modality face video encoding method.
[0100] When the indicators PSNR, SSIM, DISTS, and LPIPS are used as quality indicators to calculate the BD-rate, the present invention saves 3.35%, 2.90%, 19.02%, and 12.58% compared with the existing audio-assisted facial video post-processing method (the encoding and decoding method uses a single-modal facial video encoding method).
[0101] The present invention first uses two encoding methods to completely encode and decode the same video, and obtains the encoded bitstream size and the corresponding decoded video respectively. The two encoding methods can use different configuration parameters to obtain multiple different bitstream sizes and corresponding decoded videos. Then, the quality indicators (PSNR, SSIM, DISTS, LPIPS) are calculated for the decoded video respectively, and the calculated indicators and the corresponding bitstream size are plotted into a bitstream-quality curve, thereby calculating the BD-rate.
Claims
1. An audio-assisted face video coding method, It is characterized in that The steps include: Step 1: For the input video, use the video encoder to encode it to obtain the video bit stream Vbit; Step 2: Encode the input audio using an audio encoder to obtain an audio bit stream ABit; Step 3: Using an audio decoder to decode the audio code stream ABit to generate an audio file; Step 4: The video decoder uses the audio file and the video bit stream Vbit to decode and generate a video file for playback.
2. The method according to claim 1, It is characterized in that In step 1, the video is divided into two parts: key frames and non-key frames. The first frame is selected as the key frame and the remaining frames are selected as non-key frames. If the video duration is long, the frame played at the current moment is selected as the key frame and the remaining frames are selected as non-key frames at regular intervals.
3. The method for encoding face video with audio assistance according to claim 2, It is characterized in that Encode the key frame using an image / video encoding method to obtain a bit stream; For non-key frames, the feature extraction network is first used to extract the representation features, and the features are encoded to obtain the bitstream; Specifically, the feature extracted from the non-key frame and the reconstructed feature are differentially calculated to obtain the residual, and then the residual is quantized into an integer, and then the quantized result is converted into a binary code, and finally the binary code is encoded using entropy coding to obtain the feature code stream of the non-key frame; The key frame bitstream and the non-key frame feature bitstream together constitute the video bitstream Vbit.
4. The method for encoding face video with audio assistance according to claim 3, It is characterized in that In the step 2, the audio encoder encodes using an audio encoding method to obtain an audio bit stream ABit.
5. The method for encoding face video with audio assistance according to claim 4, It is characterized in that In step 3, the audio code stream Abit is first decoded using an audio decoding method to obtain an audio file; then, the audio file is passed through an audio feature extraction module to extract audio features related to the video; The audio feature extraction module performs audio feature extraction. In the video stream, each frame will select an audio file of a length corresponding to the currently decoded frame, and then calculate the audio features. The audio feature type is not limited.
6. The method for audio-assisted face video encoding according to claim 5, It is characterized in that The audio features are further processed with the help of a machine learning model to obtain audio features Afeat related to the video; there is no limitation on the structure and parameters of the machine learning model used for audio feature processing.
7. The method for encoding face video with audio assistance according to claim 6, It is characterized in that In step 4, for the video bitstream, key frame and non-key frame features are respectively reconstructed, and the key frame, non-key frame features and extracted audio features are used to generate corresponding optical flow maps and occlusion maps through an audio-guided optical flow map generation module; Then, based on the key frames, audio features, optical flow maps, and occlusion maps, non-key frames are generated through the audio-assisted inter-frame generation module; Finally, the key frames and the generated non-key frames are combined to obtain a complete video file.
8. The method for audio-assisted face video encoding according to claim 7, It is characterized in that The audio-guided optical flow map generation module establishes the motion relationship between the key frame and the current frame; First, a feature extraction network is used to extract representation features feat from key frames 1 , and reconstruct the representation feature feat of the current non-key frame 2 ; Secondly, using the optical flow algorithm in feat 1 and feat 2 A sparse optical flow map is established between them, and the optical flow field is used to perform preliminary image deformation estimation on the downsampled key frame to obtain the downsampled distorted image warpimg; Again, for feat 1 and feat 2 Perform a difference operation to obtain the feature difference, which is recorded as featd; The distorted images warpimg and featd are input into the optical flow estimation network for dense motion estimation.
9. The method for encoding face video with audio assistance according to claim 7, It is characterized in that The structure and parameters of the optical flow estimation network are not limited and can be set according to actual needs; Or use the Hourglass network based on a combination of a convolutional neural network and a generalized division normalization activation function, and replace some convolutional layers with convolutional layers with adjustable weights; The adjustable weight convolution layer uses the extracted audio feature Afeat to dynamically adjust the convolution layer weight ω ijk , thus achieving audio-guided optical flow map generation; The calculation formula of the specific adjustment process is shown in the following formula (1): Among them, i, j and k represent the number of input channels, output channels and the spatial position of the convolution kernel respectively, ε is a constant, and Afeat i is the audio feature of the i-th channel, ω ijk is the weight of the convolution kernel. The output of the optical flow estimation network is the optical flow map and the occlusion map, which represent the motion relationship between the key frame and the current frame and are used in the next module.
10. The method for audio-assisted face video encoding according to claim 9, It is characterized in that The optical flow map is the offset direction and size of the pixel between the key frame and the current frame, and the occlusion map represents the credibility of the pixel at that point; The audio-assisted inter-frame generation module generates a current frame using the key frame and the optical flow map and occlusion map obtained by the previous module with the assistance of audio; Extract texture features from key frames, including the face and part of the background, and then use the optical flow map to deform the texture features; The deformed feature is multiplied by the occlusion map to represent the credibility of the deformed feature, and the video feature after multiplying the occlusion map is recorded as feato; The video features feato are input into the generative model to obtain the reconstructed video frame. Or use the self-attention mechanism to fuse the audio feature Afeat and the video feature feato. Specifically, the audio feature Afeat is upsampled to the same size as the video feature and passes through the convolution layer as K and V, while the video feature feato passes through the convolution layer as Q, V T represents the transposed matrix of V, Q T represents the transposed matrix of Q, where softmax(·) represents the softmax function, which is then calculated by the following formula (2); Attenfeature(Q,K,V)=softmax(Q T K)V T (2) The feature Attenfeature(Q,K,V) extracted by the attention mechanism is concatenated with the original video feature feato, and then sent to GAN to obtain the final generated image.
Citation Information
Cited By
Audio and video joint coding and decoding method and system based on generative artificial intelligence
CN119583873A
Audio-assisted facial video coding method
WO2026007388A1
