Video quality assessment method, device, electronic device and readable storage medium
By extracting and fusing features at different levels in the video quality assessment model, combined with the hierarchical feature representation of Swin Transformer V1, the problem of shallow features being ignored in traditional methods is solved, and more accurate and robust video quality assessment is achieved.
Patent Information
- Application Number
- CN202410628040.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-05-21
Smart Images

Figure CN118229674B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and in particular to a video quality assessment method, device, electronic device and readable storage medium. Background Art
[0002] With the rapid development of online video streaming technology, video quality assessment has received more and more attention. Video quality assessment is mainly divided into two categories: subjective assessment and objective assessment. Subjective assessment requires people to watch the video and give a score, but this requires a lot of manpower and time. Therefore, objective video quality assessment methods have attracted much attention. They use algorithm models to predict video quality in an efficient and automatic way.
[0003] In recent years, deep learning technology has demonstrated excellent performance in the field of video quality assessment. Deep neural networks can automatically learn and extract deep features of videos to obtain more accurate assessment results. The main research direction is video quality assessment methods based on convolutional neural networks (CNNs), which can often capture visual quality information of videos from both spatial and temporal dimensions. However, convolutional neural networks have certain limitations in processing global context information and long-term dependency issues. Therefore, Transformer, a model that initially achieved great success in the field of natural language processing, has also begun to be applied to the field of vision. Transformer's self-attention mechanism can process global context information, giving it great potential in processing image and video tasks. However, the traditional Transformer-based video quality assessment network does not fully extract features, resulting in inaccurate quality assessment results. Summary of the invention
[0004] The purpose of the present invention is to provide a video quality assessment method, device, electronic device and readable storage medium to improve the problems existing in the prior art.
[0005] The embodiments of the present invention can be implemented as follows:
[0006] In a first aspect, the present invention provides a video quality assessment method, comprising:
[0007] Obtain a video frame sequence of a video to be evaluated;
[0008] Inputting the video frame sequence into a quality assessment model, and extracting features from the video frame sequence using a feature extraction network of the quality assessment model to obtain feature map sequences at N different feature levels; the size and number of channels of each feature map in all feature map sequences are consistent;
[0009] Using the fusion network of the quality assessment model to perform cross-layer feature fusion on N feature map sequences to obtain a fused feature map sequence;
[0010] The evaluation network of the quality evaluation model is used to perform feature evaluation on the fused feature map sequence to obtain a quality evaluation score of the video to be evaluated.
[0011] Optionally, the fusion network includes N-1 fusion modules;
[0012] The step of using the fusion network of the quality assessment model to perform cross-layer feature fusion on N feature map sequences to obtain a fused feature map sequence includes:
[0013] The first feature map sequence and the second feature map sequence are input into the first fusion module, and the first fusion module is used to perform cross-layer feature fusion and then output an intermediate fusion feature map sequence;
[0014] The intermediate fusion feature map sequence output by the n-1th fusion module and the n+1th feature map sequence are input into the nth fusion module, and the intermediate fusion feature map sequence is output after cross-layer feature fusion using the nth fusion module; wherein, ;
[0015] The intermediate fusion feature map sequence output by the N-1th fusion module is used as the fusion feature map sequence.
[0016] Optionally, the video frame sequence includes M video frames; the feature map sequence includes M feature maps corresponding to the M video frames one by one;
[0017] The intermediate fusion feature map sequence includes M intermediate fusion feature maps, wherein the mth intermediate fusion feature map is obtained by the fusion module fusing the mth first input feature map of the first input sequence and the mth second input feature map of the second input sequence; the first input sequence and the second input sequence are the first feature map sequence and the second feature map sequence, respectively, or the first input sequence and the second input sequence are the intermediate fusion feature map sequence output by the n-1th fusion module and the n+1th feature map sequence, respectively;
[0018] The fusion module adopts a skip connection structure, including a first merging layer, a second merging layer, an attention fusion unit and a 1×1 convolution layer; the process of the fusion module fusing the mth first input feature map of the first input sequence and the mth second input feature map of the second input sequence includes:
[0019] Using the first merging layer to merge the first input feature map and the second input feature map to obtain a first merged feature map; the feature level of the first input feature map is lower than that of the second input feature map;
[0020] Using the attention fusion unit, based on the attention mechanism, the first merged feature map is fused in the spatial dimension and the channel dimension to obtain a fusion weight;
[0021] The first input feature map and the second input feature map are weighted respectively by using the fusion weight and the difference between 1 and the first fusion weight to obtain a first weighted feature map and a second weighted feature map;
[0022] Using the second merging layer to merge the first input feature map, the first weighted feature map, the second weighted feature map, and the second input feature map to obtain a second merged feature map;
[0023] The second merged feature map is convolved using the 1×1 convolutional layer to obtain a corresponding intermediate fusion feature map.
[0024] Optionally, the attention fusion unit includes a channel attention unit, a spatial attention unit, a sub-merging layer, a concatenation layer and a weight calculation unit;
[0025] The step of using the attention fusion unit to fuse the first merged feature map in spatial dimension and channel dimension based on the attention mechanism to obtain a fusion weight includes:
[0026] Using the channel attention unit, extracting features from the first merged feature map based on the channel dimension to obtain a channel feature map;
[0027] Using the spatial attention unit, extracting features from the first merged feature map based on the spatial dimension to obtain a spatial feature map;
[0028] Using the sub-merging layer to merge the channel feature map and the spatial feature map to obtain an attention fusion feature map;
[0029] Using the series connection layer, channel-joining is performed on the first merged feature map and the attention fusion feature map to obtain a fused joint feature map;
[0030] The fused and spliced feature map is input into the weight calculation unit to calculate the fusion weights of the spatial dimension and the channel dimension.
[0031] Optionally, the video frame sequence includes M video frames; the fused feature map sequence includes M fused feature maps corresponding to the M video frames one by one; the evaluation network includes a channel dimension reduction unit, a reshaping layer, a size dimension reduction unit and a score calculation unit;
[0032] The step of using the evaluation network of the quality evaluation model to perform feature evaluation on the fused feature map sequence to obtain the quality evaluation score of the video to be evaluated includes:
[0033] Using the channel dimension reduction unit to perform channel dimension reduction on each of the fused feature maps to obtain M single-channel fused feature maps with a channel dimension of 1;
[0034] Using the reshaping layer to transform the dimensions of the M single-channel fusion feature maps to obtain a reshaped feature map;
[0035] Using the dimension reduction unit to reduce the dimension of the reshaped feature map to obtain a score sequence corresponding to the video frame sequence;
[0036] The score calculation unit is used to average the M scores of the scoring sequence to obtain a quality assessment score of the video to be assessed.
[0037] Optionally, the feature extraction network includes a feature extraction module and N-1 dimension unification modules;
[0038] The step of extracting features from the video frame sequence using the feature extraction network of the quality assessment model to obtain feature graph sequences at N different feature levels includes:
[0039] Using the feature extraction module to extract features from the video frame sequence, obtaining N output feature map sequences; the feature levels between the first output feature map sequence and the Nth output feature map sequence are increased;
[0040] Using the nth dimension unification module, each dimension of the nth output feature map sequence is transformed to be consistent with each dimension of the Nth output feature map sequence, thereby obtaining the nth feature map sequence; wherein, ; The Nth feature map sequence input into the fusion network is the Nth output feature map sequence.
[0041] Optionally, the feature extraction module includes a block flattening unit and N feature extraction units; the input of the nth fusion module is an output feature map sequence output by the nth feature extraction unit.
[0042] In a second aspect, the present invention provides a video quality assessment device, comprising:
[0043] An acquisition module, used to acquire a video frame sequence of a video to be evaluated;
[0044] A feature extraction module is used to input the video frame sequence into a quality assessment model, and use the feature extraction network of the quality assessment model to extract features from the video frame sequence to obtain feature map sequences of N different feature levels; the size and number of channels of each feature map in all feature map sequences are consistent;
[0045] A feature fusion module, used to perform cross-layer feature fusion on N feature map sequences using the fusion network of the quality assessment model to obtain a fused feature map sequence;
[0046] The scoring calculation module is used to perform feature evaluation on the fused feature map sequence using the evaluation network of the quality evaluation model to obtain a quality evaluation score of the video to be evaluated.
[0047] In a third aspect, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory stores a software program, and when the electronic device is running, the processor executes the software program to implement the video quality assessment method as described in the first aspect.
[0048] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the video quality assessment method described in the first aspect is implemented.
[0049] Compared with the prior art, the embodiments of the present invention provide a video quality assessment method, device, electronic device and readable storage medium, which inputs the video frame sequence of the video to be assessed into the quality assessment model, and then uses the feature extraction network of the quality assessment model to extract features from the video frame sequence to obtain feature graph sequences of N different feature levels, and the size and number of channels of each feature graph in all feature graph sequences are consistent; then, the fusion network of the quality assessment model is used to perform cross-layer feature fusion on the N feature graph sequences to obtain a fused feature graph sequence; finally, the evaluation network of the quality assessment model is used to perform feature evaluation on the fused feature graph sequence to obtain the quality assessment score of the video to be assessed. Compared with the prior art, the present invention provides extraction of features at different levels and fusion, which can make the evaluation result more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0051] Figure 1 One of the flowcharts of a video quality assessment method provided by an embodiment of the present invention.
[0052] Figure 2 This is one of the structural schematic diagrams of the quality assessment model provided by the embodiment of the present invention.
[0053] Figure 3 A structural schematic diagram of a feature extraction module provided in an embodiment of the present invention.
[0054] Figure 4 The second structural diagram of the quality assessment model provided by the embodiment of the present invention.
[0055] Figure 5 A structural diagram of a fusion module provided in an embodiment of the present invention.
[0056] Figure 6 A schematic diagram of the structure of an attention fusion unit provided in an embodiment of the present invention.
[0057] Figure 7 A schematic diagram of the structure of an evaluation network provided by an embodiment of the present invention.
[0058] Figure 8 A schematic diagram of the structure of a video quality assessment device provided by an embodiment of the present invention.
[0059] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the individual components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0061] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0062] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0063] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0064] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0065] As mentioned in the background technology section, the traditional Transformer-based video quality assessment network only focuses on the extraction and utilization of deep features, because deep features have significant advantages in expressing video content and capturing high-level abstract information. However, shallow features contain information about the basic texture, edge, and color of the video, which is equally important for reflecting the basic quality of the video. Therefore, ignoring shallow features can easily lead to inaccurate quality assessment results.
[0066] Based on the discovery of the above technical problems, the inventors have proposed the following technical solutions to solve or improve the above problems through creative work. It should be noted that the defects in the solutions in the above prior art are the results obtained by the inventors after practice and careful research. Therefore, the discovery process of the above problems and the solutions proposed in the embodiments of the present application for the above problems below should all be the contributions made by the inventors to the present application in the process of invention and creation, and should not be understood as technical contents known to those skilled in the art.
[0067] Through research, the inventors found that the main reason why the existing technology ignores shallow features is that there are large differences in the representation form and level between shallow features and deep features, and direct fusion is often difficult to achieve, or the effect after fusion is not ideal, resulting in limited accuracy in evaluating video quality. In addition, factors that need to be considered when designing a video quality assessment network include the accuracy and adaptability of the network. Accuracy requires the network to be able to capture the quality degradation in the video in detail, and adaptability means that the network should have good generalization capabilities and be able to adapt to a variety of different video content and degradation types. In real applications, such as content distribution networks, video sharing platforms, and video communication systems, the practicality and challenges of video quality assessment coexist.
[0068] Therefore, the embodiment of the present invention constructs a video quality assessment model, which supports extracting features at different levels and performing cross-layer feature fusion, and can overcome the limitations of the prior art and quickly and accurately obtain the quality assessment results of the video frames. The following is a detailed introduction.
[0069] Please refer to Figure 1 , Figure 1A flow chart of a video quality assessment method provided in an embodiment of the present invention. The video quality assessment method is applied to electronic devices. The electronic device can be a server, such as a single server or a server cluster, or a terminal, such as a smart phone, a laptop, a tablet computer, a desktop computer, or a chip system, which can be composed of a chip or include a chip and other discrete devices, etc. The embodiment of the present invention does not impose any restrictions on this. The video quality assessment method includes the following steps S101~S104:
[0070] S101: Obtain a video frame sequence of a video to be evaluated.
[0071] In this embodiment, the video frame sequence may include M video frames, which may be all video frames of the video to be evaluated, or may be randomly selected from all video frames of the video to be evaluated.
[0072] S102, inputting the video frame sequence into the quality assessment model, and using the feature extraction network of the quality assessment model to extract features from the video frame sequence to obtain feature graph sequences of N different feature levels.
[0073] The quality assessment model constructed by the present invention includes three parts: feature extraction network, fusion network and assessment network. Each feature map sequence includes M feature maps corresponding to M video frames, and the size and number of channels of each feature map in all feature map sequences are consistent.
[0074] S103. Use the fusion network of the quality assessment model to perform cross-layer feature fusion on the N feature map sequences to obtain a fused feature map sequence.
[0075] In this embodiment, the feature levels from the 1st feature map sequence to the Nth feature map sequence are increasing, that is, the 1st feature map sequence belongs to the shallow features of M video frames, and the Nth feature map sequence belongs to the deep features of M video frames. The fusion network can cross-layer fuse feature map sequences of N different feature levels to obtain a fused feature map sequence.
[0076] S104. Perform feature evaluation on the fused feature map sequence using the evaluation network of the quality evaluation model to obtain a quality evaluation score of the video to be evaluated.
[0077] In this embodiment, the evaluation network performs feature evaluation on the fused feature map sequence obtained through cross-layer feature fusion, which takes into account both the shallow and deep features of the video frame and greatly improves the accuracy of the final quality evaluation score.
[0078] The video quality assessment method provided by the embodiment of the present invention inputs the video frame sequence of the video to be assessed into the quality assessment model, thereby using the feature extraction network of the quality assessment model to extract features from the video frame sequence to obtain feature graph sequences of N different feature levels, and the size and number of channels of each feature graph in all feature graph sequences are consistent; then the fusion network of the quality assessment model is used to perform cross-layer feature fusion on the N feature graph sequences to obtain a fused feature graph sequence; finally, the evaluation network of the quality assessment model is used to perform feature evaluation on the fused feature graph sequence to obtain a quality assessment score of the video to be assessed. Compared with the prior art, the present invention provides extraction of features at different levels and fusion, which can make the evaluation result more accurate.
[0079] The feature extraction network of the quality assessment model constructed by the present invention is designed and constructed based on the backbone network of Swin Transformer V1. Swin Transformer V1 is a Transformer-based visual model, and its structure innovatively applies hierarchical Transformers in image recognition tasks, so that the network can effectively process the relationship between image regions. However, in the task of video quality assessment, the direct application of Swin Transformer V1 still has some limitations, especially in extracting features of different sizes and making accurate assessments.
[0080] Therefore, the present invention specially designs a fusion network in the quality assessment model. The fusion network fully considers and integrates the unique information of the feature map sequence output by each stage of the feature extraction network, and integrates features of different scales and abstract levels by performing cross-layer feature fusion successively, thereby solving the problem of fusing features of different sizes (levels).
[0081] Therefore, in the application process of the quality assessment model, the feature extraction network is used to extract features of different scales, and the image size and number of channels are unified. Then the fusion network performs cross-layer feature fusion one by one, and finally the evaluation network performs feature evaluation. The present invention combines the hierarchical feature representation capability of Swin Transformer V1 and the advantages of cross-layer feature fusion to capture quality changes in complex video sequences and achieve more accurate and robust video quality assessment. The following is a detailed introduction to the video quality assessment process based on the model structure of the quality assessment model.
[0082] For alternative implementations, see Figure 2 , Figure 2 This is one of the structural diagrams of the quality assessment model provided by the embodiment of the present invention. The feature extraction network may include a feature extraction module and N-1 dimension unification modules, and the fusion network includes N-1 fusion modules.
[0083] exist Figure 2 Based on the quality assessment model shown, the sub-steps of the above step S102 may include S102:
[0084] S1021, using a feature extraction module to extract features from a video frame sequence to obtain N output feature map sequences; the feature levels between the first output feature map sequence to the Nth output feature map sequence are increased;
[0085] S1022, using the nth dimension unification module, transforming each dimension of the nth output feature map sequence to be consistent with each dimension of the Nth output feature map sequence, to obtain the nth feature map sequence; wherein, .
[0086] See also Figure 3 , Figure 3 A structural diagram of a feature extraction module provided in an embodiment of the present invention. The feature extraction module includes a block flattening unit ( Figure 3 Patch Partition in), N feature extraction units (feature extraction unit 1~feature extraction unit N); the input of the nth fusion module is the output feature map sequence output by the nth feature extraction unit.
[0087] Figure 2 and Figure 3 In , the N output feature map sequences output by the feature extraction module are represented as: output sequence 1 ~ output sequence N. And the Nth feature map sequence input to the fusion network is the Nth output feature map sequence.
[0088] Figure 3 In the example, the block flattening unit (i.e., Patch Partition structure) can divide the input image into fixed-size image blocks (patches); the first feature extraction unit (i.e., Feature Extraction Unit 1) includes a linear embedding module (i.e., Linear Embedding structure) and a feature extraction module (i.e., Swin Transformer Block structure). The linear embedding module can map the pixel values of each image block (patch) to a low-dimensional vector representation, and the feature extraction module is responsible for feature extraction. Except for Feature Extraction Unit 1, the remaining feature extraction units all include a downsampling module (i.e., Patch Merging structure) and a feature extraction module (i.e., Swin Transformer Block structure). The downsampling module can downsample the image, and the feature extraction module is responsible for feature extraction.
[0089] It should be noted that the size of N may depend on the robustness requirement of the model, for example, N may be 3 to 5, which is not limited in the embodiment of the present invention.
[0090] In the optional examples, take N as 4 as an example, please refer to Figure 4 , the first dimension unified module ( Figure 4 Module 1) and the second dimension unified module ( Figure 4 Module 2) in the above example can include: a reshape layer, a fully connected layer, and a reshape layer connected in sequence; the third dimension unified module includes a 1×1 convolution layer. The reshape layer uses the reshape operation to change the shape of the multidimensional array, that is, to reorganize the dimensions of the array without changing the number of elements in the array.
[0091] Combination Figure 4 , the video frame sequence input to the feature extraction module includes M video frames (224×224×3), each of which has a size of 224×224 and 3 channels. The specifications of the 4 output feature map sequences output by the feature extraction module are:
[0092] (1) The first output feature map sequence is M×784×192, which means M output feature maps. The size of each output feature map is H×W=28×28=784 and the number of channels is 192.
[0093] (2) The second output feature map sequence is M×196×384, which means M output feature maps. The size of each output feature map is H×W=14×14=196 and the number of channels is 384.
[0094] (3) The third output feature map sequence is M×49×768, which means M output feature maps. The size of each output feature map is H×W=7×7=49 and the number of channels is 768.
[0095] (4) The fourth output feature map sequence is M×49×768, which means M output feature maps. The size of each output feature map is H×W=7×7=49 and the number of channels is 768.
[0096] Among them, 3 dimensions unified modules ( Figure 4 The feature map sequences output by modules 1 to 3 in the above figure are all M × 49 × 768. H is the image height, W is the image width, and H × W can be regarded as the spatial dimension.
[0097] This example is merely an example and is not intended to be limiting.
[0098] The structure of the fusion module is introduced below.
[0099] exist Figure 2 Based on the quality assessment model shown, step S103 may include sub-steps S1031 to S1033:
[0100] S1031, inputting the first feature map sequence and the second feature map sequence into a first fusion module, performing cross-layer feature fusion using the first fusion module, and then outputting an intermediate fused feature map sequence;
[0101] S1032, inputting the intermediate fusion feature map sequence output by the n-1th fusion module and the n+1th feature map sequence into the nth fusion module, performing cross-layer feature fusion using the nth fusion module, and outputting the intermediate fusion feature map sequence; wherein, ;
[0102] S1033. Use the intermediate fusion feature map sequence output by the N-1th fusion module as the fusion feature map sequence.
[0103] In this embodiment, the intermediate fusion feature map sequence includes M intermediate fusion feature maps, wherein the mth intermediate fusion feature map is obtained by the fusion module fusing the mth first input feature map of the first input sequence and the mth second input feature map of the second input sequence; the first input sequence and the second input sequence are the first feature map sequence and the second feature map sequence, respectively, or the first input sequence and the second input sequence are the intermediate fusion feature map sequence and the n+1th feature map sequence output by the n-1th fusion module, respectively.
[0104] Optional, see Figure 5 , Figure 5 A schematic diagram of the structure of a fusion module provided by an embodiment of the present invention. The fusion module adopts a skip connection structure, including a first merging layer, a second merging layer, an attention fusion unit and a 1×1 convolution layer;
[0105] Combination Figure 5 The fusion module shown in the figure is the first input feature map of the first input sequence ( Figure 5 In , i can reflect the feature level) and the mth second input feature map of the second input sequence ( Figure 5 In ) The process of fusion may include the following steps S001~S005:
[0106] S001. Use the first merging layer to merge the first input feature map and the second input feature map to obtain a first merged feature map; wherein the feature level of the first input feature map is lower than that of the second input feature map.
[0107] In this embodiment, the first merging layer adds the first input feature map and the second input feature map element by element, and the obtained first merged feature map is Figure 5 In .
[0108] S002. Using the attention fusion unit, based on the attention mechanism, the first merged feature map is fused in spatial dimension and channel dimension to obtain a fusion weight.
[0109] In this embodiment, the spatial dimension is the H×W dimension, and the channel dimension is the channel number dimension. The fusion weight is Figure 5 In .
[0110] S003. Use the fusion weight and the difference between 1 and the first fusion weight to weight the first input feature map and the second input feature map respectively to obtain a first weighted feature map and a second weighted feature map.
[0111] In this embodiment, the first weighted feature map is Figure 5 In , the second weighted feature map is Figure 5 In , the difference between 1 and the first fusion weight is .
[0112] S004, using a second merging layer to merge the first input feature map, the first weighted feature map, the second weighted feature map, and the second input feature map to obtain a second merged feature map;
[0113] In this embodiment, the second merged feature map is Figure 5 In .
[0114] S005. Use a 1×1 convolutional layer to convolve the second merged feature map to obtain a corresponding intermediate fusion feature map.
[0115] In this embodiment, the intermediate fusion feature map is Figure 5 In The fusion module fuses the mth first input feature map of the first input sequence and the mth second input feature map of the second input sequence to obtain the mth intermediate fused feature map of the intermediate fused feature map sequence.
[0116] Combination Figure 5 , the fusion module can be expressed as:
[0117]
[0118]
[0119] in, represents the intermediate fusion feature map output by the fusion module, Represents the dimensionality reduction operation of 1×1 convolution; represents the fusion weight of the attention fusion unit output, represents the operation of the attention fusion unit; and Represent the first input feature map and the second input feature map input to the fusion module respectively.
[0120] Combination Figure 5 ,The fusion module of the present invention can not only alleviate the gradient vanishing problem during training by implementing skip connections, but also help the model retain more original information, which provides additional support for model learning and makes network training more stable and efficient. In the fusion module, 1×1 convolution is used to project and reduce the dimension of features after feature fusion, making the features more compact and reducing the computational complexity.
[0121] Optional, see Figure 6 , Figure 6 A schematic diagram of the structure of an attention fusion unit provided by an embodiment of the present invention. The attention fusion unit may include a channel attention unit, a spatial attention unit, a sub-merging layer, a series layer, and a weight calculation unit.
[0122] Combination Figure 6 In the attention fusion unit shown, the sub-steps of step S002 may include S0021 to S0025:
[0123] S0021. Use the channel attention unit to extract features from the first merged feature map based on the channel dimension to obtain a channel feature map.
[0124] In this embodiment, the channel attention unit may include: a pooling layer (for global average pooling in the spatial dimension), a 1×1 convolution layer, a linear rectifier unit (ReLU), and a 1×1 convolution layer connected in sequence. Among them, the first 1×1 convolution layer plays the role of bottleneck compression, the purpose of which is to reduce the channel dimension of the feature map, thereby reducing model parameters and calculation amount, and reducing the number of channels. Reduce to ; The second 1×1 convolutional layer is used to restore the compressed channel dimension to the original dimension.
[0125] S0022. Use the spatial attention unit to extract features from the first merged feature map based on the spatial dimension to obtain a spatial feature map.
[0126] In this embodiment, the spatial attention unit may include: two pooling layers, a series layer, and a 7×7 convolution layer, wherein one pooling layer performs global average pooling on the first merged feature map along the channel dimension, and the other pooling layer performs global maximum pooling on the first merged feature map along the channel dimension, and the outputs of the two pooling layers are the inputs of the series layer. The series layer may be concat, which can integrate feature map information and realize channel superposition of feature maps.
[0127] S0023. Use the sub-merging layer to merge the channel feature map and the spatial feature map to obtain the attention fusion feature map.
[0128] S0024. Use the series layer to perform channel splicing on the first merged feature map and the attention fusion feature map to obtain a fused splicing feature map.
[0129] S0025. Input the fused and spliced feature map into the weight calculation unit to calculate the fusion weights of the spatial dimension and the channel dimension.
[0130] In this embodiment, the weight calculation unit may include: channel shuffle, 1×1 group convolution and activation function (sigmod) connected in sequence. Among them, channel shuffle is used to implement channel disorder. Assuming that a channel is regarded as a card, channel shuffle can implement channel shuffling. This example is only used to assist understanding.
[0131] It can be understood that shallow features contain rich edge and texture information, while deep features provide higher-level abstract information. The present invention adjusts shallow features and deep features through the fusion weights calculated by the attention fusion unit, so that the shallow features and the deep features are effectively combined together, achieving more comprehensive feature fusion.
[0132] Combination Figure 6 , the attention fusion unit can be expressed as:
[0133]
[0134] represents the fusion weight of the attention fusion unit output, represents the activation function, Represents 7×7 group convolution, the number is G, Indicates the channel shuffle operation. Represents the add operation of the sub-merging layer.
[0135] Among them, the channel attention unit can be expressed by the formula as follows:
[0136]
[0137] represents the output of the channel attention unit, represents 1×1 convolution, represents a linear rectifier unit, Indicates global average pooling in the spatial dimension.
[0138] Among them, the spatial attention unit can be expressed by the formula as follows:
[0139]
[0140] represents the output of the spatial attention unit, represents 7×7 convolution, Indicates channel concatenation (i.e. concat operation), represents global average pooling along the channel dimension, represents the global maximum pooling along the channel dimension;
[0141] Combination Figure 6 In the attention fusion unit of the present invention, the channel attention unit is used to focus on important feature channels in the channel dimension, and the spatial attention unit is used to focus on key areas in the image in the spatial dimension, so as to ensure that the attention fusion unit can carefully capture the spatial details and channel dependencies in the video quality assessment process. The fusion weight calculated by the attention fusion unit through the attention mechanism combines the context information and channel information, so the fusion weight can adaptively adjust the features of different levels, effectively enhancing the richness and accuracy of feature expression.
[0142] In an optional implementation, the fused feature map sequence includes M fused feature maps corresponding to the M video frames. Figure 7 , Figure 7 A schematic diagram of the structure of an evaluation network provided by an embodiment of the present invention, wherein the evaluation network may include a channel dimension reduction unit, a reshaping layer, a size dimension reduction unit, and a score calculation unit.
[0143] Combination Figure 7 The evaluation network shown, sub-steps of step S104 may include S1041-S1044: using the evaluation network of the quality evaluation model to perform feature evaluation on the fused feature map sequence to obtain the quality evaluation score of the video to be evaluated, including:
[0144] S1041. Perform channel dimension reduction on each fused feature map using a channel dimension reduction unit to obtain M single-channel fused feature maps with a channel dimension of 1.
[0145] In this embodiment, the input of the channel dimension reduction unit is a fused feature map sequence, and the fused feature map sequence is M×49×768, which means that it includes M fused feature maps, each of which has a size of H×W=7×7=49 and a number of channels of 768. The channel dimension reduction unit may include two fully connected layers, the first fully connected layer may reduce the number of channels from 768 to 64, and the second fully connected layer may reduce the number of channels from 64 to 1.
[0146] S1042. Use a reshaping layer to transform the dimensions of the M single-channel fusion feature maps to obtain a reshaped feature map.
[0147] In this embodiment, the reshaping layer is reshape, which outputs M 7×7 feature maps.
[0148] S1043. Use a dimension reduction unit to reduce the dimension of the reshaped feature map to obtain a score sequence corresponding to the video frame sequence.
[0149] In this embodiment, the dimension reduction unit may include two fully connected layers for reducing the spatial dimension (H×W dimension) to 1, thereby realizing global pooling of spatial information. The score sequence output by the dimension reduction unit may include M image scores corresponding to M video frames one by one.
[0150] S1044: Use a score calculation unit to average the M scores in the scoring sequence to obtain a quality assessment score for the video to be assessed.
[0151] In this embodiment, the score calculation unit may be a Mean method for calculating the mean.
[0152] It should be noted that the execution order of each step in the above method embodiment is not limited to that shown in the drawings, and the execution order of each step shall be based on the actual application situation.
[0153] Compared with the prior art, the embodiments of the present invention have the following beneficial effects.
[0154] First, the present invention designs a feature extraction network based on the Swin Transformer V1 backbone network, and builds a quality assessment model by combining the fusion network and the evaluation network. The feature extraction network is responsible for extracting features at different levels, the fusion network is responsible for fusing features at different levels, and the evaluation network is responsible for score evaluation, which makes the evaluation more comprehensive and improves the accuracy of video quality assessment. The quality assessment model has strong generalization ability and robustness.
[0155] Second, in the feature extraction network, the Swin Transformer V1 backbone network is used to extract features at different levels. In order to ensure that features at different levels can be fused, a dimension unification module corresponding to features at different levels is introduced into the feature fusion network, which is responsible for unifying the size and number of channels of the feature map.
[0156] Third, in order to better perform cross-layer feature fusion on feature graph sequences of N different levels, the present invention designs N-1 fusion modules in the fusion network, wherein the first fusion module is responsible for cross-layer fusion of the first feature graph sequence and the second feature graph sequence, and outputs an intermediate feature graph sequence, while the nth fusion module is responsible for cross-layer fusion of the intermediate fusion feature graph sequence output by the n-1th fusion module and the n+1th feature graph sequence, and outputs an intermediate feature graph sequence, and finally the intermediate fusion feature graph sequence output by the N-1th fusion module is the fusion feature graph sequence input to the evaluation network. In such a fusion network, the connection structure design between different fusion modules takes into account the complementarity of features at different levels, so that the quality assessment model has better adaptability when processing video content of different resolutions and sizes, and also enables the quality assessment model to flexibly process videos in various scenarios, whether static images or dynamically changing pictures.
[0157] Fourth, the structure of the fusion module of the present invention adopts jump connection, which can not only alleviate the gradient vanishing problem during training, but also help the model retain more original information, which provides additional support for model learning and makes network training more stable and efficient. In the fusion module, 1×1 convolution is used to project and reduce the dimension of features after feature fusion, so that the features can be more compact and the computational complexity is reduced.
[0158] Fifth, in the attention fusion unit of the present invention, the channel attention unit is used to focus on important feature channels in the channel dimension, and the spatial attention unit is used to focus on key areas in the image in the spatial dimension, so as to ensure that the attention fusion unit can carefully capture the spatial details and channel dependencies in the video quality assessment process. The fusion weight calculated by the attention fusion unit through the attention mechanism combines the context information and channel information, so the fusion weight can adaptively adjust the features of different levels, effectively enhancing the richness and accuracy of feature expression.
[0159] In order to execute the corresponding steps in the above method embodiment and various possible implementation modes, an implementation mode of a video quality assessment device is provided below.
[0160] See also Figure 8 , Figure 8 The schematic diagram of the structure of the video quality assessment device provided by the embodiment of the present invention is shown. The video quality assessment device 200 comprises: an acquisition module 210 , a feature extraction module 220 , a feature fusion module 230 and a score calculation module 240 .
[0161] An acquisition module 210 is used to acquire a video frame sequence of a video to be evaluated;
[0162] The feature extraction module 220 is used to input the video frame sequence into the quality assessment model, and use the feature extraction network of the quality assessment model to extract features from the video frame sequence to obtain feature map sequences of N different feature levels; the size and number of channels of each feature map in all feature map sequences are consistent;
[0163] A feature fusion module 230 is used to perform cross-layer feature fusion on N feature map sequences using a fusion network of a quality assessment model to obtain a fused feature map sequence;
[0164] The score calculation module 240 is used to perform feature evaluation on the fused feature map sequence using the evaluation network of the quality evaluation model to obtain a quality evaluation score of the video to be evaluated.
[0165] Optionally, the fusion network includes N-1 fusion modules. The feature fusion module 230 is used to use the fusion network of the quality assessment model to perform cross-layer feature fusion on N feature map sequences. When a fused feature map sequence is obtained, it is specifically used to: input the first feature map sequence and the second feature map sequence into the first fusion module, use the first fusion module to perform cross-layer feature fusion, and then output an intermediate fused feature map sequence; input the intermediate fused feature map sequence output by the n-1th fusion module and the n+1th feature map sequence into the nth fusion module, use the nth fusion module to perform cross-layer feature fusion, and then output an intermediate fused feature map sequence; wherein, ; The intermediate fusion feature map sequence output by the N-1th fusion module is used as the fusion feature map sequence.
[0166] Optionally, the video frame sequence includes M video frames; the feature map sequence includes M feature maps corresponding to the M video frames one by one. The intermediate fused feature map sequence includes M intermediate fused feature maps, wherein the mth intermediate fused feature map is obtained by the fusion module fusing the mth first input feature map of the first input sequence and the mth second input feature map of the second input sequence; the first input sequence and the second input sequence are respectively the first feature map sequence and the second feature map sequence, or the first input sequence and the second input sequence are respectively the intermediate fused feature map sequence output by the n-1th fusion module and the n+1th feature map sequence;
[0167] The fusion module adopts a jump connection structure, including a first merging layer, a second merging layer, an attention fusion unit and a 1×1 convolution layer; in the process of the fusion module fusing the mth first input feature map of the first input sequence and the mth second input feature map of the second input sequence, the feature fusion module 230 can be used to: merge the first input feature map and the second input feature map using the first merging layer to obtain a first merged feature map; the feature level of the first input feature map is lower than that of the second input feature map; use the attention fusion unit to fuse the first merged feature map in spatial dimension and channel dimension based on the attention mechanism to obtain a fusion weight; use the fusion weight and the difference between 1 and the first fusion weight to weight the first input feature map and the second input feature map respectively to obtain a first weighted feature map and a second weighted feature map; use the second merging layer to merge the first input feature map, the first weighted feature map, the second weighted feature map and the second input feature map to obtain a second merged feature map; use the 1×1 convolution layer to convolve the second merged feature map to obtain a corresponding intermediate fusion feature map.
[0168] Optionally, the attention fusion unit includes a channel attention unit, a spatial attention unit, a sub-merging layer, a series layer and a weight calculation unit; the feature fusion module 230 is used to use the attention fusion unit to fuse the first merged feature map in the spatial dimension and the channel dimension based on the attention mechanism to obtain the fusion weight. Specifically, it can be used to: use the channel attention unit to extract features from the first merged feature map based on the channel dimension to obtain a channel feature map; use the spatial attention unit to extract features from the first merged feature map based on the spatial dimension to obtain a spatial feature map; use the sub-merging layer to merge the channel feature map and the spatial feature map to obtain an attention fusion feature map; use the series layer to perform channel splicing on the first merged feature map and the attention fusion feature map to obtain a fused splicing feature map; input the fused splicing feature map into the weight calculation unit to calculate the fusion weights of the spatial dimension and the channel dimension.
[0169] Optionally, the video frame sequence includes M video frames; the fused feature map sequence includes M fused feature maps corresponding to the M video frames one by one. The evaluation network includes a channel dimension reduction unit, a reshaping layer, a size dimension reduction unit and a score calculation unit. The score calculation module 240 uses the evaluation network of the quality assessment model to perform feature evaluation on the fused feature map sequence to obtain the quality assessment score of the video to be evaluated. Specifically, it can be used to: use the channel dimension reduction unit to perform channel dimension reduction on each fused feature map to obtain M single-channel fused feature maps with a channel dimension of 1; use the reshaping layer to perform dimensional transformation on the M single-channel fused feature maps to obtain a reshaped feature map; use the size dimension reduction unit to perform size dimension reduction on the reshaped feature map to obtain a score sequence corresponding to the video frame sequence; use the score calculation unit to average the M scores of the score sequence to obtain the quality assessment score of the video to be evaluated.
[0170] Optionally, the feature extraction network includes a feature extraction module and N-1 dimension unification modules. The feature extraction module 220 is used to extract features from the video frame sequence using the feature extraction network of the quality assessment model to obtain feature graph sequences of N different feature levels. Specifically, it can be used to: extract features from the video frame sequence using the feature extraction module to obtain N output feature graph sequences; the feature levels between the 1st output feature graph sequence to the Nth output feature graph sequence are increased; using the nth dimension unification module, transform the dimensions of the nth output feature graph sequence to be consistent with the dimensions of the Nth output feature graph sequence to obtain the nth feature graph sequence; wherein, ; The Nth feature map sequence input to the fusion network is the Nth output feature map sequence.
[0171] Optionally, the feature extraction module includes a block flattening unit and N feature extraction units; the input of the nth fusion module is an output feature map sequence output by the nth feature extraction unit.
[0172] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the video quality assessment device 200 described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0173] See also Fig. 9 , Fig. 9 The electronic device 300 includes a processor 310 , a memory 320 , and a bus 330 , wherein the processor 310 is connected to the memory 320 via the bus 330 .
[0174] The memory 320 may be used to store software programs, for example, software programs corresponding to the video quality assessment apparatus 200 provided in the embodiment of the present invention. The processor 310 executes various functional applications and data processing to implement the video quality assessment method provided in the embodiment of the present invention by running the software programs stored in the memory 320.
[0175] Among them, the memory 320 can be but is not limited to: RAM (Random Access Memory), ROM (Read Only Memory), FLASH (Flash Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electric Erasable Programmable Read-Only Memory), etc.
[0176] The processor 310 may be an integrated circuit chip with signal processing capability. The processor 310 may be a general-purpose processor, including: CPU (Central Processing Unit), NP (Network Processor), etc.; it may also be: DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0177] Understandably, Fig. 9 The structure shown is for illustration only. The electronic device 300 may also include Fig. 9 More or fewer items than shown, or with Fig. 9 Different configurations are shown. Fig. 9 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0178] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the video quality assessment method disclosed in the above embodiment is implemented. The computer-readable storage medium can be, but is not limited to, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a PROM, an EPROM, an EEPROM, a FLASH disk, or an optical disk.
[0179] In summary, the embodiments of the present invention provide a video quality assessment method, device, electronic device and readable storage medium. The video frame sequence of the video to be evaluated is input into the quality assessment model, and the feature extraction network of the quality assessment model is used to extract features from the video frame sequence to obtain feature graph sequences of N different feature levels, and the size and number of channels of each feature graph in all feature graph sequences are consistent; then the fusion network of the quality assessment model is used to perform cross-layer feature fusion on the N feature graph sequences to obtain a fused feature graph sequence; finally, the evaluation network of the quality assessment model is used to perform feature evaluation on the fused feature graph sequence to obtain a quality assessment score for the video to be evaluated. Compared with the prior art, the present invention provides extraction of features at different levels and fusion, which can make the evaluation result more accurate.
[0180] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A video quality assessment method, characterized in that: include: Obtain a video frame sequence of a video to be evaluated; the video frame sequence includes M video frames; Inputting the video frame sequence into a quality assessment model, and using a feature extraction network of the quality assessment model to extract features from the video frame sequence to obtain feature map sequences of N different feature levels; the feature map sequences include M feature maps corresponding to the M video frames one by one, and the size and number of channels of each feature map in all feature map sequences are consistent; Using the fusion network of the quality assessment model to perform cross-layer feature fusion on N feature map sequences to obtain a fused feature map sequence; Using the evaluation network of the quality evaluation model to perform feature evaluation on the fused feature graph sequence to obtain a quality evaluation score of the video to be evaluated; The feature extraction network includes a feature extraction module and N-1 dimension unification modules; the step of extracting features from the video frame sequence using the feature extraction network of the quality assessment model to obtain feature graph sequences of N different feature levels includes: Using the feature extraction module to extract features from the video frame sequence, obtaining N output feature map sequences; the feature levels between the first output feature map sequence and the Nth output feature map sequence are increased; Using the first dimension unification module, transform each dimension of the first output feature map sequence to be consistent with each dimension of the Nth output feature map sequence, and obtain the first feature map sequence; Using the nth dimension unification module, the dimensions of the nth output feature map sequence are transformed to be consistent with the dimensions of the Nth output feature map sequence, thereby obtaining the nth feature map sequence; wherein, ; The Nth feature map sequence input into the fusion network is the Nth output feature map sequence; The fusion network includes N-1 fusion modules; the step of using the fusion network of the quality assessment model to perform cross-layer feature fusion on N feature map sequences to obtain a fused feature map sequence includes: Input the first feature map sequence and the second feature map sequence into the first fusion module, and use the first fusion module to perform cross-layer feature fusion and then output an intermediate fusion feature map sequence; the intermediate fusion feature map sequence includes M intermediate fusion feature maps, wherein the mth intermediate fusion feature map is obtained by the fusion module fusing the mth first input feature map of the first input sequence and the mth second input feature map of the second input sequence; the first input sequence and the second input sequence are the first feature map sequence and the second feature map sequence, respectively, or the first input sequence and the second input sequence are the intermediate fusion feature map sequence and the n+1th feature map sequence output by the n-1th fusion module, respectively; The intermediate fusion feature map sequence output by the n-1th fusion module and the n+1th feature map sequence are input into the nth fusion module, and the intermediate fusion feature map sequence is output after cross-layer feature fusion using the nth fusion module; wherein, ; The intermediate fusion feature map sequence output by the N-1th fusion module is used as the fusion feature map sequence; The fusion module adopts a skip connection structure, including a first merging layer, a second merging layer, an attention fusion unit and a 1×1 convolution layer; the process of the fusion module fusing the mth first input feature map of the first input sequence and the mth second input feature map of the second input sequence includes: Using the first merging layer to merge the first input feature map and the second input feature map to obtain a first merged feature map; the feature level of the first input feature map is lower than that of the second input feature map; Using the attention fusion unit, based on the attention mechanism, the first merged feature map is fused in the spatial dimension and the channel dimension to obtain a fusion weight; The first input feature map and the second input feature map are weighted respectively by using the fusion weight and the difference between 1 and the fusion weight to obtain a first weighted feature map and a second weighted feature map; Using the second merging layer to merge the first input feature map, the first weighted feature map, the second weighted feature map, and the second input feature map to obtain a second merged feature map; The second merged feature map is convolved using the 1×1 convolutional layer to obtain a corresponding intermediate fusion feature map.
2. The method according to claim 1, characterized in that The attention fusion unit includes a channel attention unit, a spatial attention unit, a sub-merging layer, a series layer and a weight calculation unit; The step of using the attention fusion unit to fuse the first merged feature map in spatial dimension and channel dimension based on the attention mechanism to obtain a fusion weight includes: Using the channel attention unit, extracting features from the first merged feature map based on the channel dimension to obtain a channel feature map; Using the spatial attention unit, extracting features from the first merged feature map based on the spatial dimension to obtain a spatial feature map; Using the sub-merging layer to merge the channel feature map and the spatial feature map to obtain an attention fusion feature map; Using the series connection layer, channel-joining is performed on the first merged feature map and the attention fusion feature map to obtain a fused joint feature map; The fused and spliced feature map is input into the weight calculation unit to calculate the fusion weights of the spatial dimension and the channel dimension.
3. The method according to claim 1, characterized in that: The fused feature map sequence includes M fused feature maps corresponding to the M video frames one by one; the evaluation network includes a channel dimension reduction unit, a reshaping layer, a dimension reduction unit and a score calculation unit; The step of using the evaluation network of the quality evaluation model to perform feature evaluation on the fused feature map sequence to obtain the quality evaluation score of the video to be evaluated includes: Using the channel dimension reduction unit to perform channel dimension reduction on each of the fused feature maps to obtain M single-channel fused feature maps with a channel dimension of 1; Using the reshaping layer to transform the dimensions of the M single-channel fusion feature maps to obtain a reshaped feature map; Using the dimension reduction unit to reduce the dimension of the reshaped feature map to obtain a score sequence corresponding to the video frame sequence; The score calculation unit is used to average the M scores of the scoring sequence to obtain a quality assessment score of the video to be assessed.
4. The method according to claim 3, characterized in that The feature extraction module includes a block flattening unit and N feature extraction units; the input of the nth fusion module is the output feature map sequence output by the nth feature extraction unit.
5. A video quality assessment device, characterized in that: include: An acquisition module, used to acquire a video frame sequence of a video to be evaluated; the video frame sequence includes M video frames; A feature extraction module is used to input the video frame sequence into a quality assessment model, and use the feature extraction network of the quality assessment model to extract features from the video frame sequence to obtain feature map sequences of N different feature levels; the feature map sequences include M feature maps corresponding to the M video frames one by one, and the size and number of channels of each feature map in all feature map sequences are consistent; A feature fusion module, used to perform cross-layer feature fusion on N feature map sequences using the fusion network of the quality assessment model to obtain a fused feature map sequence; A scoring calculation module, used to perform feature evaluation on the fused feature graph sequence using the evaluation network of the quality evaluation model to obtain a quality evaluation score of the video to be evaluated; Wherein, the feature extraction network includes a feature extraction module and N-1 dimension unification modules; the feature extraction module is specifically used to: use the feature extraction module to extract features from the video frame sequence to obtain N output feature map sequences; the feature level between the 1st output feature map sequence to the Nth output feature map sequence is increased; use the 1st dimension unification module to transform each dimension of the 1st output feature map sequence to be consistent with each dimension of the Nth output feature map sequence to obtain the 1st feature map sequence; use the nth dimension unification module to transform each dimension of the nth output feature map sequence to be consistent with each dimension of the Nth output feature map sequence to obtain the nth feature map sequence; wherein, ; The Nth feature map sequence input into the fusion network is the Nth output feature map sequence; Wherein, the fusion network includes N-1 fusion modules; the feature fusion module is specifically used to: input the first feature map sequence and the second feature map sequence into the first fusion module, use the first fusion module to perform cross-layer feature fusion and then output an intermediate fusion feature map sequence; the intermediate fusion feature map sequence includes M intermediate fusion feature maps, wherein the mth intermediate fusion feature map is obtained by the fusion module fusing the mth first input feature map of the first input sequence and the mth second input feature map of the second input sequence; the first input sequence and the second input sequence are respectively the first feature map sequence and the second feature map sequence, or the first input sequence and the second input sequence are respectively the intermediate fusion feature map sequence output by the n-1th fusion module and the n+1th feature map sequence; the intermediate fusion feature map sequence output by the n-1th fusion module and the n+1th feature map sequence are input into the nth fusion module, and the nth fusion module is used to perform cross-layer feature fusion and then output the intermediate fusion feature map sequence; wherein, ; Using the intermediate fusion feature map sequence output by the N-1th fusion module as the fusion feature map sequence; Among them, the fusion module adopts a jump connection structure, including a first merging layer, a second merging layer, an attention fusion unit and a 1×1 convolution layer; in the process of the fusion module fusing the mth first input feature map of the first input sequence and the mth second input feature map of the second input sequence, the feature fusion module is specifically used to: merge the first input feature map and the second input feature map using the first merging layer to obtain a first merged feature map; the feature level of the first input feature map is lower than that of the second input feature map; using the attention fusion unit, based on the attention mechanism, the first merged feature map is fused in spatial dimension and channel dimension to obtain a fusion weight; using the fusion weight and the difference between 1 and the fusion weight to weight the first input feature map and the second input feature map respectively to obtain a first weighted feature map and a second weighted feature map; using the second merging layer to merge the first input feature map, the first weighted feature map, the second weighted feature map and the second input feature map to obtain a second merged feature map; using the 1×1 convolution layer to convolve the second merged feature map to obtain a corresponding intermediate fusion feature map.
6. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores a software program, and when the electronic device is running, the processor executes the software program to implement the video quality assessment method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the video quality assessment method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Face-changing video tampering detection method and system based on multi-domain feature fusion
CN112734696A
No-reference video quality evaluation method fusing spatio-temporal features
CN112954312A
Image data quality evaluation method and apparatus, terminal device, and readable storage medium
US20240046440A1
