A monocular image depth estimation method based on multi-scale feature correlation enhancement
Through the multi-modal RGB-Depth fusion module and the multi-scale feature correlation enhancement module, the problems of texture bias and global feature loss in monocular image depth estimation are solved, and more accurate depth information extraction and reconstruction are achieved.
Patent Information
- Application Number
- CN202310758435.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-26
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2043-06-26
AI Technical Summary
Existing monocular image depth estimation methods are prone to texture deviation when processing scenes with complex textures, resulting in inaccurate depth recovery, and global structural information is ignored, resulting in insufficient depth feature encoding and affecting the accuracy of practical applications.
The multi-modal RGB-Depth fusion module is used for data enhancement, multi-scale feature maps are extracted, and the feature correlation between different scales is enhanced through the RFF module and MFCE module. The multi-scale feature fusion and correlation enhancement modules are combined to generate pixel-by-pixel depth. Graph, solves the problems of texture bias and global feature loss.
Effectively extract depth information from monocular images, enhance the correlation between global features and local features, learn appearance structure information, reconstruct clear and dense monocular depth maps, and improve the accuracy and stability of depth estimation.
Smart Images

Figure CN116823908B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a monocular image depth estimation method based on multi-scale feature correlation enhancement. Background Art
[0002] Depth estimation aims to recover scene depth information from images. It is a key research direction in computer vision and has been widely used in fields such as 3D reconstruction, robot navigation and autonomous driving. With the advancement of deep learning technology, depth estimation methods based on convolutional neural networks (CNN) have gradually become the research focus in this field. Depth estimation can be roughly divided into monocular depth estimation, stereo depth estimation and multi-view depth estimation. Compared with stereo depth estimation and multi-view depth estimation, monocular depth estimation only needs one camera to complete the initial image acquisition, which reduces the acquisition cost and equipment complexity and better meets the needs of practical applications. However, due to the uncertainty and multi-interpretation of the process of recovering 3D scene depth information from a single 2D image, monocular depth estimation becomes an ill-posed problem, resulting in inherent scale ambiguity that makes depth recovery challenging. In recent years, more and more researchers have begun to pay attention to depth estimation based on monocular images, and this task has gradually become a research hotspot and difficulty in the field of image depth estimation.
[0003] Monocular depth estimation has great application value in practical scenarios: in autonomous driving systems, monocular depth estimation can help vehicles perceive the surrounding environment, including detecting the distance of obstacles ahead and estimating the depth information of the road to ensure safe driving of the vehicle; monocular depth estimation can be used in augmented reality applications to enable virtual objects to interact accurately with the real world. By estimating the depth information of objects in the scene, accurate positioning, occlusion and shielding effects of virtual objects can be achieved, providing a more realistic augmented reality experience; monocular depth estimation can be used in human-computer interaction interfaces, such as gesture recognition and posture estimation. By analyzing the depth position of the human body in space, the system can recognize gestures or human postures, thereby achieving natural and intuitive user interface operations; monocular depth estimation can be used in video surveillance systems to provide more accurate scene analysis and object tracking. By estimating the depth information of objects, the spatial relationship in the scene can be better understood, and behavior recognition, anomaly detection and safety monitoring can be performed; monocular depth estimation is also very useful for robot navigation and environmental perception. By estimating the depth of objects and obstacles, robots can plan paths, avoid obstacles and navigate to achieve accurate and safe movement.
[0004] Texture bias causes the problem of misestimation of appearance structure. Due to the complexity and uneven distribution of object textures in real scenes, local areas with rich textures are more easily captured by network models. Most existing CNN (Convolutional Neural Networks) methods tend to focus more on local texture features and ignore global structural information when performing monocular depth estimation, which easily leads to texture bias in the predicted depth map. In practical applications, it will affect the judgment of the actual distance of objects by robots and other equipment.
[0005] In recent years, the powerful image processing capabilities of deep neural networks have improved the performance of depth estimation and provided an end-to-end solution for the implementation of monocular depth estimation. According to the algorithm flow of monocular depth estimation, it can be divided into three parts: data preprocessing method, depth feature encoding method and depth feature decoding method.
[0006] Data preprocessing methods: Data preprocessing for monocular depth estimation optimizes and adjusts the input image to better perform subsequent depth estimation tasks. These operations include scaling, normalization, and data augmentation, which help reduce noise, improve model generalization and robustness, and ensure that the input requirements of deep learning models are met. In recent years, many preprocessing works have focused on data augmentation, super-resolution, etc. to improve the quality and diversity of input images.
[0007] Deep feature encoding methods: Deep feature encoding refers to the process of extracting depth-related feature representations from the input image. These features will be fed into subsequent depth estimation modules, such as decoders or regression modules, for predicting depth maps. In traditional methods, deep feature encoding mainly relies on manually designed algorithms. Common methods include SIFT (Scale-invariant feature transform), SURF (Speeded-Up Robust Features), and ORB (Oriented FAST and Rotated BRIEF). These algorithms detect key points in the image and calculate the corresponding feature descriptors. They then find the corresponding points through feature matching and use these matching points to calculate the depth of the object in three-dimensional space. However, due to limited representation capabilities, these traditional methods cannot provide sufficient differentiation when dealing with complex scenes and lighting changes. Deep learning methods automatically extract image features in a hierarchical manner, with stronger representation capabilities and higher accuracy. The deep feature encoding process is mostly automatically completed by CNN and Transformer, which learn abstract and hierarchical feature representations from the input image. Deep feature encoding methods can be roughly divided into two categories:
[0008] (1) Coding method based on convolutional neural network;
[0009] (2) Transformer-based encoding method. CNN-based deep feature encoding extracts features from the input image through convolutional layers, activation functions, and pooling layers, and then extracts high-level semantic information by gradually adjusting the convolution kernel size and the number of channels. The Transformer-based encoding method divides the input image into multiple non-overlapping image blocks, then linearly embeds each image block into a vector, processes these vectors through self-attention mechanisms and position encoding, and finally performs feature extraction and depth estimation through multi-layer Transformers.
[0010] Deep feature decoding method: The deep feature decoding process refers to mapping the high-dimensional features extracted by the encoder to the deep space to generate a deep prediction map. The decoding process usually involves upsampling, fusion, and reconstruction operations. First, the feature map is upsampled to increase its size to the same or close to the input image size. Then, the upsampled feature maps are fused to capture multi-scale information.
[0011] At present, a monocular image depth estimation method in the prior art includes: a data preprocessing method. For the monocular depth estimation task, many data preprocessing works in recent years have focused on data enhancement, super-resolution and other aspects to improve the quality and diversity of input images. Some scholars use the original image and the horizontally flipped image to enhance the data. Some scholars encourage the model to adaptively apply super-resolution to the image area to reduce image distortion, that is, by pasting the low-resolution image to the same area of the high-resolution image, or pasting part of the high-resolution image to the same position of the low-resolution image. Some scholars introduced the CutMix enhancement strategy, that is, using the "cut-paste" method to obtain local image blocks (patches) in the image, where the ground truth depth label is also mixed into the patch in proportion to increase diversity, and the regularization effect of the training pixel reservation area is used. Some scholars proposed a data enhancement method for instance segmentation, which randomly pastes the copied instance objects to any position on the image in the form of "copy-paste augmentation", thereby improving robustness without increasing the training cost.
[0012] Although the above preprocessing methods improve the diversity of images through data enhancement, these methods are prone to introduce problems such as over-sharpening of images or destruction of image geometric structures. Some scholars have proposed an adaptive super-resolution method. Although it increases the number of image samples, the appearance of the image does not change much, and it also increases the risk of over-sharpening of the image, resulting in increased errors in depth estimation. Some scholars have proposed a "cut-and-paste" data enhancement method, which greatly changes the appearance of the image, but also destroys the geometric structure in the image, reducing the stability of the training model.
[0013] The disadvantages of the monocular image depth estimation method in the above-mentioned prior art include: although the use of preprocessing methods such as exposure correction, feature point matching or image rotation and shearing has been able to improve the quality of input samples, these methods cannot solve the structural limitations of RGB images themselves, nor can they reduce the interference of irrelevant details caused by dense areas in the image, resulting in insufficient depth feature encoding.
[0014] Another monocular image depth estimation method in the prior art includes: a deep feature decoding method combined with a convolutional neural network. Some scholars have proposed a decoding network based on fast upsampling, but the convolution kernel of the network is small, the network receptive field is limited, and only simple bilinear interpolation is used to improve the resolution of the depth map during feature decoding, resulting in the network losing more depth features. In order to reduce the loss of features, some scholars have added jump connections between the decoding network layer and the corresponding encoding network layer, and fused the rough depth map in the decoding network with the fine spatial feature map in the encoding network, thereby enhancing the mapping and expression of deep features in the decoding process and improving the accuracy of depth estimation. In addition to using jump connections to enhance feature decoding, some scholars have used two different modules in the multi-scale feature fusion network architecture. The first module uses filters of different sizes for convolution to merge all individual feature maps. The second module uses extended convolution to replace the fully connected layer, thereby reducing calculations and increasing the receptive field. However, these feature fusion methods do not fully eliminate features with low correlation. Therefore, the utilization rate of underlying features cannot always be fully improved in the predicted depth map.
[0015] The disadvantages of another monocular image depth estimation method in the above-mentioned prior art include: although the deep feature decoding method based on convolutional neural network has greatly improved the pixel-level accuracy in monocular depth estimation, CNN mainly relies on local perception mechanism, resulting in insufficient correlation between global features and local features, and there is still a problem of loss of global appearance structure information in the feature learning process. In addition, the downsampling operation in the encoder-decoder architecture leads to the loss of detail information, making it difficult to integrate global features and local features. As the number of network layers increases, irrelevant detail features will continue to be transmitted in the feature fusion process, thereby exacerbating the texture deviation. Summary of the invention
[0016] An embodiment of the present invention provides a monocular image depth estimation method based on multi-scale feature correlation enhancement, so as to effectively extract depth information of a monocular image.
[0017] In order to achieve the above object, the present invention adopts the following technical scheme.
[0018] A monocular image depth estimation method based on multi-scale feature correlation enhancement, comprising:
[0019] Use the multimodal RGB-Depth fusion module to perform data enhancement preprocessing on the input RGB image;
[0020] Use the multi-scale deep encoding module to extract the multi-scale feature map after data enhancement;
[0021] In the decoding stage, the RFF module is used to obtain a fine-grained feature map according to the multi-scale feature map, and the MFCE module is used to enhance the correlation between features of different scales in the multi-scale features. The feature map is fused and optimized by combining the RFF module and the MFCE module to obtain a pixel-by-pixel depth map of the input RGB image.
[0022] Preferably, the preprocessing operation of performing data enhancement on the input RGB image using the multimodal RGB-Depth fusion module includes:
[0023] The multimodal RGB-Depth fusion module uses a slicing method to fuse the ground truth depth map into the RGB image, randomly selects a part of the depth map in the horizontal and vertical directions and pastes it to the same position of the color image. Represents an RGB image, forming an RGB-D image with depth information, using represents the ground truth depth map, W and H are the width and height of the image respectively, and C s and C t Represents the number of channels in the RGB image and the ground truth depth map, respectively, and the image x' after data enhancement s It is expressed as:
[0024] x′ s =M×x s +(1-M)×x t (1)
[0025] If C s and C t If the number of channels is different, the RGB image and the ground truth depth map are combined in the channel direction to make the number of channels consistent. The M matrix (M∈{0,1}) represents x s x t The replaced area, width and height (w, h) and the position of the replaced area are expressed as:
[0026] (w,h)=(min((Wa×W)×c×p,1),min((Ha×H)×c×p,1)) (2)
[0027] image[x:x+w,:,i]=depth[x:x+w,:] (3)
[0028] image[:,y:y+h,i]=depth[:,y:y+h] (4)
[0029] Where x = a×W, y = a×H, i represents the number of three channels of the RGB image, a and c are coefficients ranging between (0,1), and p represents a hyperparameter (p∈(0,1]).
[0030] Preferably, the decoding stage uses an RFF module to obtain a fine-grained feature map, uses an MFCE module to enhance the correlation between features of different scales in the multi-scale features, fuses and optimizes the feature map by combining the RFF module and the MFCE module, and obtains a pixel-by-pixel depth map, including:
[0031] Assume that the multi-scale features include a low-resolution feature map F1 and a higher-resolution feature map F2 with different resolutions. The RFF module increases the resolution of the low-resolution feature map F1 to the same as the higher-resolution feature map F2 through bilinear interpolation upsampling, and splices the low-resolution feature map F1 and the higher-resolution feature map F2 in the same dimension to obtain a feature map F3. The feature map F3 is convolved by two branches to obtain features of different receptive fields. The upper branch uses a two-dimensional convolution with a convolution kernel of 3 to extract features, and the input data is standardized by the BatchNorm neural network layer. Finally, the nonlinear relationship between the network layers is increased by the ReLU activation function; the lower branch uses a 5×5 two-dimensional convolution to extract features and is normalized by BatchNorm. The features obtained by the upper and lower branches are fused to obtain a fused feature map F RFF :
[0032] F3=Cat(Up(F1,F2)) (5)
[0033] F RFF =Cov 5,5 (Cov 3,3 (F3))+Cov 5,5 (F3) (6)
[0034] Where Up(·) represents the upsampling process of bilinear interpolation, Cov 3,3 (·) and Cov 5,5 (·) denotes 3×3 convolution and 5×5 convolution respectively;
[0035] Let the multi-scale feature map input into the MFCE module be W and H represent the width and height of the feature map respectively, C represents the number of channels of the feature map, and the low-resolution feature map F1 in F is fused with the higher-resolution feature map F2 through the first RFF module to generate the enhanced feature map F E , F E Extract feature F through adaptive average pooling layer E1 、F E2 and F E3 , F E1 、F E2 and F E3 Perform channel concatenation and form the global feature F through 1×1 convolution G , FE The feature F is formed by asymmetric convolution and standard convolution in parallel L , the feature F G With feature F L The optimized feature map F is obtained by splicing by channel and processing by 1×1 convolution kernel. MFCE , the calculation process of the MFCE module is:
[0036] F E =RFF(F1,F2) (7)
[0037] F Ei =RFF(F1,AAP i (F E ))(i=1,2,3) (8)
[0038] F G =Cov 1,1 (Cat(F E1 ,F E2 ,F E3 )) (9)
[0039] F L =Cov 9,1 (Cov 1,9 (F E ))+Cov 3,3 (F E ) (10)
[0040] F MFCE =Cov 1,1 (Cat(F G ,F L )) (11)
[0041] Among them, Cov n,m (·) represents a two-dimensional convolution with a kernel size of n×m, Cat(·) represents the concatenation of feature maps on the channel, and RFF represents a multi-scale feature fusion module;
[0042] The pixel-by-pixel depth map of the input RGB image is output through the RFF module and the MFCE module.
[0043] Preferably, the method further comprises:
[0044] The parameters and training process of the multimodal RGB-Depth fusion module, the multi-scale depth encoding module, the RFF module and the MFCE module are optimized through the depth representation objective function.
[0045] It can be seen from the technical solutions provided by the above-mentioned embodiments of the present invention that the monocular image depth estimation algorithm with multi-scale feature correlation enhancement proposed in the embodiments of the present invention not only enhances the features of the input image and provides more geometric information and semantic information for the depth estimation model, but also enhances the correlation between global features and local features, learns effective appearance structure information, solves the problem of incorrect estimation of appearance structure caused by texture deviation, and reconstructs a clear and dense monocular depth map.
[0046] Additional aspects and advantages of the present invention will be given in part in the following description, which will become obvious from the following description, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0048] Figure 1 A processing flow chart of a monocular image depth estimation method based on multi-scale feature correlation enhancement provided by an embodiment of the present invention;
[0049] Figure 2 A processing flow chart of a multimodal RGB-Depth fusion module provided in an embodiment of the present invention;
[0050] Figure 3 A network structure diagram of a multi-scale depth decoder proposed in an embodiment of the present invention;
[0051] Figure 4 A processing flow chart of an RFF module provided in an embodiment of the present invention;
[0052] Figure 5 A processing flow chart of an MFCE module provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.
[0054] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or coupling. The term "and / or" used herein includes any unit and all combinations of one or more associated listed items.
[0055] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless defined as herein.
[0056] To facilitate understanding of the embodiments of the present invention, several specific embodiments will be further explained below with reference to the accompanying drawings, and each embodiment does not constitute a limitation on the embodiments of the present invention.
[0057] Monocular Depth Estimation refers to the process of recovering scene depth information from a single two-dimensional image. Multi-scale Feature Fusion refers to the process of fusing feature maps of different scales in some way.
[0058] In order to enrich the geometric information and semantic information in the monocular image, enhance the correlation between global features and local features, and solve the problem of appearance structure error estimation caused by texture deviation, the embodiment of the present invention proposes a monocular image depth estimation method based on multi-scale feature correlation enhancement. The processing flow is as follows: Figure 1 As shown, the process includes four processing steps:
[0059] Step S1: Use the multimodal RGB-Depth fusion module to perform data enhancement preprocessing operations on the input RGB image to enhance the input features of the image and achieve image correction.
[0060] Step S2: Use a multi-scale depth encoding module to extract the preprocessed multi-scale feature map.
[0061] Step S3: In the decoding stage, a Relevant Feature Fusion (RFF) module is used to obtain a fine-grained feature map according to the multi-scale feature map, and a Multi-scale Feature Correlation Enhancement (MFCE) module is used to enhance the correlation between features of different scales in the multi-scale features. The feature map is fused and optimized by combining the RFF module and the MFCE module, and a pixel-by-pixel depth map is obtained.
[0062] Step S4: Optimize the training of the entire monocular depth estimation network model through the depth representation objective function to ensure generalization ability.
[0063] Specifically, the above step S1 includes: in order to improve the global feature extraction capability of the monocular depth estimation algorithm and alleviate the problem of incorrect estimation of the appearance structure caused by texture deviation, the method of the present invention first designs a multimodal RGB-Depth fusion module in the image preprocessing stage, introduces additional modal depth into the original RGB image, alleviates the uncertainty of obtaining information directly from the RGB image, and reduces the noise of the input image. Then, in the depth feature decoding stage, a multi-scale feature fusion module and a multi-scale feature correlation enhancement module are designed. The multi-scale feature fusion module is used to fuse receptive fields of different sizes and enhance the correlation between features; the multi-scale feature correlation enhancement module learns the correlation between global features and local features by combining a multi-level average pooling layer and a multi-level convolutional layer, thereby expanding the receptive field and optimizing global information.
[0064] Figure 2 A processing flow chart of a multimodal RGB-Depth fusion module provided in an embodiment of the present invention. The multimodal RGB-Depth fusion module adopts a data enhancement method of "depth map fusion", that is, the ground truth depth map is fused into the RGB image to form an RGB-D image with depth information, and the RGB-D image is used as the input of the network model, which not only improves the diversity of visual information, but also reduces the noise of the input image. The multimodal RGB-Depth fusion module of the present invention adopts the idea of slicing, such as Figure 2 As shown in Figure 1, a part of the depth map is randomly selected in the horizontal and vertical directions and pasted to the same position of the color image as the input image. Represents an RGB image, forming an RGB-D image with depth information, using represents the ground truth depth map, W and H are the width and height of the image respectively, and C s and C t Represent the number of channels in the input image and depth map respectively. Then the image x' after data enhancement sIt can be expressed as:
[0065] x′ s =M×x s +(1-M)×x t (1)
[0066] If C s and C t If the number of channels is different, they are combined in the channel direction in advance to make the number of channels consistent. M matrix (M∈{0,1}), represents x s x t The width, height (w, h) and position of the replacement area can be expressed as:
[0067] (w,h)=(min((Wa×W)×c×p,1),min((Ha×H)×c×p,1)) (2)
[0068] image[x:x+w,:,i]=depth[x:x+w,:] (3)
[0069] image[:,y:y+h,i]=depth[:,y:y+h] (4)
[0070] Where x = a×W, y = a×H, i represents the number of three channels of the RGB image, a and c are coefficients ranging between (0,1), and p represents a hyperparameter (p∈(0,1]).
[0071] The network structure of a multi-scale depth decoder proposed in an embodiment of the present invention is as follows: Figure 3 For the four feature maps of different scales output by multi-scale deep coding, the high-resolution features are first fused through the RFF (Relevant Feature Fusion) module. Figure 1 and Features Figure 2 , obtain fine-grained local features; and fuse low-resolution features through the MFCE module Figure 3 and Features Figure 4 , learn the correlation between adjacent features and optimize the global feature representation.
[0072] The features output by the RFF module and the MFCE module are then sent to the RFF module to further fuse the global information and the local information. The global features and the local features are then concatenated on the channel by the feature concatenation operation. The feature map is restored to the same pixel size as the input image through the upsampling operation. The feature representation is then optimized by two layers of 3×3 convolution (Conv module). Finally, the feature map is mapped to a depth map through the Sigmoid function.
[0073] Figure 4FIG. 1 is a processing flow chart of an RFF module provided in an embodiment of the present invention. The RFF module uses the feature map as the input of the network to fuse the low-resolution feature representation between two features. The network structure of the RFF module is as follows: Figure 4 As shown. First, the low-resolution feature F1 is upsampled by bilinear interpolation to increase the resolution to the same as F2, and then the feature map F3 is obtained by splicing in the same dimension. Then, the convolution of the two branches is used to obtain features with different receptive fields. The upper branch uses a two-dimensional convolution with a convolution kernel of 3 to extract features, and the BatchNorm neural network layer is used to standardize the input data, which helps to stabilize the training of the network. Finally, the ReLU activation function is used to increase the nonlinear relationship between the layers of the network; the lower branch uses a 5×5 two-dimensional convolution to extract features and is normalized by BatchNorm. The receptive fields of the features obtained by the upper and lower branches are different. By fusing the two, richer fine-grained information can be obtained. The calculation process of the multi-scale feature fusion module can be expressed as:
[0074] F3=Cat(Up(F1,F2)) (5)
[0075] F RFF =Cov 5,5 (Cov 3,3 (F3))+Cov 5,5 (F3) (6)
[0076] Where Up(·) represents the upsampling process of bilinear interpolation, Cov 3,3 (·) and Cov 5,5 (·) denotes 3×3 convolution and 5×5 convolution, respectively.
[0077] Figure 5 A processing flow chart of a MFCE (Multi-scale Feature Correlation Enhancement) module provided in an embodiment of the present invention. In order to enhance the description of shape information, the MFCE proposed in the present invention enhances the expression of local detail information and global shape information by fusing the context information of adjacent features.
[0078] The input feature map of the network in this section is denoted as W and H represent the width and height of the feature map, respectively, and C represents the number of channels of the feature map. The input low-resolution feature map F1 and the higher-resolution feature map F2 are fused through the first RFF module (Relevant Feature Fusion) to enhance the correlation between features of different resolutions and generate the enhanced feature map F E , where the feature map F E The size of is the same as the size of feature map F2. Figure 5 As shown in E The APP layer (Adaptive Average Pooling) can more effectively extract important features, reduce the size of the tensor, and transform the image into a low-dimensional space, which is conducive to capturing features in a larger range. APP layers with different kernel sizes can adaptively adjust different image sizes to obtain more global shape information, and together with F1, they serve as the input of the RFF module to form feature F. E1 、F E2 and F E3 Then, F E1 、F E2 and F E3 Perform channel splicing and perform 1×1 convolution to form the refined global feature F G , where the kernel sizes of the adaptive average pooling layer (AAP) are 2×2, 4×4, and 6×6 respectively. At the same time, in order to reduce the information redundancy caused by symmetric convolution, reduce the number of parameters and the amount of calculation, the strategy of parallel processing of asymmetric convolution and standard convolution is adopted to process F E The present invention uses 1×9 asymmetric convolution kernel and 9×1 asymmetric convolution to enhance local key features in different directions. E The feature F is formed by asymmetric convolution and standard convolution in parallel L , to increase the diversity of local features and enhance the expressiveness of features. Finally, the present invention adds F G With F L The context correlation between image regions is enhanced by splicing by channel, and the artifacts caused by the network are eliminated through 1×1 convolution kernel processing to better restore shape information. The calculation process of the multi-scale feature correlation enhancement module is:
[0079] F E =RFF(F1,F2) (7)
[0080] F Ei =RFF(F1,AAP i (F E ))(i=1,2,3) (8)
[0081] F G =Cov 1,1 (Cat(F E1 ,F E2 ,F E3 )) (9)
[0082] F L =Cov 9,1 (Cov 1,9 (F E ))+Cov 3,3(F E ) (10)
[0083] F MFCE =Cov 1,1 (Cat(F G ,F L )) (11)
[0084] Among them, Cov n,m (·) represents a two-dimensional convolution with a kernel size of n×m, Cat(·) represents the concatenation of feature maps on the channel, and RFF represents the related feature fusion module.
[0085] The pixel-by-pixel depth map "means to calculate the depth value of each pixel in the image, and output the pixel-by-pixel depth map of the above input RGB image through the RFF module and the MFCE module.
[0086] The parameters and training process of the monocular depth estimation network model composed of the multimodal RGB-Depth fusion module, the multi-scale depth encoding module, the RFF module and the MFCE module are optimized through the depth characterization objective function.
[0087] In summary, the monocular image depth estimation algorithm with multi-scale feature correlation enhancement proposed in the embodiment of the present invention not only enhances the features of the input image and provides more geometric and semantic information for the depth estimation model, but also enhances the correlation between global features and local features, learns effective appearance structure information, solves the problem of incorrect estimation of appearance structure caused by texture deviation, and reconstructs a clear and dense monocular depth map.
[0088] The embodiment of the present invention proposes a monocular image depth estimation algorithm based on multi-scale feature correlation enhancement. The algorithm uses a multimodal RGB-Depth fusion module to enhance the features of the input image; uses a correlation feature fusion module to fuse information from different receptive fields; and uses a multi-scale feature correlation enhancement module to enhance the correlation between features, promote the expression of appearance structure information, and can effectively extract the depth information of the monocular image.
[0089] Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of an embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present invention.
[0090] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.
[0091] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0092] The above is only a preferred specific embodiment 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 should be based on the protection scope of the claims.
Claims
1. A monocular image depth estimation method based on multi-scale feature correlation enhancement, characterized in that: include: Use the multimodal RGB-Depth fusion module to perform data enhancement preprocessing on the input RGB image; Use the multi-scale deep encoding module to extract the multi-scale feature map after data enhancement; In the decoding stage, the RFF module is used to obtain a fine-grained feature map according to the multi-scale feature map, the MFCE module is used to enhance the correlation between features of different scales in the multi-scale feature, and the pixel-by-pixel depth map of the input RGB image is obtained by combining the RFF module and the MFCE module to fuse and optimize the feature map; The preprocessing operation of performing data enhancement on the input RGB image using the multimodal RGB-Depth fusion module includes: The multimodal RGB-Depth fusion module uses a slicing method to fuse the ground truth depth map into the RGB image, randomly selects a part of the depth map in the horizontal and vertical directions and pastes it to the same position of the color image. Represents an RGB image, forming an RGB-D image with depth information, using represents the ground truth depth map, W and H are the width and height of the image respectively, and C s and C t Represents the number of channels in the RGB image and the ground truth depth map, respectively, and the image x' after data enhancement s It is expressed as: x′ s =M×x s +(1-M)×x t (1) If C s and C t If the number of channels is different, the RGB image and the ground truth depth map are combined in the channel direction to make the number of channels consistent. The M matrix (M∈{0,1}) represents x s x t The replaced area, width and height (w, h) and the position of the replaced area are expressed as: (w,h)=(min((Wa×W)×c×p,1),min((Ha×H)×c×p,1)) (2) image[x:x+w,:,i]=depth[x:x+w,:] (3) image[:,y:y+h,i]=depth[:,y:y+h] (4) Where x = a × W, y = a × H, i represents the number of three channels of the RGB image, a and c are coefficients ranging between (0, 1), and p represents a hyperparameter (p∈(0, 1]); The decoding stage uses the RFF module to obtain a fine-grained feature map, uses the MFCE module to enhance the correlation between features of different scales in the multi-scale feature, fuses and optimizes the feature map by combining the RFF module and the MFCE module, and obtains a pixel-by-pixel depth map, including: Assume that the multi-scale features include a low-resolution feature map F1 and a higher-resolution feature map F2 with different resolutions. The RFF module increases the resolution of the low-resolution feature map F1 to the same as the higher-resolution feature map F2 through bilinear interpolation upsampling, and splices the low-resolution feature map F1 and the higher-resolution feature map F2 in the same dimension to obtain a feature map F3. The feature map F3 is convolved by two branches to obtain features of different receptive fields. The upper branch uses a two-dimensional convolution with a convolution kernel of 3 to extract features, and the input data is standardized by the BatchNorm neural network layer. Finally, the nonlinear relationship between the network layers is increased by the ReLU activation function; the lower branch uses a 5×5 two-dimensional convolution to extract features and is normalized by BatchNorm. The features obtained by the upper and lower branches are fused to obtain a fused feature map F RFF : F3=Cat(Up(F1,F2)) (5) F RFF =Cov 5,5 (The 3,3 (F3))+Cov 5,5 (F3) (6) Where Up(·) represents the upsampling process of bilinear interpolation, Cov 3,3 (·) and Cov 5,5 (·) denotes 3×3 convolution and 5×5 convolution respectively; Let the multi-scale feature map input into the MFCE module be W and H represent the width and height of the feature map respectively, C represents the number of channels of the feature map, and the low-resolution feature map F1 in F is fused with the higher-resolution feature map F2 through the first RFF module to generate the enhanced feature map F E , F E Extract feature F through adaptive average pooling layer E1 、F E2 and F E3 , F E1 、F E2 and F E3 Perform channel concatenation and form the global feature F through 1×1 convolution G , F E The feature F is formed by asymmetric convolution and standard convolution in parallel L , the feature F G With feature F L The optimized feature map F is obtained by splicing by channel and processing by 1×1 convolution kernel. MFCE , the calculation process of the MFCE module is: F E =RFF(F1,F2) (7) F Ei =RFF(F1,AAP i (F E ))(i=1,2,3) (8) F G =Cov 1,1 (Cat(F E1 ,F E2 ,F E3 )) (9) F L =Cov 9,1 (The 1,9 (F E ))+Cov 3,3 (F E ) (10) F MFCE =Cov 1,1 (Cat(F G ,F L )) (11) Among them, Cov n,m (·) represents a two-dimensional convolution with a kernel size of n×m, Cat(·) represents the concatenation of feature maps on the channel, and RFF represents a multi-scale feature fusion module; The pixel-by-pixel depth map of the input RGB image is output through the RFF module and the MFCE module.
2. The method according to claim 1, characterized in that The method further comprises: The parameters and training process of the multimodal RGB-Depth fusion module, the multi-scale depth encoding module, the RFF module and the MFCE module are optimized through the depth representation objective function.
Citation Information
Patent Citations
Monocular depth estimation method based on deep learning
CN110738697A
Monocular image depth estimation method based on multi-scale residual pyramid attention network model
CN112001960A
Monocular image depth estimation method and system based on convolution residual learning
CN112396645A
Monocular depth estimation method based on multi-scale feature fusion
CN113870335A
Saliency detection method, significance detection equipment and storage medium
CN114359162A
