All-day scene self-supervised depth estimation method and system based on cross-domain interaction

Through the combination of the cross-domain interaction module and the cross-domain coupled projection module, the 'domain shift' problem of the self-supervised monocular depth estimation model under changing lighting conditions is solved, achieving improved depth estimation performance and accurate results for all-day scenes. Sexual enhancement.

CN118134981BActive Publication Date: 2024-10-22SHANDONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410557541.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-08
Publication Date
2024-10-22
Estimated Expiration
2044-05-08

AI Technical Summary

Technical Problem

Existing self-supervised monocular depth estimation models perform unstable in scenes with changing lighting conditions and cannot effectively adapt to all-day depth estimation. In particular, there is a 'domain shift' between normal lighting and low lighting scenes, resulting in depth estimation results. Inaccurate or vague.

Method used

The cross-domain interaction module and the cross-domain coupling projection module are used to decouple and reconstruct the private features and shared features of the image samples, and utilize the private domain orthogonal loss and cross-reconstruction consistency loss, combined with scene loss supervised training, to enhance the depth estimation model. Robustness and accuracy.

Benefits of technology

It effectively reduces the impact of lighting conditions on depth estimation performance, improves depth estimation adaptability and result accuracy in all-day scenes, and especially enhances texture feature perception under weak lighting conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118134981B_ABST
    Figure CN118134981B_ABST
Patent Text Reader

Abstract

The present disclosure proposes a self-supervised depth estimation method and system for all-day scenes based on cross-domain interaction, which relates to the technical field of depth estimation. The method includes: inputting the all-day image to be estimated into a depth estimation model to obtain a depth estimation result; wherein, in the depth estimation model, a cross-domain interaction module is used to decouple the all-day image samples into daytime private features and shared features, nighttime private features and shared features; using orthogonal loss to constrain the complementarity of the two private features, reconstructing the image based on the exchange of private features with shared features; a cross-domain coupling projection module is used to decode the two shared features into depth maps respectively, and based on the all-day image samples, depth maps, and pose matrices, scene loss supervision training is used to obtain self-supervised monocular depth estimation results. The shared information contained in the day and night images is fully considered, and the texture information of the night images is deepened, thereby improving the adaptability of the depth estimation model to depth estimation of all-day scenes and the accuracy of the results.
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 depth estimation, and in particular to a method and system for self-supervised depth estimation of all-day scenes based on cross-domain interaction. Background Art

[0002] Current self-supervised monocular depth estimation models have made great progress in normal lighting scenarios, and even achieved performance comparable to that of supervised monocular depth estimation models on multiple daytime real-scene autonomous driving datasets.

[0003] From an application perspective, the lighting in real autonomous driving scenes is bound to change at any time. However, there is a huge "domain offset" between normal lighting scenes and low-light scenes, which manifests as completely different lighting. As a result, the existing self-supervised monocular depth estimation network for normal lighting scenes cannot be applied to low-light scenes, and the network for low-light scenes is also difficult to achieve the original effect in normal lighting scenes.

[0004] In response to the above problems, the latest domain separation-based all-day scene self-supervised monocular depth estimation network directly applies the domain separation model in domain adaptation to the depth estimation stage. However, the inventors found that on the one hand, it failed to take into account the optimization of the domain separation process, and the domain separation process may not fully consider the accurate image texture, structure and other information required for depth estimation, resulting in the extracted features being inaccurate or incomplete; on the other hand, it also lacks the interaction of inter-domain information, ignoring certain shared information in images under different lighting conditions, resulting in inaccurate or blurred depth estimation results in some areas. Therefore, how to design a self-supervised monocular depth estimation network that is robust to lighting environments and can ensure the performance of all-day scene depth estimation has become an urgent problem to be solved. Summary of the invention

[0005] In order to solve the above problems, the present invention proposes a self-supervised depth estimation method and system for all-day scenes based on cross-domain interaction. By constructing a cross-domain interaction module and a cross-domain coupled projection module, it optimizes domain adaptation and self-supervised monocular depth estimation, fully considers certain shared information existing in images under different lighting conditions, and deepens the texture information of night images, thereby improving the adaptability of the depth estimation model to depth estimation for all-day scenes and the accuracy of the results.

[0006] In order to achieve the above object, the present invention adopts the following technical solution:

[0007] In a first aspect, the present invention provides a self-supervised depth estimation method for all-day scenes based on cross-domain interaction, comprising:

[0008] Acquire a full-day image to be estimated; the full-day image includes a daytime image or a nighttime image;

[0009] Input the all-day image to be estimated into the depth estimation model to obtain the depth estimation result;

[0010] Among them, the depth estimation model includes a cross-domain interaction module and a cross-domain coupling projection module; the cross-domain interaction module is used to decouple the all-day image samples into daytime private features, daytime shared features, nighttime private features, and nighttime shared features; the private domain orthogonal loss is used to constrain the complementarity of the two private features, and the image samples are reconstructed based on the shared features and the exchanged private features respectively; the cross-domain coupling projection module is used to decode the two shared features into depth maps respectively, and based on the all-day image samples, depth maps, and pose matrices, scene loss supervised training is used to obtain self-supervised monocular depth estimation results.

[0011] Preferably, the all-day image samples include daytime image samples and nighttime image samples; and CycleGAN is used to generate the nighttime image samples that match the daytime image samples.

[0012] Preferably, the decoupling of the all-day image samples into daytime private features, daytime shared features, nighttime private features, and nighttime shared features is specifically performed as follows:

[0013] Input the daytime image samples into the first private encoder and the first shared encoder respectively to obtain decoupled daytime private features and daytime shared features; input the nighttime image samples into the second private encoder and the second shared encoder respectively to obtain decoupled nighttime private features and nighttime shared features; and use direct feature orthogonal loss and Gram matrix orthogonal loss to constrain the decoupling process;

[0014] The daytime private features and the daytime shared features are input into a first reconstruction decoder to obtain reconstructed daytime image samples; the nighttime private features and the nighttime shared features are input into a second reconstruction decoder to obtain reconstructed nighttime image samples; and the reconstruction loss is used to constrain the reconstruction process of obtaining the reconstructed daytime image samples and the reconstructed nighttime image samples.

[0015] Preferably, the using of private domain orthogonal loss to constrain the complementarity of the two private features specifically includes:

[0016] ;

[0017] ;

[0018] ;

[0019] Among them, the private domain orthogonal loss Including private domain direct feature orthogonal loss and private domain Gram matrix orthogonal loss ; For simplified daytime private features, For simplified nighttime private features, is the Gram matrix of daily private features, is the Gram matrix of nightly private features.

[0020] Preferably, the image samples are reconstructed based on the shared features and the exchanged private features respectively, and the specific process is as follows:

[0021] Reconstruct based on daytime shared features and nighttime private features to obtain interactively reconstructed daytime image samples;

[0022] Reconstruct based on nighttime shared features and daytime private features to obtain interactively reconstructed nighttime image samples;

[0023] The reconstruction process of obtaining interactively reconstructed daytime image samples and interactively reconstructed nighttime image samples is constrained by cross-reconstruction consistency loss.

[0024] Preferably, the two shared features are decoded into depth maps respectively, and based on the all-day image samples, depth maps, and pose matrices, scene loss supervised training is adopted to obtain a self-supervised monocular depth estimation result, and the specific process is as follows:

[0025] Input the daytime shared features into the first depth decoder to obtain a daytime depth map; input the nighttime shared features into the second depth decoder to obtain a nighttime depth map;

[0026] Input the daytime image samples into the pose estimation network to obtain the daytime pose matrix;

[0027] Depth estimation based on daytime image samples, daytime depth map and daytime pose matrix; or, depth estimation based on nighttime image samples, nighttime depth map and daytime pose matrix;

[0028] Self-supervised depth estimation is achieved using photometric consistency loss and edge-aware smoothness loss.

[0029] Preferably, in the process of respectively decoding the two shared features into depth maps, a depth map pseudo label is used for constraint; the process of obtaining the depth map pseudo label is:

[0030] The daytime image samples are input into the pre-trained depth estimation network to obtain the depth map pseudo labels.

[0031] In a second aspect, the present invention provides a self-supervised depth estimation system for all-day scenes based on cross-domain interaction, comprising:

[0032] An acquisition module, used for acquiring the all-day image to be estimated; the all-day image includes a daytime image or a nighttime image;

[0033] A processing module, used for inputting the all-day image to be estimated into a depth estimation model to obtain a depth estimation result;

[0034] Among them, the depth estimation model includes a cross-domain interaction module and a cross-domain coupling projection module; the cross-domain interaction module is used to decouple the all-day image samples into daytime private features, daytime shared features, nighttime private features, and nighttime shared features; the private domain orthogonal loss is used to constrain the complementarity of the two private features, and the image samples are reconstructed based on the shared features and the exchanged private features respectively; the cross-domain coupling projection module is used to decode the two shared features into depth maps respectively, and based on the all-day image samples, depth maps, and pose matrices, scene loss supervised training is used to obtain self-supervised monocular depth estimation results.

[0035] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in a method for self-supervised depth estimation of all-day scenes based on cross-domain interaction as described in the first aspect.

[0036] In a fourth aspect, the present invention provides a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the method for self-supervised depth estimation of all-day scenes based on cross-domain interaction are implemented as described in the first aspect.

[0037] Compared with the prior art, the present invention has the following beneficial effects:

[0038] In the domain adaptive domain separation module, the present invention proposes a cross-domain feature interaction module (DNFI, Day and Night Feature Interaction Module), which uses private domain orthogonal loss and cross-reconstruction consistency loss to further limit the solution space of the domain separation network. By decoupling first and then reconstructing, the impact of different lighting on performance is weakened. The stripping of private features achieves the purpose of reducing the "domain offset" of normal lighting images and low-light images, while ensuring the accuracy of depth estimation. In the self-supervised monocular depth estimation module, a cross-domain coupled projection module (DNIP, Day and Night Interactive Projection Module) is proposed. Due to the low visibility and textureless characteristics of low-light scenes, pixel mismatching problems will occur during the reconstruction process. The pose estimation network results of normal lighting scenes are used to correct them, which enhances the texture features of low-light scenes and improves the perception ability of the depth estimation model for low-light images.

[0039] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings constituting a part of the present disclosure are used to provide a further understanding of the present disclosure. The exemplary embodiments of the present disclosure and the description thereof are used to explain the present disclosure but do not constitute a limitation of the present disclosure.

[0041] Figure 1 A main flow chart of a self-supervised depth estimation method for all-day scenes based on cross-domain interaction provided by the present disclosure;

[0042] Figure 2 A structural diagram of a depth estimation model provided by the present disclosure;

[0043] Figure 3 A depth map result of a low-light image obtained by inputting a continuous low-light image into the depth estimation model provided by the present disclosure;

[0044] Figure 4 The depth map result of the normal illumination image is obtained by inputting the continuous normal illumination image into the depth estimation model provided by the present disclosure. DETAILED DESCRIPTION

[0045] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0046] This application optimizes from two aspects: domain adaptation and cross-domain interaction, and proposes a self-supervised monocular depth estimation model for all-day scenes based on cross-domain interaction. This framework simultaneously performs self-supervised monocular depth estimation on normal lighting scenes (for example, daytime scenes) and their matching low-light scenes (for example, night scenes), and proposes a series of cross-domain interaction schemes based on the assumption of the same scene.

[0047] In the domain adaptation part, a cross-domain interaction module is designed, which uses two encoders and two decoders to decouple images in the normal illumination domain or the low illumination domain. In order to better achieve feature separation, two cross-domain interaction losses, private domain orthogonal loss and cross reconstruction consistency loss, are proposed. Finally, the shared feature subspace is input into the depth decoder to complete the preliminary self-supervised monocular depth estimation and obtain the depth map.

[0048] In the self-supervised monocular depth estimation part, the framework is built based on the self-supervised monocular depth estimation network of SfM. Because the scenes of normal-light images and low-light images are exactly the same, the camera pose matrix obtained by their pose estimation network should also be the same. In order to reduce the impact of pixel matching errors in the reconstruction process caused by low visibility in low-light scenes, a correction scheme of cross-domain projection coupling is proposed. Based on the depth map obtained in the domain adaptation part, the pose estimation network of the normal-light scene is used to guide the reconstruction of the low-light scene.

[0049] Embodiment 1

[0050] like Figure 1 As shown, this embodiment discloses a self-supervised depth estimation method for all-day scenes based on cross-domain interaction, comprising the following steps:

[0051] S1: Acquire a full-day image to be estimated; the full-day image includes a daytime image or a nighttime image;

[0052] S2: Input the all-day image to be estimated into the depth estimation model to obtain the depth estimation result.

[0053] The depth estimation model is as follows: Figure 2 As shown, specifically:

[0054] 1. Cross-domain interaction module

[0055] (1) Domain Adaptation Module

[0056] Theoretically, information such as illumination is the biggest difference between normal illumination scenes (daytime images) and low-lighting scenes (nighttime images), and is the main cause of "domain shift", while structural information such as texture needs to be preserved in depth estimation tasks. Since it is difficult to capture scenes with exactly the same structure but different illumination, in order to realize the above assumption, this embodiment first generates a low-lighting image that matches the normal illumination image through CycleGAN. In this way, paired normal illumination scene and low-lighting scene data can be obtained, whose structural information is completely similar, and only the illumination information is different. The above process can be expressed by formulas (1) and (2),

[0057] (1)

[0058] (2)

[0059] Normal lighting image can be decomposed into and Two complementary subspaces, similarly, with the normal lighting image Matching night image Can also be divided into and Two complementary subspaces. Among them, and The shared information is for normal illumination images and low illumination images, which contain structural information with positive gain for depth estimation tasks. and The private information of normal illumination images and weak illumination images contains information such as illumination that affects the versatility of the depth estimation network in the two domains. and The two subspaces should be similar.

[0060] This embodiment implements the above theoretical description from the perspective of features, and achieves the purpose of decomposing features into shared features and private features. By using four encoders (normal lighting private encoder, normal lighting shared encoder, low lighting private encoder, low lighting shared encoder) to decouple normal lighting images and low lighting images, the private features containing lighting information in the image features are stripped, that is, the features of "domain offset" in normal lighting scenes and low lighting scenes are stripped, and the shared features containing texture information required for the depth estimation task are retained.

[0061] Specifically, the normal lighting scene and the low lighting scene each have two encoders responsible for domain separation, which are composed of a private encoder and a shared encoder. and a second private encoder for low-light scenarios Extract private features of normal-light images and low-light images and . Using the first shared encoder in normal lighting scenes and a second shared encoder for low-light scenarios Extract shared features of normal illumination images and low illumination images respectively and , the formula is as follows:

[0062] (3)

[0063] (4)

[0064] (5)

[0065] (6)

[0066] Since the two feature subspaces obtained by the normal illumination image and the low illumination image through the two encoders should be separated, that is, and different, and Different. In order to better decouple the image, two orthogonal loss constraints are designed, direct feature orthogonal loss and Gram matrix orthogonal loss. Since the number of feature channels obtained by the encoder is large, we first use , , and Four Convolution is used to reduce the number of feature channels to obtain simplified private features and shared features, and the simplified features are straightened into a one-dimensional feature vector to reduce the complexity of the features and simplify the calculation. The formula is:

[0067] (7)

[0068] (8)

[0069] (9)

[0070] (10)

[0071] in, For simplified private features of normal lighting images, To simplify the private features of low-light images, To simplify the shared features of normal lighting images, Sharing features for simplified low-light images.

[0072] In this embodiment, the direct feature orthogonal loss is obtained by finding the inner product between the simplified private feature vector and the shared feature vector of the same scene, and is defined as , as shown in formula (11):

[0073] (11)

[0074] in, It is an operation that converts multi-dimensional features into one-dimensional features.

[0075] Inspired by style transfer, the Gram matrix is ​​widely used in style transfer to represent the style of features. The private feature space and the shared feature space can be considered to have different styles. Therefore, this embodiment first calculates the Gram matrix of the private feature space and the shared feature space ( , , and ), and then straighten them into one-dimensional feature vectors. Finally, the Gram matrix orthogonal loss is obtained by calculating the inner product between the private feature space Gram matrix vector and the shared feature space Gram matrix vector, and is defined as , as shown in formula (12):

[0076] (12)

[0077] in, It is an operation that converts multi-dimensional features into one-dimensional features; is the Gram matrix of the shared features of the normal illumination image, is the Gram matrix of the private features of the normal illumination image, is the Gram matrix of shared features of low-light images, is the Gram matrix of the private features of the low-light image.

[0078] Direct feature orthogonal loss and Gram matrix orthogonal loss Together they constitute the orthogonal loss , as shown in formula (13):

[0079] (13)

[0080] In order to better ensure that the private feature subspace and the shared feature subspace are complementary, that is, to ensure that features are not lost, this embodiment adds a reconstruction decoder, whose input is the merged private features and shared features, and is supervised by the original image to constrain that the merged feature space can still be reconstructed back to the original image. The normal illumination reconstruction decoder and the low illumination reconstruction decoder are respectively denoted as the first reconstruction decoder and the second reconstruction decoder , whose input is , and , The fusion features of the obtained private features and shared features are output as the reconstructed normal lighting image and low-light images , as shown in formula (14) and formula (15):

[0081] (14)

[0082] (15)

[0083] This embodiment uses reconstruction loss Constraints are made, as shown in formula (16):

[0084] (16)

[0085] in, , N is and The number of pixels, x represents the x-th pixel. represents the reconstructed normal illumination image of the t-th frame and the x-th pixel, represents the original normal illumination image of the t-th frame and the x-th pixel, represents the reconstructed low-light image of the t-th frame and the x-th pixel, Represents the original low-light image of the t-th frame and the x-th pixel.

[0086] (2) Cross-domain interaction loss

[0087] The above domain adaptation module analyzes the decoupling scheme from a theoretical level, and uses orthogonal constraints and reconstruction constraints to achieve the effect of decoupling normal-light images and low-light images into private feature subspaces and shared feature subspaces. It can be observed that normal-light images and low-light images are performing exactly the same operations, and the networks of the day and night domains are completely symmetrical.

[0088] Based on the fact that the prior art ignores the information interaction between the day and night domains, this embodiment proposes two day and night interaction losses, namely, private domain orthogonal loss and cyclic cross reconstruction consistency loss, which not only restricts the decoupling of features within the domain, but also restricts the decoupling of features across domains, so as to make full use of information and further limit the solution space of the domain separation network, thereby better decoupling the features.

[0089] Specifically, the normal lighting image is characterized by a private encoder and a shared encoder. and , the low-light image is characterized by a private encoder and a shared encoder and It is known that and are the same, and and are complementary, and are also complementary, then and It should also be complementary. Continuing the solution in the domain adaptation module, private domain orthogonal loss Using private domain direct feature orthogonal loss and private domain Gram matrix orthogonal loss To achieve the purpose of complementarity between the private feature subspaces of normal illumination images and low illumination images, the specific formula is as follows:

[0090] (17)

[0091] (18)

[0092] (19)

[0093] In addition, the shared information of day and night scenes is consistent, and the private features should be expressed as the unique characteristics of each domain. That is to say, by combining the private features of any domain on the basis of shared information, the image of the private domain style can be reconstructed, that is, the normal lighting private domain Shared domain with low light Fusion can reconstruct the normal lighting image , low light private domain Shares domain with normal lighting Fusion can reconstruct low-light images The specific formula is as follows:

[0094] (20)

[0095] (twenty one)

[0096] This embodiment uses cross-reconstruction consistency loss Constraints are made, as shown in formula (22):

[0097] + + + (twenty two)

[0099] in, , N is and The number of pixels, x represents the x-th pixel. Represents the reconstructed normal illumination image of the cross-domain interaction of the t-th frame and the x-th pixel, represents the original normal illumination image of the t-th frame and the x-th pixel, Represents the reconstructed low-light image of the cross-domain interaction of the t-th frame and the x-th pixel, Represents the original low-light image of the t-th frame and the x-th pixel.

[0100] In addition, the shared feature subspace and Used for subsequent depth estimation tasks, the decoder of the depth estimation network is the first depth decoder and the second depth decoder Generate depth maps corresponding to normal lighting images and low-light images respectively and , as shown below:

[0101] (twenty three)

[0102] (twenty four)

[0103] According to previous studies, the effect of normal lighting scenes in the SfM-based self-supervised monocular depth estimation network is better than that of weak lighting scenes, so this embodiment uses the depth output spatial consistency constraint loss , to constrain the estimated depth map of the low-light image to be as close as possible to the depth map estimated from the normal-light image. The formula is as follows:

[0104] (25)

[0105] in, , N is and The number of pixels, x represents the x-th pixel. Indicates that the depth map of the normal illumination image of the xth pixel in the tth frame is not returned. Represents the depth map of the low-light image at the t-th frame and the x-th pixel.

[0106] 2. Cross-domain coupling projection module

[0107] Just like the cross-domain interaction module, the self-supervised monocular depth estimation modules (cross-domain coupled projection modules) for normal lighting scenes and low lighting scenes are also symmetrical, and both are self-supervised monocular depth estimation networks based on SfM. Since the scenes are exactly the same, the results of the pose estimation network should also be consistent. The low-light scene is generated from the normal lighting image, and it is difficult to ensure the consistency between adjacent frames. Moreover, due to reasons such as low visibility, the low-light scene has a large error in pixel matching, which will cause the pose estimation network results to deteriorate. Therefore, this embodiment considers using the pose estimation matrix results of the normal lighting scene pose estimation network as a guide, coupling the projection operations of the two scenes through the pose estimation matrix, and optimizing the self-supervised monocular depth estimation reconstruction module for the low-light scene.

[0108] Specifically, the module input is a normal illumination image sequence , low light image sequence The depth map corresponding to the target frame of the image sequence obtained by the domain adaptation module and . Change the normal lighting sequence Input into the camera pose estimation network, we can get the camera motion relationship matrix between the target frame and the source frame in the normal lighting scene. , since the low-light scene is exactly the same as the normal-light scene, the camera motion relationship matrix between the target frame and the source frame in the low-light scene is also With the above variables, the relationship between the target frame and the source frame can be established with the help of the following projection operation:

[0109] (26)

[0110] (27)

[0111] Among them, K represents the camera internal parameter, It is the coordinate projection operation between the source frame and the target frame. Represents the relationship between the source frame and the target frame of the normal illumination image, Represents the relationship between the source frame and the target frame of the low-light image, represents the source frame of the normally illuminated image, Source frame representing a low-light image.

[0112] In this embodiment, photometric consistency loss is used to constrain both normal lighting scenes and low lighting scenes:

[0113] (28)

[0114] (29)

[0115] in, is a hyperparameter and is set to 0.85; represents the target frame of the normally illuminated image, Represents the target frame of the low-light image. At the same time, the edge-aware smoothing loss is used to reduce the depth blur problem:

[0116] (30)

[0117] (31)

[0118] Finally, the day and night scene losses in this module are expressed as and , the formula is as follows:

[0119] (32)

[0120] (33)

[0121] in, and are the gradients of the image in the horizontal and vertical directions, respectively. Often set to 0.85.

[0122] 3. Semi-teacher mandatory training mechanism

[0123] Since the orthogonality loss used in the domain adaptation stage is an adversarial strategy, and both the domain adaptation stage and the depth estimation stage are completely unsupervised, this causes the network to fluctuate greatly during training. In order to normalize the training of the network during training, the network considers using a semi-teacher forced training mechanism, that is, in the depth estimation stage, normal lighting and night scenes not only use geometric constraints between adjacent frames for self-supervised training without a teacher, but also the depth map obtained is guided and optimized by the pre-trained teacher model under normal lighting scenes.

[0124] This solution adds a pre-trained teacher network based on the self-supervised training of cross-domain fusion projection. First, use the current advanced self-supervised monocular depth estimation model Monodepth2 for normal lighting scenes to train in normal lighting scenes to obtain a pre-trained depth estimation network. , which serves as a teacher network to guide the depth estimation network for normal lighting and low lighting scenes. During the training process of the entire network, this depth estimation teacher network The parameters are no longer updated, but serve as constraints to provide positive gain during the network training phase. Input pre-trained depth estimation network In the example above, we get the depth map pseudo label :

[0125] (34)

[0126] Then, using the depth consistency loss Normal illumination depth map obtained by cross-domain interaction loss module and low light depth map To conduct supervision:

[0127] (35)

[0128] in, , N is and The number of pixels, x represents the x-th pixel. represents the depth map of the low-light image at the t-th frame and the x-th pixel, represents the depth map of the normally illuminated image at the t-th frame and the x-th pixel, represents the depth map pseudo label of the x-th pixel in the t-th frame.

[0129] like Figure 3 As shown, the first line is a continuous low-light image, and the second line is a low-light image depth map result obtained by inputting the continuous low-light image into the depth estimation model provided by this embodiment; Figure 4 As shown, the first line is a continuous normal illumination image, and the second line is a normal illumination image depth map result obtained by inputting the continuous normal illumination image into the depth estimation model provided in this embodiment. It can be seen that the network provided in this specific embodiment is effective in both normal illumination scenes and low illumination scenes, and there will be no extreme jumps in depth values ​​in low-light areas and illumination change areas; in addition, a more complete visual depth mapping result can be obtained on the object contour details.

[0130] Embodiment 2

[0131] This embodiment provides a self-supervised depth estimation system for all-day scenes based on cross-domain interaction, including:

[0132] An acquisition module, used for acquiring the all-day image to be estimated; the all-day image includes a daytime image or a nighttime image;

[0133] A processing module, used for inputting the all-day image to be estimated into a depth estimation model to obtain a depth estimation result;

[0134] Among them, the depth estimation model includes a cross-domain interaction module and a cross-domain coupling projection module; the cross-domain interaction module is used to decouple the all-day image samples into daytime private features, daytime shared features, nighttime private features, and nighttime shared features; the private domain orthogonal loss is used to constrain the complementarity of the two private features, and the image samples are reconstructed based on the shared features and the exchanged private features respectively; the cross-domain coupling projection module is used to decode the two shared features into depth maps respectively, and based on the all-day image samples, depth maps, and pose matrices, scene loss supervised training is used to obtain self-supervised monocular depth estimation results.

[0135] Embodiment 3

[0136] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the steps in the all-day scene self-supervised depth estimation method based on cross-domain interaction as described in the above-mentioned embodiment 1 are implemented.

[0137] Embodiment 4

[0138] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the method for self-supervised depth estimation of all-day scenes based on cross-domain interaction as described in the first embodiment above are implemented.

[0139] The steps or modules involved in the above embodiments 2 to 4 correspond to those in embodiment 1. For the specific implementation, please refer to the relevant description of embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.

[0140] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A self-supervised depth estimation method for all-day scenes based on cross-domain interaction, characterized in that: include: Acquire a full-day image to be estimated; the full-day image includes a daytime image or a nighttime image; Input the all-day image to be estimated into the trained depth estimation model to obtain the depth estimation result; Among them, the depth estimation model includes a cross-domain interaction module and a cross-domain coupling projection module; the training process of the cross-domain interaction module is to decouple the all-day image samples into daytime private features, daytime shared features, nighttime private features, and nighttime shared features; the all-day image samples include daytime image samples and nighttime image samples; the complementarity of the two private features is constrained by using the private domain orthogonal loss, and the image samples are reconstructed based on the private features and the shared features; the training process of the cross-domain coupling projection module is to decode the two shared features into depth maps respectively, and based on the reconstructed image samples, depth maps, and pose matrices, scene loss supervised training is used to obtain self-supervised monocular depth estimation results; The decoupling of all-day image samples into daytime private features, daytime shared features, nighttime private features, and nighttime shared features specifically includes: The daytime image samples Enter the first private encoder respectively and the first shared encoder , get the decoupled daytime private features and daytime shared features ; Night image samples Enter the second private encoder separately and a second shared encoder , get the decoupled nightly private features and nighttime shared features ; The decoupling process is constrained by using direct feature orthogonal loss and Gram matrix orthogonal loss; wherein the shared features contain structural information that has a positive gain for the depth estimation task; the private features contain illumination information that affects the versatility of the depth estimation network in the daytime domain and the nighttime domain; The direct feature orthogonal loss is specifically: in, , , and Indicates the use of Convolution is used to reduce the number of feature channels and obtain simplified daytime private features. , simplified nighttime private features , simplified daytime sharing features , simplify nighttime sharing features ; It is an operation that converts multi-dimensional features into one-dimensional features; represents the inner product operation; The Gram matrix orthogonal loss is specifically: in, is the Gram matrix of the shared features during the day, is the Gram matrix of daily private features, is the Gram matrix of nighttime shared features, is the Gram matrix of nighttime private features; The using of private domain orthogonal loss to constrain the complementarity of the two private features specifically includes: ; ; ; Among them, the private domain orthogonal loss Including private domain direct feature orthogonal loss and private domain Gram matrix orthogonal loss ; The method of reconstructing the image sample based on the private features and the shared features includes reconstructing the image sample based on the private features and exchanging the shared features respectively, and the specific process is as follows: Based on daytime shared features and nighttime private features Reconstruct and obtain interactively reconstructed night image samples ; Based on nighttime sharing features and daytime private features Reconstruct and obtain interactively reconstructed daytime image samples ; The reconstruction process of obtaining the interactively reconstructed daytime image samples and the interactively reconstructed nighttime image samples is specifically as follows: + + + in, is the cross-reconstruction consistency loss, , N is and The number of pixels, x represents the x-th pixel; represents the interactively reconstructed daytime image sample of the t-th frame and the x-th pixel, represents the original daytime image sample of the t-th frame and the x-th pixel, represents the interactively reconstructed night image sample of the t-th frame and the x-th pixel, represents the original night image sample of the t-th frame and the x-th pixel; is the first reconstruction decoder, It is the second reconstruction decoder; based on combining the private features of any domain on the basis of shared information, it can reconstruct the image of the private domain style. By reconstructing image samples based on private features and exchanging shared features, it can limit the feature decoupling across domains, so as to make full use of information and further limit the solution space of the domain separation network, so as to better decouple the features; The reconstructing the image sample based on the private features and the shared features further includes: Private features during the day and daytime shared features Input first reconstruction decoder Get the reconstructed daytime image sample ; Set nighttime private features and nighttime shared features Input to the second reconstruction decoder Get the reconstructed night image sample ; The reconstruction process of obtaining the reconstructed daytime image samples and the reconstructed nighttime image samples by using the reconstruction loss constraint; specifically: in, , N is and The number of pixels, x represents the x-th pixel; represents the reconstructed daytime image sample of the t-th frame and the x-th pixel, represents the original daytime image sample of the t-th frame and the x-th pixel, represents the reconstructed night image sample of the t-th frame and the x-th pixel, represents the original night image sample of the t-th frame and the x-th pixel; by reconstructing the daytime image sample and the night image sample, it is ensured that the private feature subspace and the shared feature subspace are complementary, that is, it is ensured that the features are not lost; The two shared features are decoded into depth maps respectively, and based on the reconstructed image samples, depth maps, and pose matrices, scene loss supervised training is adopted to obtain a self-supervised monocular depth estimation result. The specific process is as follows: Input the daytime shared features into the first depth decoder to obtain a daytime depth map; input the nighttime shared features into the second depth decoder to obtain a nighttime depth map; Input the daytime image samples into the pose estimation network to obtain the daytime pose matrix; Depth estimation is performed based on interactively reconstructed daytime image samples or reconstructed daytime image samples, a daytime depth map, and a daytime pose matrix; or, depth estimation is performed based on interactively reconstructed nighttime image samples or reconstructed nighttime image samples, a nighttime depth map, and a daytime pose matrix; The self-supervised depth estimation is completed using photometric consistency loss and edge-aware smoothness loss as follows: Among them, K represents the camera internal parameter, It is the coordinate projection operation between the source frame and the target frame; Represents the relationship between the source frame and the target frame for interactively reconstructing daytime image samples or reconstructing daytime image samples, Represents the relationship between the source frame and the target frame for interactively reconstructing night image samples or reconstructing night image samples, represents the source frame of the interactively reconstructed daytime image sample or the reconstructed daytime image sample, represents an interactively reconstructed night image sample or a source frame for reconstructing a night image sample; represents the loss of daytime photometric consistency, represents the loss of nighttime photometric consistency, is a hyperparameter and is set to 0.85; represents the daytime edge-aware smoothing loss, represents the nighttime edge-aware smoothing loss; the daytime and nighttime scene losses are respectively expressed as and .

2. The all-day scene self-supervised depth estimation method based on cross-domain interaction as claimed in claim 1, characterized in that: CycleGAN is used to generate the nighttime image samples that match the daytime image samples.

3. The all-day scene self-supervised depth estimation method based on cross-domain interaction as claimed in claim 1, characterized in that: In the process of respectively decoding the two shared features into depth maps, depth map pseudo labels are used for constraints; the process of obtaining the depth map pseudo labels is: inputting daytime image samples into a pre-trained depth estimation network to obtain depth map pseudo labels.

4. A self-supervised depth estimation system for all-day scenes based on cross-domain interaction, characterized in that: include: An acquisition module, used for acquiring the all-day image to be estimated; the all-day image includes a daytime image or a nighttime image; A processing module, used for inputting the all-day image to be estimated into the trained depth estimation model to obtain a depth estimation result; Among them, the depth estimation model includes a cross-domain interaction module and a cross-domain coupling projection module; the training process of the cross-domain interaction module is to decouple the all-day image samples into daytime private features, daytime shared features, nighttime private features, and nighttime shared features; the all-day image samples include daytime image samples and nighttime image samples; the complementarity of the two private features is constrained by using the private domain orthogonal loss, and the image samples are reconstructed based on the private features and the shared features; the training process of the cross-domain coupling projection module is to decode the two shared features into depth maps respectively, and based on the reconstructed image samples, depth maps, and pose matrices, scene loss supervised training is used to obtain self-supervised monocular depth estimation results; The decoupling of all-day image samples into daytime private features, daytime shared features, nighttime private features, and nighttime shared features specifically includes: The daytime image samples Enter the first private encoder respectively and the first shared encoder , get the decoupled daytime private features and daytime shared features ; Night image samples Enter the second private encoder separately and a second shared encoder , get the decoupled nightly private features and nighttime shared features ; The decoupling process is constrained by using direct feature orthogonal loss and Gram matrix orthogonal loss; wherein the shared features contain structural information that has a positive gain for the depth estimation task; the private features contain illumination information that affects the versatility of the depth estimation network in the daytime domain and the nighttime domain; The direct feature orthogonal loss is specifically: in, , , and Indicates the use of Convolution is used to reduce the number of feature channels and obtain simplified daytime private features. , simplified nighttime private features , simplified daytime sharing features , simplify nighttime sharing features ; It is an operation that converts multi-dimensional features into one-dimensional features; represents the inner product operation; The Gram matrix orthogonal loss is specifically: in, is the Gram matrix of the shared features during the day, is the Gram matrix of daily private features, is the Gram matrix of nighttime shared features, is the Gram matrix of nighttime private features; The using of private domain orthogonal loss to constrain the complementarity of the two private features specifically includes: ; ; ; Among them, the private domain orthogonal loss Including private domain direct feature orthogonal loss and private domain Gram matrix orthogonal loss ; The method of reconstructing the image sample based on the private features and the shared features includes reconstructing the image sample based on the private features and exchanging the shared features respectively, and the specific process is as follows: Based on daytime shared features and nighttime private features Reconstruct and obtain interactively reconstructed night image samples ; Based on nighttime sharing features and daytime private features Reconstruct and obtain interactively reconstructed daytime image samples ; The reconstruction process of obtaining the interactively reconstructed daytime image samples and the interactively reconstructed nighttime image samples is specifically as follows: + + + in, is the cross-reconstruction consistency loss, , N is and The number of pixels, x represents the x-th pixel; represents the interactively reconstructed daytime image sample of the t-th frame and the x-th pixel, represents the original daytime image sample of the t-th frame and the x-th pixel, represents the interactively reconstructed night image sample of the t-th frame and the x-th pixel, represents the original night image sample of the t-th frame and the x-th pixel; is the first reconstruction decoder, It is the second reconstruction decoder; based on combining the private features of any domain on the basis of shared information, it can reconstruct the image of the private domain style. By reconstructing image samples based on private features and exchanging shared features, it can limit the feature decoupling across domains, so as to make full use of information and further limit the solution space of the domain separation network, so as to better decouple the features; The reconstructing the image sample based on the private features and the shared features further includes: Private features during the day and daytime shared features Input first reconstruction decoder Get the reconstructed daytime image sample ; Set nighttime private features and nighttime shared features Input to the second reconstruction decoder Get the reconstructed night image sample ; The reconstruction process of obtaining the reconstructed daytime image samples and the reconstructed nighttime image samples by using the reconstruction loss constraint; specifically: in, , N is and The number of pixels, x represents the x-th pixel; represents the reconstructed daytime image sample of the t-th frame and the x-th pixel, represents the original daytime image sample of the t-th frame and the x-th pixel, represents the reconstructed night image sample of the t-th frame and the x-th pixel, represents the original night image sample of the t-th frame and the x-th pixel; by reconstructing the daytime image sample and the night image sample, it is ensured that the private feature subspace and the shared feature subspace are complementary, that is, it is ensured that the features are not lost; The two shared features are decoded into depth maps respectively, and based on the reconstructed image samples, depth maps, and pose matrices, scene loss supervised training is adopted to obtain a self-supervised monocular depth estimation result. The specific process is as follows: Input the daytime shared features into the first depth decoder to obtain a daytime depth map; input the nighttime shared features into the second depth decoder to obtain a nighttime depth map; Input the daytime image samples into the pose estimation network to obtain the daytime pose matrix; Depth estimation is performed based on interactively reconstructed daytime image samples or reconstructed daytime image samples, a daytime depth map, and a daytime pose matrix; or, depth estimation is performed based on interactively reconstructed nighttime image samples or reconstructed nighttime image samples, a nighttime depth map, and a daytime pose matrix; The self-supervised depth estimation is completed using photometric consistency loss and edge-aware smoothness loss as follows: Among them, K represents the camera internal parameter, It is the coordinate projection operation between the source frame and the target frame; Represents the relationship between the source frame and the target frame for interactively reconstructing daytime image samples or reconstructing daytime image samples, Represents the relationship between the source frame and the target frame for interactively reconstructing night image samples or reconstructing night image samples, represents the source frame of the interactively reconstructed daytime image sample or the reconstructed daytime image sample, represents an interactively reconstructed night image sample or a source frame for reconstructing a night image sample; represents the loss of daytime photometric consistency, represents the loss of nighttime photometric consistency, is a hyperparameter and is set to 0.85; represents the daytime edge-aware smoothing loss, represents the nighttime edge-aware smoothing loss; the daytime and nighttime scene losses are respectively expressed as and .

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by the processor, the steps in the all-day scene self-supervised depth estimation method based on cross-domain interaction as described in any one of claims 1-3 are implemented.

6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, it implements the steps in a method for self-supervised depth estimation of all-day scenes based on cross-domain interaction as described in any one of claims 1-3.