3D-HEVC depth map coding unit division method based on local feature and global feature extraction network
Through the method based on local feature and global feature extraction network, the problem of high complexity of depth map coding unit division in 3D-HEVC is solved, fast coding and efficient coding are achieved, and the 3D video coding speed is significantly improved.
Patent Information
- Application Number
- CN202410510362.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-26
- Publication Date
- 2024-09-10
AI Technical Summary
The depth map coding unit division process in 3D-HEVC is complex, resulting in high coding complexity and affecting the 3D video coding speed.
Using a method based on local features and global feature extraction networks, by constructing a global image feature extraction network and a local image feature extraction network, combined with the residual module, feature distillation module and CBAM attention mechanism module, the network structure is dynamically adjusted to extract the depth map. Features to reduce the complexity of coding unit division.
It significantly reduces the coding complexity of 3D-HEVC, increases the coding speed, maintains the distortion performance of the coding rate, and achieves fast coding.
Smart Images

Figure CN118632024A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video compression coding, and in particular to a 3D-HEVC depth map coding unit division method based on a local feature and global feature extraction network. Background Art
[0002] In recent years, with the rapid development of mobile communication technology, 3D video has gradually received more and more attention. 3D-HEVC introduces depth maps and many coding technologies for depth maps based on the HEVC standard. It uses the multi-view video plus depth (MVD) format to encode 3D videos, and then introduces depth image based rendering (DIBR) to synthesize virtual viewpoints between real viewpoints. The emergence of these new coding technologies has greatly improved the compression performance of 3D-HEVC, but it has also brought huge depth map coding complexity, which seriously slows down the speed of 3D video encoding and decoding. In particular, the division step of the depth map coding unit (CU) in the encoding process is extremely complex and time-consuming, accounting for about 90% of the overall coding complexity, which has become the key to hindering the large-scale application of 3D-HEVC.
[0003] In recent years, a large number of related studies have been carried out to achieve 3D-HEVC fast coding. Many traditional methods focus on the texture features, edge types or spatiotemporal correlation of texture maps and depth maps, and judge CU classification through relatively cumbersome manual threshold extraction, which limits the generalization performance of the algorithm to a certain extent. With the continuous development and growth of deep neural networks, 3D-HEVC fast coding methods based on deep learning continue to emerge. These methods use the characteristics of deep learning to spontaneously extract original signal features and automatically learn hierarchical expression of features, obtain CU division or prediction mode selection rules from a large amount of training data, and significantly improve coding efficiency. Based on the 3D-HEVC standard, the present invention proposes a deep map CU fast division method based on convolutional neural networks (CNN). The prediction of the CU division structure is used to speed up the complex and time-consuming depth map CU division process, which can effectively reduce the coding complexity of 3D-HEVC and achieve fast coding while keeping the rate-distortion performance almost unchanged. Summary of the invention
[0004] The purpose of the present invention is to propose a 3D-HEVC depth map coding unit division method based on a local feature and global feature extraction network to address the problem that the CU division process used in the current 3D-HEVC depth map coding is highly complex, thereby affecting the 3D video coding speed.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] Step 1: Build a dataset of encoded videos for training and testing
[0007] First, the depth maps of 6 standard test sequences with different video content and different lens characteristics are selected for training and testing, including two resolutions of 1024*768 and 1920*1088. Then all the selected sequences are encoded on the 3D-HEVC reference software HTM16.0. The encoding is performed under 4 different quantization parameters QPs, and the values of QPs are 34, 39, 42, and 45 respectively. After encoding, the coding unit CU of size 64*64 containing depth information and the coding partition labels under the four QPs are composed of a training / testing sample. Finally, a data set is composed of several samples with shuffled order, where the training set contains a total of 185100 samples from the Kendo and Undo_Dancer sequences, the validation set contains a total of 7020 samples from the Balloons and Poznan_Hall2 sequences, and the test set contains a total of 14040 samples from the Newspaper and Poznan_Street sequences.
[0008] Step 2: Build a global image feature extraction network branch
[0009] The network specifically includes two global image feature extraction branches and one local image feature extraction branch. The two network branches including the residual module are responsible for extracting global image features. The learned features are used as a reference for the low-depth level division structure in the depth map division. Based on the idea of multi-level feature fusion, the first branch directly transmits 64*64 samples into the preprocessing operation part to remove the mean and normalize the input pixels. The second branch first undergoes a convolution operation with a convolution kernel of 2*2, and relies on the convolution operation stride length of the same size as the convolution kernel to reduce the feature through non-overlapping convolution. Figure 1The spatial size of the first branch is 64*64, and the underlying features in the global image features are extracted. Then the 32*32 feature map is preprocessed. For the first branch, the features with a spatial size of 64*64 enter the residual module after the preprocessing part. The design of the residual module includes an overlapping convolution layer with a convolution kernel of 3*3 and three consecutive residual units, and the residual unit is composed of two overlapping convolution layers with a convolution kernel of 3*3. The Leaky ReLU activation function is used to add nonlinear features to the network. The parameters of the rectifier are adaptively learned during the training process and the accuracy of the parameters is effectively improved. At the output of the last convolution layer, a jump connection is made with the original input and element-by-element addition is performed to reduce the influence of noise. The branch then passes through an overlapping convolution layer with a convolution kernel of 3*3 to obtain the feature vector of the branch output. For the second branch, the 32*32 samples are firstly entered into the residual module with the same structure as the first branch after preprocessing, and then a feature distillation module is added after the residual module to further enhance its global image feature extraction capability. The feature distillation module consists of three network structures similar to residual units. Its output and original input are concatenated together after passing through a convolution layer with a 1*1 convolution kernel and a Leaky ReLU activation function, so that the number of channels of the output feature map becomes 4 times that of the input, enriching the extracted global image features, and then passing through a convolution layer with a 1*1 convolution kernel and a Leaky ReLU activation function to obtain the final output of the second branch.
[0010] Step 3: Construct local image feature extraction network branch
[0011] The input of this branch first passes through the dynamic module to obtain a local feature map of size 16*16, and then passes through the CBAM attention mechanism module to extract all the features on the local sample relative to the original input, thereby forming a local image feature stream in the dual feature stream network. The designed dynamic module will dynamically adjust its structure according to the different QP values. It can solve the problem that the coding unit division structure becomes more complex as the QP decreases, resulting in higher requirements for the network's local information extraction capabilities, and effectively prevent huge differences in encoding speeds under different QPs. It is characterized in that when (texture QP, depth QP) takes the values of (30,39), (35,42) and (40,45), there is no huge difference in the coding unit division structure. At this time, the dynamic module adopts the method shown in the appendix Figure 4 In the structure shown in (1), the input first passes through a non-overlapping convolution layer with a convolution kernel of 4*4 to obtain a feature map with a spatial size of 1 / 4 of the original size, and then undergoes normalization operations such as de-averaging to obtain the output of the dynamic module; when the value of (texture QP, depth QP) is (25,34), the coding unit division structure at this time is significantly different from the division structure under the above three values. The dynamic module adopts the structure shown in Appendix Figure 4In the structure shown in (2), the input is firstly detected by the Canny edge detection algorithm with low detection error rate and relatively accurate edge positioning to find the feature map with the highest edge complexity of 16*16, and then the output of the dynamic module is obtained by normalization operations such as demeaning, and then enters the CBAM attention mechanism module. The CBAM attention mechanism module consists of three Conv-CBAM sub-blocks, each of which consists of an overlapping convolution layer with a convolution kernel of 3*3 and a CBAM module. The CBAM module includes a channel attention module CAM that generates a channel attention map using the relationship between input feature channels and a spatial attention module SAM that generates a spatial attention map using the spatial relationship of input features. Its input is firstly passed through CAM, and then the output is multiplied element by element with the original input and sent to SAM. The output of SAM is then multiplied element by element with the input of SAM to obtain the final output. The dual feature stream network uses the design of three Conv-CBAM sub-blocks in succession, which effectively strengthens the identification and learning of important local information screened and extracted in the dynamic module, and finally obtains the output of the local image feature stream.
[0012] Step 4: Construct the feature flow integration output part
[0013] The global image feature streams extracted by the first and second branches of the dual feature stream network and the local image feature stream extracted by the last network branch are sent to the merging layer for integration, making full use of all the extracted features and the correlation between branches. The merged feature vectors are passed through two fully connected layers with ReLU as the activation function and one output layer with Sigmoid as the activation function to obtain the final division result of the coding unit, which will be used as a reference in the actual 3D video encoding process. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0015] Figure 1 It is a schematic diagram of the overall process of the 3D-HEVC depth map coding unit division method based on the local feature and global feature extraction network in the present invention;
[0016] Figure 2 It is a schematic diagram of the residual module process in the present invention;
[0017] Figure 3 This is a schematic diagram of the characteristic distillation module process in the present invention;
[0018] Figure 4 It is a schematic diagram of the dynamic module flow in the present invention;
[0019] Figure 5This is a schematic diagram of the CBAM attention mechanism module flow in the present invention; DETAILED DESCRIPTION
[0020] The present invention mainly realizes fast division of 3D-HEVC depth map CU. In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0021] Specifically, the overall process of the 3D-HEVC depth map coding unit division method based on the local feature and global feature extraction network is shown in the appendix Figure 1 As shown, the following steps are included:
[0022] S1. Build a coded video dataset for training and testing;
[0023] S2, building a global image feature extraction network branch;
[0024] S3, construct a local image feature extraction network branch;
[0025] S4, construct the feature flow integration output part;
[0026] S5, train the dual feature stream network and test it;
[0027] (1) For S1: Build a coded video dataset for training and testing
[0028] The dataset is composed of depth maps of 6 standard test sequences with different video contents and lens characteristics, including 1024*768 and 1920*1088 resolutions. The training set contains 185,100 samples from Kendo and Undo_Dancer sequences, the validation set contains 7,020 samples from Balloons and Poznan_Hall2 sequences, and the test set contains 14,040 samples from Newspaper and Poznan_Street sequences. The samples are composed of 64*64 coding units CU containing depth information and coding partition labels under four QPs. The labels are obtained by encoding all selected sequences on the 3D-HEVC reference software HTM16.0. The encoding is performed under four different quantization parameters QPs, and the values of QPs are 34, 39, 42, and 45 respectively.
[0029] (2) For S2: Construct a global image feature extraction network branch
[0030] The network specifically includes two global image feature extraction branches and one local image feature extraction branch, as shown in the Appendix Figure 1As shown in the figure. The two network branches including the residual module are responsible for extracting global image features. The learned features are used as reference for the low-depth level division structure in the depth map division. Based on the idea of multi-level feature fusion, the first branch directly transmits 64*64 samples into the preprocessing operation part, removes the mean, and normalizes the input pixels. The second branch first undergoes a convolution operation with a convolution kernel of 2*2, and relies on the convolution operation stride length of the same size as the convolution kernel to reduce the feature by non-overlapping convolution. Figure 1 The spatial size of the first branch is 64*64, and the features are preprocessed before entering the residual module. The specific structure of the residual module is shown in the appendix. Figure 2 As shown in the figure, its design includes an overlapping convolution layer with a convolution kernel of 3*3 and three consecutive residual units, and the residual unit is composed of two overlapping convolution layers with a convolution kernel of 3*3. The LeakyRelu activation function is used to add nonlinear features to the network. During the training process, the parameters of the rectifier are adaptively learned and the accuracy of the parameters is effectively improved. In addition, the output of the last convolution layer is jump-connected to the original input and added element by element to reduce the impact of noise. The branch then passes through an overlapping convolution layer with a convolution kernel of 3*3 to obtain the feature vector of the branch output. For the second branch, the 32*32 samples are first preprocessed and enter the residual module with the same structure as the first branch. Then a feature distillation module is added after the residual module to further enhance its global image feature extraction capability. The specific structure of the feature distillation module is shown in the appendix Figure 3 As shown in the figure, it is composed of three network structures similar to residual units. Its output and original input are concatenated together after passing through a convolution layer with a convolution kernel of 1*1 and a Leaky ReLU activation function, so that the number of channels of the output feature map becomes 4 times that of the input, enriching the extracted global image features, and then passing through a convolution layer with a convolution kernel of 1*1 and a Leaky ReLU activation function to obtain the final output of the second branch.
[0031] (3) For S3: Constructing a local image feature extraction network branch
[0032] The input of this branch first passes through the dynamic module to obtain a local feature map of size 16*16, and then passes through the CBAM attention mechanism module to extract all the features on the local sample relative to the original input, thereby forming the local image feature stream in the dual feature stream network. The specific structures of the dynamic module and the CBAM attention mechanism module are shown in the appendix. Figure 4 , Figure 5As shown. The designed dynamic module will dynamically adjust its structure according to the different QP values, which can solve the problem that the coding unit division structure becomes more complicated as the QP decreases, resulting in higher requirements for the network's local information extraction capabilities, and effectively prevent the huge difference in encoding speed under different QPs. It is characterized in that when (texture QP, depth QP) takes the values of (30,39), (35,42) and (40,45), there is no huge difference in the coding unit division structure. At this time, the dynamic module adopts the following method as shown in Appendix Figure 4 In the structure shown in (1), the input first passes through a non-overlapping convolution layer with a convolution kernel of 4*4 to obtain a feature map with a spatial size of 1 / 4 of the original size, and then undergoes normalization operations such as de-averaging to obtain the output of the dynamic module; when the value of (texture QP, depth QP) is (25,34), the coding unit division structure at this time is significantly different from the division structure under the above three values. The dynamic module adopts the structure shown in Appendix Figure 4 In the structure shown in (2), the input is firstly detected by the Canny edge detection algorithm with low detection error rate and relatively accurate edge positioning to find the feature map with the highest edge complexity of 16*16, and then the output of the dynamic module is obtained by normalization operations such as demeaning, and then enters the CBAM attention mechanism module. The CBAM attention mechanism module consists of three Conv-CBAM sub-blocks, each of which consists of an overlapping convolution layer with a convolution kernel of 3*3 and a CBAM module. The CBAM module includes a channel attention module CAM that generates a channel attention map using the relationship between input feature channels and a spatial attention module SAM that generates a spatial attention map using the spatial relationship of input features. Its input is firstly passed through CAM, and then the output is multiplied element by element with the original input and sent to SAM. The output of SAM is then multiplied element by element with the input of SAM to obtain the final output. The dual feature stream network uses the design of three Conv-CBAM sub-blocks in succession, which effectively strengthens the identification and learning of important local information screened and extracted in the dynamic module, and finally obtains the output of the local image feature stream.
[0033] (4) For S4: Construct the feature flow integration output part
[0034] The global image feature streams extracted by the first and second branches of the dual feature stream network and the local image feature stream extracted by the last network branch are sent to the merging layer for integration, making full use of all the extracted features and the correlation between branches. The merged feature vectors are passed through two fully connected layers with ReLU as the activation function and one output layer with Sigmoid as the activation function to obtain the final division result of the coding unit, which will be used as a reference in the actual 3D video encoding process.
[0035] (5) For S5: Train the dual feature stream network and test
[0036] The training process uses the Momentum optimizer, and the model is trained and tested under the depth map QP value (34, 39, 42, 45). The batch size is set to 80, the initial learning rate is set to 0.0001, and a total of 20,000 iterations are performed. The learning rate is dynamically adjusted during the training process: the decay step size of 5000 generations is used in the first 10,000 iterations, that is, the learning rate decays at a rate of 0.1 every 5,000 iterations; the decay step size is halved in the next 10,000 iterations, that is, the learning rate decays at a rate of 0.1 every 2,500 iterations. Since the output of the network is a large number of division marks with values not 0 or 1, it belongs to the category of binary classification models, so the cross entropy loss function is used in the training process. After the training is completed, it is tested on 4 test sequences, and the test results are shown in Table 1. Based on the experimental data analysis in Table 1, the video sequence after the CU division is optimized by the method of the present invention has been significantly improved in encoding time.
[0037] Table 1 Comparison of encoding time with the original method
[0038]
[0039] The above specific implementation modes are only used to illustrate the technical solutions of the present invention, but not to limit the technical solutions.
Claims
1. A 3D-HEVC depth map coding unit division method based on local feature and global feature extraction network, characterized in that: The following steps are involved: First: Encoded video dataset for training and testing; Step 1.1, select 6 depth maps of standard test sequences with different video content and different lens characteristics from the database for training and testing, including two resolutions of 1024*768 and 1920*1088; Step 1.2, compress all the above test sequences in the 3D-HEVC reference software HTM16.0, and encode them under 4 different quantization parameters QPs, with QP values equal to 34, 39, 42, and 45 respectively; Step 1.3, a coding unit CU of size 64*64 containing depth information and coding partition labels under four QPs are combined into a training / testing sample, and the above samples have their video frame arrangement disrupted; Second: global image feature extraction network branch; Step 2.1, the two network branches including the residual module are responsible for extracting global image features. The learned features are used as reference for the low-depth level division structure in the depth map division. The first branch directly transmits the 64*64 samples into the preprocessing operation part, removes the mean, and normalizes the input pixels. The second branch first undergoes a convolution operation with a convolution kernel of 2*2, and relies on the convolution operation stride length with the same convolution kernel size to reduce the spatial size of the feature map by half through non-overlapping convolution, extracting the underlying features in the global image features, and then preprocessing the 32*32 feature map. Step 2.2, the preprocessed 64*64 feature branch then enters the residual module. The design of the residual module includes an overlapping convolution layer with a convolution kernel of 3*3 and three consecutive residual units, and the residual unit is composed of two overlapping convolution layers with a convolution kernel of 3*3, followed by a Leaky ReLU activation function; a jump connection is made with the original input at the output of the last convolution layer and element-by-element addition is performed; the branch then passes through an overlapping convolution layer with a convolution kernel of 3*3 to obtain the feature vector of the branch output; Step 2.3: After preprocessing, the 32*32 samples of the second branch enter the same residual module as in the above step 2.2, and a feature distillation module is added after the residual module to further enhance its global image feature extraction capability; the feature distillation module consists of three network structures similar to residual units, and its output and original input are spliced with each other after passing through a convolution layer with a convolution kernel of 1*1 and a Leaky ReLU activation function, so that the number of channels of the output feature map becomes 4 times that of the input, enriching the extracted global image features, and then passing through a convolution layer with a convolution kernel of 1*1 and a Leaky ReLU activation function to obtain the final output of the second branch; the outputs of the first and second branches together constitute the global image feature stream of the dual feature stream network; Third: local image feature extraction network branch; Step 3.1: The input of this branch first passes through the dynamic module to obtain a local feature map of size 16*16, and then passes through the CBAM attention mechanism module to extract all the features on the local sample relative to the original input, thereby forming a local image feature stream in the dual feature stream network; Step 3.2, when (texture QP, depth QP) takes the value of (30,39), (35,42) and (40,45), the structure adopted by the dynamic module at this time makes the input first pass through a non-overlapping convolution layer with a convolution kernel of 4*4 to obtain a feature map with a spatial size of 1 / 4 of the original, and then obtain the output of the dynamic module through normalization operations such as de-averaging; if the adopted QP value is (25,34), the structure adopted by the dynamic module makes the input first pass through the Canny edge detection algorithm to find a feature map with a size of 16*16, and then obtain the output of the dynamic module through normalization operations such as de-averaging; Step 3.3, the CBAM attention mechanism module is composed of three Conv-CBAM sub-blocks, each of which is composed of an overlapping convolution layer with a convolution kernel of 3*3 and a CBAM module; CBAM includes a channel attention module CAM that generates a channel attention map using the relationship between input feature channels and a spatial attention module SAM that generates a spatial attention map using the spatial relationship of input features. Its input first passes through CAM, and then the output is multiplied element-by-element with the original input and sent to SAM. The output of SAM is then multiplied element-by-element with the input of SAM to obtain the final output; the dual feature stream network uses the design of three Conv-CBAM sub-blocks in succession, and finally obtains the output of the local image feature stream; Fourth: feature flow integration output; Step 4.1, send the global image feature stream extracted by the first and second branches of the dual feature stream network and the local image feature stream extracted by the third branch to the merging layer for integration; the merged feature vector passes through two fully connected layers with ReLU as the activation function and one output layer with Sigmoid as the activation function to obtain the final division result of the coding unit, which will be used as a reference in the actual 3D video encoding process.
Citation Information
Cited By
3D-HEVC depth map fast coding method based on DCAE model
CN119854523A
