Monocular depth estimation system and monocular depth estimation method
By introducing kinematic information and self-attention modules into monocular depth estimation, and combining kinematic information and self-attention mechanisms, scale ambiguity and dynamic target problems are solved, the accuracy and performance of depth estimation are improved, and the training process is simplified. .
Patent Information
- Application Number
- CN202410534595.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-02
- Filing Date
- 2024-04-29
- Publication Date
- 2024-08-30
AI Technical Summary
Existing monocular depth estimation methods suffer from scale ambiguity and dynamic target problems, making it difficult to effectively restore the depth scale and process dynamic scenes.
Introduce kinematic information and self-attention modules to obtain kinematic information through GPS, IMU and wheel encoders. Combined with the self-attention mechanism, a loss function is constructed to improve depth estimation performance, including reprojection loss, smoothness loss and geometric consistency. loss, simplifying the training process and handling dynamic targets.
It effectively solves the problems of scale ambiguity and dynamic targets, improves the accuracy and performance of depth estimation, simplifies the training process, and reduces dependence on the accuracy of the pose network.
Smart Images

Figure CN118570270A
Abstract
Description
Technical Field
[0001] The present invention discloses a monocular depth estimation system with a self-attention mechanism. More specifically, the present invention discloses a system or method for solving the scale ambiguity problem and improving the depth estimation performance by introducing kinematics and a self-attention module. Background Art
[0002] Depth estimation is a fundamental component of 3D understanding of the surrounding environment in the field of computer vision and is a basic model in any autonomous driving system. The traditional image depth estimation method is to identify the same points in at least two images and then calculate the corresponding depth based on the relative pose of the camera model and the image. In recent years, due to the development of deep learning, the learning of depth information has attracted more and more attention.
[0003] Garg et al. first introduced the joint learning of depth and ego-motion. Then, Zhou et al. further provided a method to jointly learn the differentiability of depth and ego-motion using deep learning techniques. Since then, more and more studies have tried to improve the performance of depth estimation under the paradigm of joint learning of depth and ego-motion.
[0004] A joint depth and ego-motion learning network usually consists of two networks, one for estimating depth (depth network) and another for estimating relative pose (pose network). Typically, the input to the depth network is a single image, while the input to the pose network is a sequence of two images. During training, one image can be projected onto another based on the estimated depth and relative pose. The loss function can then be constructed based on the photometric difference between the projected image and the real image, along with some other constraints, such as SSIM.
[0005] Tinghui Zhou's "Unsupervised Learning of Depth and Ego-motion in Videos" describes an unsupervised learning framework for monocular depth estimation and camera motion estimation tasks from unstructured video sequences. This is achieved by simultaneously training a depth estimation network and a camera pose estimation network using a view synthesis task as a supervisory signal.
[0006] Yevhen Kuznietsov’s “Semi-supervised Deep Learning for Monocular Depth Map Prediction” illustrates the problem that supervised deep learning often suffers from lack of sufficient training data. Especially in the context of monocular depth map prediction, it is almost impossible to obtain dense ground-truth depth images in real dynamic outdoor environments.
[0007] However, the above joint learning methods inherently have the following limitations: 1) scale ambiguity; and 2) dynamic object problem. The scale ambiguity problem is due to the characteristics of the camera, that is, a small object that is close and a large object that is far away can be the same in the image. Moreover, the scale cannot be recovered based on the image alone. The dynamic object problem is that it is assumed that the captured scene is static, so that one image is projected onto another image, but dynamic objects obviously violate this assumption.
[0008] Therefore, in order to overcome the shortcomings of the existing technology, it is necessary to develop a monocular depth estimation system by introducing kinematics and self-attention modules to solve the scale ambiguity problem and improve the depth estimation performance. Summary of the invention
[0009] Depth estimation is an important and active research direction in the field of computer vision. Generally speaking, monocular depth estimation includes three paradigms, namely supervised methods, semi-supervised methods, and self-supervised methods. Due to the difficulty in obtaining dense real data, researchers are increasingly paying attention to self-supervised depth estimation and semi-supervised depth estimation.
[0010] Self-supervised methods have attracted much attention due to the fact that they do not require real data, which is expensive to acquire. Moreover, they only rely on a sequence of images captured continuously by a camera. However, they have an inherent disadvantage, namely, scale ambiguity, where large distant objects and small nearby objects may look the same in the camera.
[0011] Therefore, many researchers seek new methods to recover the estimated depth scale, such as using highly known camera, lidar points, etc., among which semi-supervised methods are the most promising methods.
[0012] Compared with supervised methods and self-supervised methods, semi-supervised methods are a compromise: they only require sparse depth points to be added to the image. Sparse depth points can be obtained through LiDAR scanning. The main idea of semi-supervision follows the idea of self-supervision and compares the estimated depth value with the sparse real data of the position of the point consistent with the LiDAR point, hoping to drive the entire estimation scale to the real physical world unit through the sparse real data.
[0013] In self-supervised and semi-supervised methods, an additional pose network is usually used in the training phase to provide relative pose information to construct the loss function. However, the accuracy of the pose network seriously affects the final performance of the depth information. The present disclosure provides a new solution to improve the depth estimation performance by introducing kinematic information and self-attention mechanism.
[0014] The main purpose of the present invention is to provide a monocular depth estimation system. The system includes a self-attention module, a kinematics module and a processor. The self-attention module includes an encoder, an attention unit and a decoder. The encoder is used to receive an image captured by a camera to form a coding map. The receiving area of the coding map is increased in the attention unit to form a final prediction performance; the decoder is used to decode and project the final prediction performance.
[0015] In addition, the kinematics module includes one or more information obtained from the fusion of information from GPS, IMU and wheel encoders. The processor improves the final prediction performance by fusing the information and accurately estimating the monocular depth.
[0016] Another object of the present invention is to provide a system comprising a segmentation unit to output a mask of one or more dynamic objects and output it to other images. Another object of the present invention is to provide a segmentation unit to compare the overlapping portion of the projection mask in one or more dynamic objects with the detection mask in another image. Another object of the present invention is to provide a loss function to improve the final prediction performance. The loss function includes a reprojection loss, a smoothness loss, and a geometric consistency loss. Other objects and aspects of the present invention will become apparent in conjunction with the following detailed description of the accompanying drawings, and the features consistent with the embodiments of the present invention are explained by way of example.
[0017] To achieve the above and related purposes, the present invention may be embodied in the form of the accompanying drawings. It should be noted that the drawings are, in fact, merely exemplary and that the specific structures shown and described may be changed within the scope of the appended claims.
[0018] Although the present invention is described above according to various exemplary embodiments and implementations, it should be understood that the various features, aspects, and functions described in one or more individual embodiments are not limited to the specific embodiments they describe, but can be applied to one or more other embodiments of the present invention alone or in various combinations, regardless of whether such embodiments are described and whether these features are presented as part of the described embodiments. Therefore, the breadth and scope of the present invention should not be limited by any of the above exemplary embodiments.
[0019] In some cases, there will be expanded words and phrases, such as, for example, "one or more," "at least," "but not limited to," or other similar words, which, in the absence of similar expanded words, should not be understood as intending or requiring a narrower context. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings illustrate various embodiments of the system, method and various other aspects of the present disclosure. It will be appreciated by those skilled in the art that the element boundaries (e.g., boxes, box groups or other shapes) shown in the figures represent an example of boundaries. In some embodiments, an element may be designed as multiple elements, or multiple elements may be designed as one element. In some examples, an element shown as an internal component of an element may be implemented as an external component of another element, and vice versa. In addition, the element may not be drawn to scale. A non-restrictive and non-comprehensive description is made with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, but focus is placed on the principle description.
[0021] Embodiments of the present invention are described with reference to the following drawings. The same numerals are used throughout the drawings to represent the same features and components. The features depicted in the drawings are not necessarily shown to scale. Certain features of the embodiments may be enlarged in scale or shown in some schematic form, and some details of the elements may not be shown for clarity and brevity.
[0022] Figure 1 Schematic diagram describing the existing technology of joint learning of depth and pose.
[0023] Figure 2A A schematic diagram of a monocular depth estimation system provided by the present invention.
[0024] Figure 2B A schematic diagram of the framework of a monocular depth estimation system provided by the present invention.
[0025] Figure 2C A schematic diagram of how the attention module provided by the present invention processes queries, keys, and values.
[0026] Figure 3A A schematic flow chart of a monocular depth estimation method provided by the present invention.
[0027] Figure 3B A schematic flow chart of a monocular depth estimation method by fusing kinematic information depth provided by the present invention. DETAILED DESCRIPTION
[0028] The present invention proposes to improve the depth estimation accuracy by using kinematic information and self-attention module. Kinematic information can be easily obtained by fusing information from global positioning system (GPS), inertial measurement unit (IMU) and wheel encoder.
[0029] The present invention discloses a new scheme for training a depth estimation network using kinematics and self-attention modules to improve prediction performance. The present invention not only helps to recover the depth scale, but also simplifies the training phase and solves the dynamic target problem.
[0030] Figure 1 Schematic diagram of the prior art 100 for joint learning of depth and pose. The network for joint learning of depth and ego-motion usually includes two networks: one for depth estimation (depth network) 104 and the other for relative pose estimation (pose network) 106. Generally speaking, the input of the deep network is a single image 102, while the input of the pose network is two sequence images.
[0031] During training, one image is projected onto another image based on the depth map 108 and the relative pose 110. A loss function is then constructed based on the photometric difference between the projected image and the real image and some other constraints, such as SSIM.
[0032] Removing the pose network greatly simplifies the learning process. Otherwise, the prediction performance of the deep network may be affected because it heavily depends on the prediction accuracy of the pose network, so kinematics is used instead of the pose network.
[0033] Besides this, since the kinematic information is consistent with the physical world, it will help resolve the scale ambiguity problem. The self-attention module helps increase the receptive field, thus improving the learning process.
[0034] Figure 2A Schematic diagram of a monocular depth estimation system. The system 200 includes a self-attention module 202, a kinematics module 214, and a fusion module 216. The self-attention module 202 includes a camera 204, an encoder 206, a self-detection mask unit 208, an attention unit 210, and a decoder 212. The encoder 206 receives a captured image from the camera 204 and forms a coded image.
[0035] The self-check mask unit 208 constructs a self-check mask by comparing the estimated depth D1 and the projected depth map. The mask is used to weight the second term of the reprojection loss. Because all dynamic targets are not shielded. Otherwise, the accuracy of these targets will be affected because these targets have never participated in training. These targets are required when they are stationary in the sequence image, and if they are moving, these targets will be masked. Therefore, a learning-based method is designed to construct such a mask. The projection mask, that is, the self-check mask in one or more dynamic targets, is compared with the predefined mask in the encoding map to predict the overlap ratio.
[0036] In an optional embodiment, the system includes a segmentation unit for comparing the projection mask in one or more dynamic targets with a predefined mask in the coding map to predict an overlap ratio. The overlap ratio can define one or more dynamic targets as static targets or dynamic targets, and mask the dynamic targets in the coding map. In addition, the segmentation unit compares the projection mask in one or more dynamic targets with the overlapping portion of the detection mask in another image. It should be understood that the segmentation unit can be a segmentation network, which is not specifically limited in the embodiment of the present invention.
[0037] If the overlap is less than the defined ratio, the one or more dynamic targets are considered to be moving, otherwise they are considered to be static. When the target is moving, the one or more dynamic targets are masked out of the final loss function, otherwise they will be counted.
[0038] The attention unit 210 increases the receiving area of the encoded image and predicts the final prediction performance based on one or more unmasked static objects of the encoded image. The decoder decodes and projects the final prediction performance. In addition, the kinematic module 214 includes information obtained from the fusion of information from GPS, IMU and wheel encoders. The fusion module 216 improves the final prediction performance by fusing one or more information and accurately estimating monocular depth.
[0039] In order to improve the final prediction performance, a loss function is constructed. The loss function includes reprojection loss, smoothness loss and geometric consistency loss. The reprojection loss is the sum of photometric loss and structural similarity (SSIM) difference. The smoothness loss is introduced to enhance nearby positions so that they have similar depth values. The geometric consistency loss includes one or more reprojection weights.
[0040] The segmentation unit outputs a mask of dynamic objects and projects the mask to the other image, comparing the overlap between the projected mask and the detection mask in the other image. If the overlap is less than a given ratio, the dynamic object is considered to be moving, otherwise the object is considered to be static. If they are moving, the pixels on the dynamic object will be masked out of the final loss function, otherwise they will be counted, which can improve learning performance, especially for dynamic objects.
[0041] Even with significant progress, depth estimation performance still heavily relies on the accuracy of the pose network, which itself is difficult to learn. Since depth inference does not require pose information, this paper proposes to simplify the learning process by removing the pose network. Kinematic information is used as a substitute. In addition, in order to better capture the relationship of surrounding pixels, this paper proposes to use a self-attention network after context aggregation, which will further improve the estimation performance.
[0042] Figure 2BSchematic diagram of a monocular depth estimation system. The present invention proposes to improve the depth estimation accuracy by using kinematic information and self-attention module. By integrating the information of GPS, IMU and wheel encoder, kinematic information 214 can be easily obtained.
[0043] like Figure 2B In the framework shown, Resnet-18 is used as the backbone encoder 206. After extracting features, the embodiment of the present invention uses an attention unit 210 to increase the receptive field, which helps to improve the final prediction performance 212A and the estimated depth of the projected 216A encoding map.
[0044] Given two sequence images 204A (I1, I2) and relative pose T, the embodiment of the present invention first uses a deep network to predict their depth maps (D1, D2) twice, and then uses D1 and T to deform (I2, D2) to (I1, D1) through bilinear interpolation to obtain a composite image I 2→1 and the depth map D 2→1 , the constructed loss function is as follows:
[0045] L=M⊙L p +αL s +βL g
[0046] Among them, M is the self-check mask, L p is the reprojection loss, L s is the smoothing loss, L g is the geometric consistency loss.
[0047] Reprojection Loss: It is common practice to construct the reprojection loss as the sum of photometric loss and structural similarity (SSIM) difference.
[0048]
[0049] Smoothness loss: Smoothness loss is introduced to encourage nearby positions to have similar depth values. The smoothness loss is constructed as:
[0050]
[0051] Geometric consistency loss and self-check mask: In order to promote the consistency of the predicted depth of the image, the embodiment of the present invention constructs a geometric consistency loss by deforming D2.
[0052]
[0053] Furthermore, we can construct M=1―L g , M can also be used as a reprojection weight: when the reprojection is perfect, M = 1; otherwise, its value is close to 0.
[0054] Attention module: The attention module has been shown to improve the accuracy of object detection and semantic segmentation tasks in computer vision. It maps a query and a set of key-value pairs to an output, where Figure 2C As shown, the query, key, and value can be obtained by performing a 1x1 convolution operation on the image.
[0055] Figure 3A It is a flow chart of a monocular depth estimation method 300A. The method includes: S302: capturing an image through a camera, S304: encoding the image through an encoder to form a coding map, S306: masking one or more dynamic targets in the coding map. S308: the attention unit predicts the final prediction performance based on one or more unmasked static targets in the coding map, S310: decoding and projecting the final prediction performance through a decoder. S312: based on the fusion of information from a global positioning system (GPS), an inertial measurement unit (IMU) and a wheel encoder, information is generated in a kinematic module, S314: the final prediction performance is fused with the information through a fusion module to estimate the monocular depth.
[0056] Figure 3B The present invention is a flowchart of a monocular depth estimation method 300B by fusing kinematic information depth. The method includes: S316: capturing an image through a camera, S318: encoding the image through an encoder to form a coding map, S320: comparing the projection mask in one or more dynamic targets with the predefined mask in the coding map through a segmentation unit. S322: predicting the overlap ratio based on the comparison of the segmentation unit. S324: defining the one or more dynamic targets as static targets or dynamic targets based on the overlap ratio. S326: predicting the final prediction performance through an attention unit based on one or more unencoded static targets in the coding map. S328: decoding and projecting the final prediction performance through a decoder. S330: generating information in a kinematic module based on the fusion of information from a global positioning system (GPS), an inertial measurement unit (IMU) and a wheel encoder. S332: estimating the monocular depth by fusing the final prediction performance with the information through a fusion module.
[0057] However, it should be understood that the various embodiments of the present invention described above are merely exemplary and are not intended to limit the present invention. Similarly, the accompanying drawings show exemplary architectures or other configurations for the present invention, which are intended to help understand the features and functions included in the present invention. The present invention is not limited to the exemplary architectures or configurations shown, and the desired characteristics can be achieved through various alternative architectures and configurations.
[0058] Although the present invention is described above according to various exemplary embodiments and implementations, it should be understood that the various features, aspects and functions described in one or more individual embodiments are not limited to the specific embodiments they describe, but can be applied to one or more other embodiments of the present invention alone or in various combinations, whether or not these embodiments are described and whether or not these features are presented as part of the described embodiments. Therefore, the breadth and scope of the present invention should not be limited by any of the exemplary embodiments described above.
[0059] In some cases, there will be expanded words and phrases, such as, for example, "one or more," "at least," "but not limited to," or other similar words, which, in the absence of similar expanded words, should not be understood as intending or requiring a narrower context.
Claims
1. A monocular depth estimation system, characterized in that: include: Self-attention module, including: A camera, for capturing images; An encoder for encoding the image to form a coded image; A self-checking masking unit, for masking one or more dynamic targets in the coding map; an attention unit for predicting a final prediction performance based on one or more unmasked static objects in the encoding map; and A decoder for decoding and projecting the final prediction performance; A kinematics module, wherein the kinematics module includes information generated based on the fusion of information from a global positioning system GPS, an inertial measurement unit IMU, and wheel encoders; and A fusion module is used to combine the final prediction performance and the information to estimate the monocular depth.
2. The monocular depth estimation system according to claim 1, characterized in that: The self-checking mask unit performs a masking operation on the one or more dynamic objects using the self-checking mask when calculating the loss in training.
3. The monocular depth estimation system according to claim 2, characterized in that: The self-detection mask is formed by comparing the estimated depth with the projected depth map.
4. The monocular depth estimation system according to claim 1, wherein: The dynamic objects are masked out from the final loss function.
5. The monocular depth estimation system according to claim 4, characterized in that: The final loss function includes reprojection loss, smoothness loss and geometric consistency loss.
6. The monocular depth estimation system according to claim 5, wherein: The reprojection loss is the sum of the photometric loss and the structural similarity SSIM difference.
7. The monocular depth estimation system according to claim 5, wherein: The smoothness loss enhances the boundary area of the dynamic object to generate similar depth values.
8. The monocular depth estimation system according to claim 5, wherein: The geometric consistency loss includes one or more reprojection weights.
9. The monocular depth estimation system according to claim 1, characterized in that: The self-attention module comprises: A segmentation unit is used to compare the projected mask in one or more dynamic objects with the predefined mask in the encoding map to predict an overlap ratio, wherein the overlap ratio is used to further define the one or more dynamic objects as static objects or dynamic objects.
10. A monocular depth estimation method, characterized in that: include: Capture an image; Encoding the image to form a coding image; Performing a mask operation on one or more dynamic objects in the coding graph; predicting a final prediction performance based on one or more unmasked static objects in the encoded graph; decoding and projecting the final predicted performance; Generate information based on the fusion of information from the global positioning system GPS, inertial measurement unit IMU and wheel encoder; as well as The final prediction performance is fused with the information to estimate the monocular depth.
11. A monocular depth estimation method, characterized in that: include: Capture an image; encoding the image to form a coded image; comparing a projected mask in one or more dynamic objects with a predefined mask in the encoded map; predicting an overlap ratio based on the comparison; Based on the overlap ratio, defining the one or more dynamic targets as static targets or dynamic targets; predicting a final prediction performance based on one or more unmasked static objects in the encoded graph; decoding and projecting the final predicted performance; Generate information based on the fusion of information from the global positioning system GPS, inertial measurement unit IMU and wheel encoder; as well as The final prediction performance is fused with the information to estimate the monocular depth.
