A monocular depth estimation system and method with fine-grained recovery capability

By using a combination of fully convolutional U-Net and Transformer with residual connections in monocular depth estimation technology, combined with depth feature mapping difference and fine-grained query modules, the problem of poor generalization and poor generalization in monocular depth estimation technology is solved. It solves the problem of low accuracy and achieves higher depth estimation accuracy and less reliance on true values, which is suitable for autonomous driving and UAV target tracking in complex scenes.

CN118644539BActive Publication Date: 2024-10-29SICHUAN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411097257.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-29
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

Existing monocular depth estimation technology has problems of poor generalization, incomplete perception, and low accuracy, especially in the absence of true values, especially in complex scenes such as autonomous driving street scenes and drone overhead shooting image processing, resulting in image Inaccurate depth estimation affects the accuracy of autonomous driving and UAV target tracking.

Method used

Fully convolutional U-Net with residual connections is used to extract instant visual features of high-frequency details, and Transformer is used to obtain the Embedding results of visual feature patches. The loss volume is constructed through the depth feature mapping difference and converted into a pixel-by-pixel probability map. Combined with the fine-grained query module, the relative distance representation is obtained, which reduces the dependence on the true value and improves the generalization and accuracy of depth estimation.

Benefits of technology

It improves the depth estimation accuracy of complex scenes, reduces dependence on true values, enhances the ability to identify weak instances, provides better generalization and perception capabilities, and is suitable for autonomous driving and UAV target tracking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644539B_ABST
    Figure CN118644539B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and proposes a monocular depth estimation system and method with fine-grained recovery capability, the system comprising: an image preprocessing module, a visual feature extraction module, a self-loss body construction module, a fine-grained query module and a depth estimation module. The present invention uses a fully convolutional U-Net with residual connections to extract instant visual features with high-frequency details, uses a Transformer to obtain the embedding results of the instant visual feature patches, converts the loss body constructed based on the depth feature map difference into a pixel-by-pixel probability map, and performs weighted summation on the instant visual features to obtain the features to be estimated, and finally sends the relative distance representation obtained by the fine-grained query and the features to be estimated to a multi-layer perception mechanism to obtain the final depth estimation result, which has better generalization and less truth value dependence, and has better learning and recovery capabilities for the fine-grained features of the scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a monocular depth estimation system and method with fine-grained restoration capability. Background Art

[0002] The monocular depth estimation algorithm can estimate the distance between the object and the camera by analyzing the visual features and geometric structure in the image, thereby realizing the depth perception of the scene. As an important basic visual task, it is often used in fields such as augmented reality, robotics, and autonomous driving. It provides key environmental perception capabilities for intelligent systems, enabling them to make more accurate decisions based on environmental information, and realize advanced functions such as obstacle avoidance, fixed-point navigation, and target tracking, making intelligent systems more adaptable and applicable in complex environments.

[0003] Existing monocular depth estimation technology mainly adopts supervised learning methods that use lidar data as the true value. However, it takes a long time and is costly to collect large-scale depth measurement data from the real world. Existing methods have problems such as poor generalization, incomplete perception, and low precision when estimating image depth without sufficient true values. Especially in the scenarios of autonomous driving street scene image processing or drone overhead image processing with many instances, complex instance relationships, and weak instances, the lack of true values ​​will cause the depth difference between instances in the image to be blurred, and weak instances will be lost, which will affect the correctness of operation judgment during autonomous driving or the accuracy of drone target tracking. Therefore, how to improve the generalization of monocular depth estimation, reduce the dependence on true values, and improve the accuracy of depth estimation is a technical problem that needs to be solved urgently. Summary of the invention

[0004] In order to solve the above-mentioned problems in the prior art, the present invention provides a monocular depth estimation system and method with fine-grained recovery capability, aiming to solve the problems of poor generalization, incomplete perception and low precision existing in the monocular depth estimation technology provided by the prior art.

[0005] The present invention provides a monocular depth estimation system with fine-grained recovery capability, the system comprising:

[0006] An image preprocessing module, wherein the image preprocessing module is configured to extract a feature map of a target image, and use the feature map to repair the target image to obtain a repaired image;

[0007] A visual feature extraction module, wherein the visual feature extraction module is configured to extract image features of the repaired image and convert the image features into instant features;

[0008] A self-loss volume construction module, wherein the self-loss volume construction module is configured to construct the restoration images of a preset continuous time into an image sequence, define an ordered plane group using frame images in the image sequence, and warp the depth feature maps of other frame images to the viewpoint of the first frame image based on the ordered plane group, obtain the depth feature map difference generated by all frame images during the warping process, and use the depth feature map difference as the self-loss volume;

[0009] A fine-grained query module, wherein the fine-grained query module is configured to segment the instantaneous feature into a plurality of patches, and perform a pixel-by-pixel relative distance query on the embedded representation of the patches to obtain a relative distance representation;

[0010] A depth estimation module is configured to perform depth estimation on the repaired image based on the self-loss volume and the relative distance representation to obtain a depth estimation result.

[0011] Optionally, the image preprocessing module specifically includes:

[0012] A feature map extraction unit, wherein the feature map extraction unit is configured to extract shallow features of a target image, process the shallow features using a plurality of variable parallel fusion models, extract further features of the shallow features, and generate a feature map of the target image based on the further features extracted by each variable parallel fusion model;

[0013] The image restoration unit is configured to upsample the feature map of the target image and input the upsampled feature map into a multi-layer perceptron to restore the target image to obtain a restored image.

[0014] Optionally, the feature map extraction unit specifically includes:

[0015] A shallow feature extraction subunit, wherein the shallow feature extraction subunit is configured to extract a target image The shallow features of the target image are extracted The shallow features are:

[0016] ;

[0017] in, Represents the target image Perform shallow feature extraction, is a 3×3 convolutional layer, Represents the extracted shallow features;

[0018] A further feature extraction subunit, wherein the further feature extraction subunit is configured to process the shallow features using a plurality of variable parallel fusion models to extract further features of the shallow features;

[0019] Among them, further features of the shallow features are extracted, specifically:

[0020] ;

[0021] in, represents the nth variable parallel fusion model, is the extracted features;

[0022] The feature map generation subunit is configured to perform 1×1 convolution processing on the further features output by each variable parallel fusion model, and then perform 3×3 convolution processing, and add and flatten all the convolution processing results to obtain the first feature. ,Will Perform 3×3 convolution and flatten to get the second feature , the first feature, the second feature and the shallow feature after scaling and flattening Together they form a feature map with 3 channels .

[0023] Optionally, the variable parallel fusion model specifically includes:

[0024] A local feature subunit, wherein the local feature subunit is composed of four layers of 1×1 convolution, two layers of average pooling, one layer of ReLU and one layer of Sigmoid, wherein the average pooling layer is alternately combined with the first three layers of 1×1 convolution, the ReLU is placed between the third and fourth layers of convolution, and the Sigmoid is placed after the fourth layer of convolution;

[0025] A global feature subunit, the global feature subunit is composed of three layers of regularization, one layer of multi-head self-attention, and one layer of multi-layer perceptron, the multi-head self-attention is placed between the first and second regularizations, and the multi-layer perceptron is placed between the second and third layers of regularization;

[0026] A fusion subunit, wherein the fusion subunit is configured to fuse and add the shallow features input into the variable parallel fusion model, the features processed by the local feature subunit, and the features processed by the global feature subunit to obtain further features of the shallow features.

[0027] Optionally, the visual feature extraction module specifically includes:

[0028] An image feature extraction unit is configured to receive a Repaired image , using a fully convolutional U-Net model with residual connections to extract the inpainted image Image features;

[0029] An upsampling decoding unit, wherein the upsampling decoding unit is configured to upsample and decode the image feature into a size of Instant Features .

[0030] Optionally, the self-loss body construction module specifically includes:

[0031] An ordered plane group generating unit, wherein the ordered plane group generating unit is configured to generate a repaired image of a preset continuous time Build as image sequence , use the posture monitoring model to obtain the relative posture between frame images, define and generate an ordered plane group ;

[0032] Wherein, the ordered plane group Each plane is perpendicular to the optical axis and the depth is within the minimum depth determined or estimated by humans. and maximum depth Linear spacing between;

[0033] A mapping warping unit configured to encode each frame of image into a deep feature map , t∈{1,…,N}, using the alternative depth for each hypothesis , using the known camera intrinsic parameters and estimated pose, the depth features of other frames are mapped to the viewpoint of the first frame;

[0034] A self-loss volume construction unit configured to obtain depth feature map differences generated by all image frames during the warping process , and taking the depth feature map difference as the self-loss body;

[0035] Among them, the self-loss volume contains for each pixel In the ordered plane The possibility of obtaining the correct depth.

[0036] Optionally, the fine-grained query module specifically includes:

[0037] A patch segmentation unit is configured to use The convolution kernel and length are The step size of the instantaneous feature Perform convolution to produce a size of The feature map , the feature map Refactored to ;

[0038] in, is the number of channels, is the number of patches, and the size of a patch is , h and w are the instantaneous features of upsampling decoding The length and width of n is the feature map Depth

[0039] A relative distance query unit is configured to send the patch into the converter to obtain a size of The embedding result , perform pixel-by-pixel relative distance query and obtain relative distance representation .

[0040] Optionally, the depth estimation module specifically includes:

[0041] A probability map conversion unit, wherein the probability map conversion unit is configured to perform a depth feature map difference on the self-loss body. Apply a pixel-by-pixel normalized exponential function to convert it into a pixel-by-pixel probability map ;

[0042] The feature generation unit to be estimated is configured to use a pixel-by-pixel probability mapping Complete the feature on the fly The weighted sum of pixels is used to obtain the feature to be estimated ;

[0043] A depth estimation unit configured to compare the relative distance representation with the feature to be estimated. After feature fusion, the image is sent to a multi-layer perceptron for depth estimation to obtain the final depth estimation result.

[0044] Optionally, the relative distance representation is associated with the feature to be estimated. After feature fusion, the image is sent to a multi-layer perceptron for depth estimation, and the final depth estimation result is expressed as follows:

[0045] ;

[0046] in, is the depth estimation result.

[0047] The present invention also provides a monocular depth estimation method with fine-grained recovery capability, the method comprising:

[0048] S1: extracting a feature map of a target image, and using the feature map to repair the target image to obtain a repaired image;

[0049] S2: extracting image features of the repaired image and converting the image features into instant features;

[0050] S3: constructing the inpainted images of a preset continuous time into an image sequence, defining an ordered plane group using frame images in the image sequence, and warping the depth feature maps of other frame images to the viewpoint of the first frame image based on the ordered plane group, obtaining the depth feature map difference generated by all frame images during the warping process, and using the depth feature map difference as a self-loss body;

[0051] S4: Segment the instantaneous feature into a plurality of patches, and perform a pixel-by-pixel relative distance query on the embedded representation of the patches to obtain a relative distance representation;

[0052] S5: Based on the self-loss volume and the relative distance representation, perform depth estimation on the repaired image to obtain a depth estimation result.

[0053] The beneficial effects of the present invention are as follows: a monocular depth estimation system and method with fine-grained recovery capability is proposed, which uses a fully convolutional U-Net with residual connections to extract instant visual features with high-frequency details, and uses Transformer to obtain the embedding results of the instant visual feature patches, thereby improving the generalization and perception accuracy of the model. A loss body is constructed based on the difference of the deep feature map, and then the loss body is converted into a pixel-by-pixel probability map, and the weighted summation of the instant visual features is performed to obtain the features to be estimated, thereby avoiding the occurrence of incomplete perception of complex scenes and getting rid of excessive dependence on the true value. Finally, the relative distance representation obtained by fine-grained query and the features to be estimated are sent to the multi-layer perceptron to obtain the final depth estimation result. The introduction of fine-grained query improves the capture of fine-grained features of scenes, especially street scenes or drone images commonly seen in autonomous driving. Compared with the existing technology, it abandons the traditional way of using lidar to obtain true data, and uses the loss volume constructed by the difference of deep feature maps to characterize the possibility of each pixel in the image obtaining the correct depth in the ordered plane, which makes up for the impact of the lack of true value on image depth estimation. It has better generalization and less dependence on true value, improves the recognition ability of weak instances, and provides effective data support for operation judgment during autonomous driving and drone target tracking. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 A schematic diagram of the structure of a monocular depth estimation system with fine-grained recovery capability provided by this embodiment.

[0055] Figure 2 A schematic diagram of the structure of the variable parallel fusion model provided in this embodiment.

[0056] Figure 3 This is the original image in the depth estimation experiment.

[0057] Figure 4 These are images for which depth estimation is performed directly without using the true value in the depth estimation experiment.

[0058] Figure 5 This is an image of depth estimation using the constructed loss volume in the depth estimation experiment.

[0059] Figure 6 A schematic diagram of the flow of a monocular depth estimation method with fine-grained recovery capability provided in this embodiment.

[0060] 10-image preprocessing module; 101-local feature subunit; 102-global feature subunit; 103-fusion subunit; 20-visual feature extraction module; 30-self-loss volume construction module; 40-fine-grained query module; 50-depth estimation module. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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] Embodiment 1:

[0063] like Figure 1 As shown, a monocular depth estimation system with fine-grained restoration capability, the system comprises: an image preprocessing module 10, the image preprocessing module 10 is configured to extract a feature map of a target image, and use the feature map to repair the target image to obtain a repaired image; a visual feature extraction module 20, the visual feature extraction module 20 is configured to extract image features of the repaired image, and convert the image features into instant features; a self-loss volume construction module 30, the self-loss volume construction module 30 is configured to construct the repaired image of a preset continuous time into an image sequence, and use the frame images in the image sequence to define an ordered plane A group is prepared, and based on the ordered plane group, the depth feature maps of other frame images are warped to the viewpoint of the first frame image, the depth feature map differences generated by all frame images during the warping process are obtained, and the depth feature map differences are used as a self-loss body; a fine-grained query module 40, the fine-grained query module 40 is configured to segment the instant features into a plurality of patches, and perform a pixel-by-pixel relative distance query on the embedded representation of the patches to obtain a relative distance representation; a depth estimation module 50, the depth estimation module 50 is configured to perform a depth estimation on the repaired image based on the self-loss body and the relative distance representation to obtain a depth estimation result.

[0064] It should be noted that the existing monocular depth estimation technology is mainly a supervised learning method that uses lidar data as the true value. However, it takes a long time and is costly to collect large-scale depth measurement data from the real world. The existing methods have problems such as poor generalization, incomplete perception, and low precision under the premise of lacking sufficient true values, and cannot learn fine-grained prior knowledge of scene structure. In order to solve the above problems, this embodiment uses a fully convolutional U-Net with residual connections to extract instant visual features with high-frequency details, and uses Transformer to obtain the Embedding results of instant visual feature patches, thereby improving the generalization and perception accuracy of the model. A loss body is constructed based on the difference of deep feature maps, and then the loss body is converted into a pixel-by-pixel probability map, and the weighted summation of the instant visual features is performed to obtain the features to be estimated, thereby avoiding the occurrence of incomplete perception of complex scenes and getting rid of excessive dependence on true values. Finally, the relative distance representation obtained by fine-grained query and the features to be estimated are sent to the multi-layer perceptron to obtain the final depth estimation result, and the introduction of fine-grained query is used to improve the capture of fine-grained features of scenes, especially street scenes common in autonomous driving. Compared with the existing technology, it has better generalization and less dependence on truth values, and has better learning and recovery capabilities for fine-grained features of the scene. It can solve the problems of the existing technology that uses lidar data as the supervised learning method of the truth value, such as long measurement data consumption, high cost, poor generalization, incomplete perception, low accuracy and inability to learn fine-grained prior knowledge of the scene structure.

[0065] Specifically, the target image can be an autonomous driving street scene image, a drone overhead view image, or other scene images with many instances, complex instance relationships, and weak instances. In practical applications, when identifying instances in autonomous driving street scene images and drone overhead views, and performing autonomous driving operations and drone target tracking based on the recognition results, it is necessary to first perform depth estimation on the pixels in the collected target image, and extract and identify the instances in the image based on the depth estimation results. However, the existing technology has the problem of heavily relying on LiDAR data as the true value for image depth estimation, which will make data collection and measurement time-consuming, affect the sensitivity of autonomous driving operations and target tracking, and pose a higher challenge to the computing power of the hardware. At the same time, the use of LiDAR data to collect the true value required for depth estimation also increases the cost of solving the technical problems of this scenario.

[0066] In view of this, the present application abandons the traditional method of using lidar to obtain true value data, and uses the loss body constructed by the difference of depth feature maps to characterize the possibility of each pixel in the image obtaining the correct depth in the ordered plane group, thereby compensating for the impact of the lack of true value on image depth estimation, having better generalization and less dependence on true value, improving the recognition ability of weak instances, and providing effective data support for operation judgment and drone target tracking during autonomous driving. Since the time spent on collecting lidar data as true value is reduced, the response sensitivity of autonomous driving operation and target tracking is improved.

[0067] In a preferred embodiment, the image preprocessing module 10 specifically includes: a feature map extraction unit, which is configured to extract shallow features of the target image, process the shallow features using a number of variable parallel fusion models, extract further features of the shallow features, and generate a feature map of the target image based on the further features extracted by each variable parallel fusion model; an image restoration unit, which is configured to upsample the feature map of the target image and input it into a multi-layer perceptron to restore the target image to obtain a restored image.

[0068] Furthermore, the feature map extraction unit specifically includes:

[0069] A shallow feature extraction subunit, wherein the shallow feature extraction subunit is configured to extract a target image The shallow features of the target image are extracted The shallow features are:

[0070] ;

[0071] in, Represents the target image Perform shallow feature extraction, is a 3×3 convolutional layer, Represents the extracted shallow features;

[0072] A further feature extraction subunit, wherein the further feature extraction subunit is configured to process the shallow features using a plurality of variable parallel fusion models to extract further features of the shallow features;

[0073] Among them, further features of the shallow features are extracted, specifically:

[0074] ;

[0075] in, represents the nth variable parallel fusion model, is the extracted features;

[0076] The feature map generation subunit is configured to perform 1×1 convolution processing on the further features output by each variable parallel fusion model, and then perform 3×3 convolution processing, and add and flatten all the convolution processing results to obtain the first feature. ,Will Perform 3×3 convolution and flatten to get the second feature , the first feature, the second feature and the shallow feature after scaling and flattening Together they form a feature map with 3 channels .

[0077] Furthermore, if Figure 2 As shown, the variable parallel fusion model specifically includes: a local feature subunit 101, the local feature subunit 101 is composed of four layers of 1×1 convolution, two layers of average pooling, one layer of ReLU and one layer of Sigmoid, the average pooling layer is alternately combined with the first three layers of 1×1 convolution, the ReLU is placed between the third layer of convolution and the fourth layer of convolution, and the Sigmoid is placed after the fourth layer of convolution; a global feature subunit 102, the global feature subunit 102 is composed of three layers of regularization, one layer of multi-head self-attention, and one layer of multi-layer perceptron, the multi-head self-attention is placed between the first and second regularizations, and the multi-layer perceptron is placed between the second and third layers of regularization; a fusion subunit 103, the fusion subunit 103 is configured to fuse and add the shallow features input into the variable parallel fusion model, the features processed by the local feature subunit and the features processed by the global feature subunit to obtain further features of the shallow features.

[0078] In this embodiment, the image preprocessing module 10 first extracts shallow features from the input target image (autonomous driving street scene image or drone overhead view image, size is 2048×1024, unit is px, the number of instances in the image exceeds 20, and there are weak instances, the weak instances refer to instances with a pixel count of 1024, and the image depth range is 5-50m), and then uses n variable parallel fusion models (n is 3 in this embodiment) to further extract features from the extracted shallow features, and finally uses the output result of each variable parallel fusion model to perform convolution and addition to obtain the first feature, and then convolution and flatten the output result of the nth variable parallel fusion model to obtain the second feature, and finally the shallow feature, the first feature, and the second feature are jointly formed into a feature map with a channel number of 3, and the feature map is upsampled and sent to a multi-layer perceptron to obtain a repaired repair image, so as to repair the defects of the internal instances of the target image, and provide more accurate and closer to the real image input data for subsequent extraction of visual features and construction of self-loss body, thereby improving the accuracy of the final depth estimation result.

[0079] In a preferred embodiment, the visual feature extraction module 20 specifically includes: an image feature extraction unit, the image feature extraction unit is configured to receive a size of Repaired image , using a fully convolutional U-Net model with residual connections to extract the inpainted image An upsampling decoding unit configured to upsample and decode the image feature into a size of Instant Features .

[0080] In this embodiment, the visual feature extraction module 20 first receives the repaired image (whose size is ), and then use a fully convolutional U-Net with residual connections to extract image features and upsample the features to a size of High-resolution real-time features Among them, in this embodiment, take , Therefore, by using a fully convolutional U-Net with residual connections to extract immediate visual features with high-frequency details, and then using Transformer to obtain the embedding results of the immediate visual feature patches, it can implicitly represent the objects in the image, improving the generalization and perception accuracy of the model. Subsequently, a pixel-by-pixel relative distance query is performed on the embedding results of the patches to obtain a relative distance representation, providing features with fine-grained scene recovery and learning capabilities for depth estimation.

[0081] In a preferred embodiment, the self-loss body construction module 30 specifically includes: an ordered plane group generation unit, the ordered plane group generation unit is configured to generate a repaired image of a preset continuous time Build as image sequence , use the posture monitoring model to obtain the relative posture between frame images, define and generate an ordered plane group ; wherein the ordered plane group Each plane is perpendicular to the optical axis and the depth is within the minimum depth determined or estimated by humans. and maximum depth A mapping warping unit, wherein the mapping warping unit is configured to encode each frame of the image into a deep feature map , t∈{1,…,N}, using the alternative depth for each hypothesis , using the known camera intrinsic parameters and the estimated pose, the depth features of the other frame images are mapped to the viewpoint of the first frame image; a self-loss volume construction unit, the self-loss volume construction unit is configured to obtain the depth feature map difference generated by all image frames during the warping process , and the depth feature map difference is used as the self-loss body; wherein the self-loss body contains for each pixel In the ordered plane The possibility of obtaining the correct depth at the location is improved. Since the possibility comes from the data itself and has nothing to do with the true value, it makes up for the defect of existing methods' dependence on the true value, improves the recognition ability of weak instances, and provides effective data support for operation judgment during autonomous driving and UAV target tracking. Since the time spent on collecting lidar data as the true value is reduced, the response sensitivity of autonomous driving operation and target tracking is improved.

[0082] In this embodiment, the self-loss volume construction module 30 first takes the image of the preset continuous time , forming an image sequence , use the posture monitoring model (PoseCNN in this embodiment) to obtain the relative posture between frames and define an ordered plane group , each plane is perpendicular to the optical axis and the depth is and The linear interval between and Each frame is encoded into a deep feature map. ( for , for ), and using the alternative depth for each hypothesis , using the known camera intrinsic parameters and estimated pose, warp the other frame deep feature maps to the first frame image The difference in deep feature maps generated by all frames during the warping process As a loss body, the loss body contains for each pixel In the ordered plane The possibility of obtaining the correct depth at the right place avoids the incomplete perception of complex scenes and gets rid of the over-reliance on the true value. Therefore, by converting the loss body constructed based on the difference of the depth feature map into a pixel-by-pixel probability map and performing a weighted summation of the immediate visual features to obtain the features to be estimated, the depth estimation is provided with features with fine-grained scene recovery and learning capabilities.

[0083] In a preferred embodiment, the fine-grained query module 40 specifically includes: a patch segmentation unit, the patch segmentation unit is configured to use The convolution kernel and length are The step size of the instantaneous feature Perform convolution to produce a size of The feature map , the feature map Refactored to ;in, is the number of channels, is the number of patches, and the size of a patch is , h and w are the instantaneous features of upsampling decoding The length and width of n is the feature map A relative distance query unit, wherein the relative distance query unit is configured to feed the patch into the converter to obtain a size of The embedding result , perform pixel-by-pixel relative distance query and obtain relative distance representation .

[0084] In this embodiment, the fine-grained query module 40 first converts the instant features The image is divided into multiple patches, and the Transformer is used to obtain the Embedding result of the patch, so that it can implicitly represent the objects in the image. Subsequently, a pixel-by-pixel relative distance query is performed on the Embedding result of the patch to obtain a relative distance representation, so that it can implicitly represent the objects in the image. The introduction of fine-grained query improves the capture of fine-grained features of scenes, especially street scenes or drone images commonly seen in autonomous driving, providing features with fine-grained scene recovery and learning capabilities for depth estimation.

[0085] In a preferred embodiment, the depth estimation module 50 specifically includes: a probability mapping conversion unit, the probability mapping conversion unit is configured to map the depth feature difference of the self-loss body Apply a pixel-by-pixel normalized exponential function to convert it into a pixel-by-pixel probability map ; A feature generation unit to be estimated, wherein the feature generation unit to be estimated is configured to use a pixel-by-pixel probability mapping Complete the feature on the fly The weighted sum of pixels is used to obtain the feature to be estimated ; A depth estimation unit, the depth estimation unit is configured to represent the relative distance with the feature to be estimated After feature fusion, the image is sent to a multi-layer perceptron for depth estimation to obtain the final depth estimation result.

[0086] Furthermore, the relative distance representation is expressed as After feature fusion, the image is sent to a multi-layer perceptron for depth estimation, and the final depth estimation result is expressed as follows:

[0087] ;

[0088] in, is the depth estimation result.

[0089] In this embodiment, the depth estimation module 50 first calculates Apply pixel-wise Softmax (i.e. normalized exponential function) to convert it into a pixel-wise probability map ; Then, use Complete the pair The weighted sum of pixels, that is, the sum of different channels of the same pixel, is used to obtain the feature to be estimated. Finally, and After concat, the image is sent to the multi-layer perceptron to obtain the final depth estimation result. The depth estimation has better generalization and less truth-value dependence than the existing technology, and has better learning and recovery capabilities for fine-grained scene features. It solves the problems of the existing technology using lidar data as the supervised learning method of the truth value, such as long measurement data consumption, high cost, poor generalization, incomplete perception, low accuracy and inability to learn fine-grained prior knowledge of scene structure.

[0090] like Figure 3-5 As shown in Figure 1, a depth estimation experiment is performed on the images collected in the UAV target tracking scenario. Figure 3-5 They are the original image, the image that is directly used for depth estimation without using the true value, and the image that is used for depth estimation using the loss body constructed by the depth feature map difference of this application. The experimental results show that the existing methods do not fully capture fine-grained features, resulting in the loss of weak instances ( Figure 4 The instances in the box are lost), and the depth difference between the tree instances and the ground is unclear in the absence of ground truth ( Figure 4 The tree instances are mixed with the ground. The proposed method is more accurate in depth prediction and makes up for the problem of missing weak instances in existing methods ( Figure 5 The instances in the box are not lost), and the depth difference between the tree instances and the ground is more accurate ( Figure 5 The tree instances are clearly distinguishable from the ground).

[0091] Embodiment 2:

[0092] Reference Figure 6 , Figure 6A flowchart of a monocular depth estimation method with fine-grained recovery capability provided by an embodiment of the present invention.

[0093] like Figure 6 As shown, a monocular depth estimation method with fine-grained restoration capability is used in the monocular depth estimation system with fine-grained restoration capability as described above, comprising:

[0094] S1: extracting a feature map of a target image, and using the feature map to repair the target image to obtain a repaired image;

[0095] S2: extracting image features of the repaired image and converting the image features into instant features;

[0096] S3: constructing the inpainted images of a preset continuous time into an image sequence, defining an ordered plane group using frame images in the image sequence, and warping the depth feature maps of other frame images to the viewpoint of the first frame image based on the ordered plane group, obtaining the depth feature map difference generated by all frame images during the warping process, and using the depth feature map difference as a self-loss body;

[0097] S4: Segment the instantaneous feature into a plurality of patches, and perform a pixel-by-pixel relative distance query on the embedded representation of the patches to obtain a relative distance representation;

[0098] S5: Based on the self-loss volume and the relative distance representation, perform depth estimation on the repaired image to obtain a depth estimation result.

[0099] This embodiment provides a monocular depth estimation method with fine-grained recovery capability, which uses a fully convolutional U-Net with residual connections to extract immediate visual features with high-frequency details, and uses Transformer to obtain the embedding results of the immediate visual feature patches. The loss body constructed based on the depth feature map difference is converted into a pixel-by-pixel probability map, and the weighted summation of the immediate visual features is performed to obtain the features to be estimated. Finally, the relative distance representation obtained through the fine-grained query and the features to be estimated are sent to a multi-layer perceptron to obtain the final depth estimation result, which has better generalization and less truth-value dependence than the existing technology, and has better learning and recovery capabilities for the fine-grained features of the scene.

[0100] The specific implementation of the monocular depth estimation method with fine-grained restoration capability of the present application is basically the same as the above-mentioned embodiments of the monocular depth estimation system with fine-grained restoration capability, and will not be repeated here.

[0101] In the description of the embodiments of the present invention, it should be understood that the terms "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "center", "top", "bottom", "top", "bottom", "inside", "outside", "inner side", "outer side" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Among them, "inside" refers to an internal or enclosed area or space. "Periphery" refers to the area surrounding a specific component or a specific area.

[0102] In the description of the embodiments of the present invention, the terms "first", "second", "third", and "fourth" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", "third", and "fourth" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.

[0103] In the description of the embodiments of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", and "assemble" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0104] In the description of the embodiments of the present invention, specific features, structures, materials or characteristics may be combined in a suitable manner in any one or more embodiments or examples.

[0105] In the description of the embodiments of the present invention, it should be understood that "-" and "~" represent a range between two values, and the range includes the endpoints. For example: "AB" represents a range greater than or equal to A and less than or equal to B. "A~B" represents a range greater than or equal to A and less than or equal to B.

[0106] In the description of the embodiments of the present invention, the term "and / or" herein is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " herein generally indicates that the associated objects before and after are in an "or" relationship.

[0107] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A monocular depth estimation system with fine-grained recovery capability, characterized in that: The system comprises: An image preprocessing module, wherein the image preprocessing module is configured to extract a feature map of a target image, and use the feature map to repair the target image to obtain a repaired image; A visual feature extraction module, wherein the visual feature extraction module is configured to extract image features of the repaired image and convert the image features into instant features; A self-loss volume construction module, wherein the self-loss volume construction module is configured to construct the restoration images of a preset continuous time into an image sequence, define an ordered plane group using frame images in the image sequence, and warp the depth feature maps of other frame images to the viewpoint of the first frame image based on the ordered plane group, obtain the depth feature map difference generated by all frame images during the warping process, and use the depth feature map difference as the self-loss volume; A fine-grained query module, wherein the fine-grained query module is configured to segment the instantaneous feature into a plurality of patches, and perform a pixel-by-pixel relative distance query on the embedded representation of the patches to obtain a relative distance representation; A depth estimation module, wherein the depth estimation module is configured to perform depth estimation on the repaired image based on the self-loss volume and the relative distance representation to obtain a depth estimation result; The image preprocessing module specifically includes: A feature map extraction unit, wherein the feature map extraction unit is configured to extract shallow features of a target image, process the shallow features using a plurality of variable parallel fusion models, extract further features of the shallow features, and generate a feature map of the target image based on the further features extracted by each variable parallel fusion model; An image restoration unit, wherein the image restoration unit is configured to upsample the feature map of the target image and input the upsampled feature map into a multi-layer perceptron to restore the target image to obtain a restored image; The feature map extraction unit specifically includes: A shallow feature extraction subunit, wherein the shallow feature extraction subunit is configured to extract a target image The shallow features of the target image are extracted The shallow features are: ; in, Represents the target image Perform shallow feature extraction, is a 3×3 convolutional layer, Represents the extracted shallow features; A further feature extraction subunit, wherein the further feature extraction subunit is configured to process the shallow features using a plurality of variable parallel fusion models to extract further features of the shallow features; Among them, further features of the shallow features are extracted, specifically: ; in, represents the nth variable parallel fusion model, is the extracted features; The feature map generation subunit is configured to perform 1×1 convolution processing on the further features output by each variable parallel fusion model, and then perform 3×3 convolution processing, and add and flatten all the convolution processing results to obtain the first feature. ,Will Perform 3×3 convolution and flatten to get the second feature , the first feature, the second feature and the shallow feature after scaling and flattening Together they form a feature map with 3 channels ; The depth estimation module specifically includes: A probability map conversion unit, wherein the probability map conversion unit is configured to perform a depth feature map difference on the self-loss body. Apply a pixel-by-pixel normalized exponential function to convert it into a pixel-by-pixel probability map ; The feature generation unit to be estimated is configured to use a pixel-by-pixel probability mapping Complete the feature on the fly The weighted sum of pixels is used to obtain the feature to be estimated ; A depth estimation unit configured to compare the relative distance representation with the feature to be estimated. After feature fusion, the image is sent to a multi-layer perceptron for depth estimation to obtain the final depth estimation result.

2. The monocular depth estimation system with fine-grained recovery capability according to claim 1, characterized in that: The variable parallel fusion model specifically includes: A local feature subunit, wherein the local feature subunit is composed of four layers of 1×1 convolution, two layers of average pooling, one layer of ReLU and one layer of Sigmoid, wherein the average pooling layer is alternately combined with the first three layers of 1×1 convolution, the ReLU is placed between the third and fourth layers of convolution, and the Sigmoid is placed after the fourth layer of convolution; A global feature subunit, the global feature subunit is composed of three layers of regularization, one layer of multi-head self-attention, and one layer of multi-layer perceptron, the multi-head self-attention is placed between the first and second regularizations, and the multi-layer perceptron is placed between the second and third layers of regularization; A fusion subunit, wherein the fusion subunit is configured to fuse and add the shallow features input into the variable parallel fusion model, the features processed by the local feature subunit, and the features processed by the global feature subunit to obtain further features of the shallow features.

3. The monocular depth estimation system with fine-grained recovery capability according to claim 1, characterized in that: The visual feature extraction module specifically includes: An image feature extraction unit is configured to receive a Repair image , using a fully convolutional U-Net model with residual connections to extract the inpainted image Image features; An upsampling decoding unit, wherein the upsampling decoding unit is configured to upsample and decode the image feature into a size of Instant Features .

4. The monocular depth estimation system with fine-grained recovery capability according to claim 1, characterized in that: The self-loss body construction module specifically includes: An ordered plane group generating unit, wherein the ordered plane group generating unit is configured to generate a repaired image of a preset continuous time Build as image sequence , use the posture monitoring model to obtain the relative posture between frame images, define and generate an ordered plane group ; Wherein, the ordered plane group Each plane is perpendicular to the optical axis and the depth is within the minimum depth determined or estimated by humans. and maximum depth Linear spacing between them; A mapping warping unit configured to encode each frame of image into a deep feature map , t∈{1,…,N}, using the alternative depth for each hypothesis , using the known camera intrinsic parameters and estimated pose, the depth features of other frames are mapped to the viewpoint of the first frame; A self-loss volume construction unit configured to obtain depth feature map differences generated by all image frames during the warping process , and taking the depth feature map difference as the self-loss body; Among them, the self-loss volume contains for each pixel In the ordered plane The possibility of obtaining the correct depth.

5. The monocular depth estimation system with fine-grained recovery capability according to claim 4, characterized in that: The fine-grained query module specifically includes: A patch segmentation unit is configured to use The convolution kernel and length are The step size of the instantaneous feature Perform convolution to produce a size of The feature map , the feature map Refactored to ; in, is the number of channels, is the number of patches, and the size of a patch is , h and w are the instantaneous features of upsampling decoding The length and width of n is the feature map Depth A relative distance query unit is configured to send the patch into the converter to obtain a size of The embedding result , perform pixel-by-pixel relative distance query and obtain relative distance representation .

6. The monocular depth estimation system with fine-grained recovery capability according to claim 1, characterized in that: The relative distance representation and the feature to be estimated After feature fusion, the image is sent to a multi-layer perceptron for depth estimation, and the final expression of the depth estimation result is obtained, which is: ; in, is the depth estimation result.

7. A method for a monocular depth estimation system with fine-grained recovery capability based on claim 1, characterized in that: The method comprises: S1: extracting a feature map of a target image, and using the feature map to repair the target image to obtain a repaired image; S2: extracting image features of the repaired image and converting the image features into instant features; S3: constructing the inpainted images of a preset continuous time into an image sequence, defining an ordered plane group using frame images in the image sequence, and warping the depth feature maps of other frame images to the viewpoint of the first frame image based on the ordered plane group, obtaining the depth feature map difference generated by all frame images during the warping process, and using the depth feature map difference as a self-loss body; S4: Segmenting the instantaneous feature into a plurality of patches, and performing a pixel-by-pixel relative distance query on the embedded representation of the patches to obtain a relative distance representation; S5: Based on the self-loss volume and the relative distance representation, perform depth estimation on the repaired image to obtain a depth estimation result.

Citation Information

Patent Citations

  • Monocular image depth estimation algorithm based on self-attention neural network

    CN115115685A

  • Monocular depth estimation method and device fusing plane structure information

    CN118397062A