A method and device for building geometry multi-task joint modeling based on two-dimensional disparity vectors
By sharing a two-dimensional disparity vector encoding network and gradient backpropagation of integrated task loss, the problems of positional misalignment and high computational cost in multi-task learning of architectural geometric information are solved, achieving geometric consistency of architectural geometric attributes and improving model efficiency.
Patent Information
- Application Number
- CN202611354193.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-24
AI Technical Summary
In existing technologies, multi-task learning methods for building geometry information are prone to problems such as position misalignment, boundary non-connection, or height mismatch with projection shape when predicting results. In addition, the number of model parameters and computational overhead are large, and they rely heavily on high-quality labeled data, making it difficult to establish geometric consistency constraints within the model.
A multi-task joint modeling method for architectural geometry based on two-dimensional disparity vectors is adopted. By sharing the same two-dimensional disparity vector encoding network and combining gradient backpropagation of the comprehensive task loss, geometric consistency constraints are established among the three geometric tasks, reducing the duplication of independent disparity encoding networks.
It improves the geometric consistency of prediction results for various building geometric attributes, reduces the number of model parameters and computational overhead, avoids additional consistency correction or post-processing steps, and enhances the model's training and generalization capabilities.
Smart Images

Figure CN123160774A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of intelligent interpretation technology of remote sensing images, and more specifically, to a method and apparatus for multi-task joint modeling of architectural geometry based on two-dimensional disparity vectors. Background Technology
[0002] With the widespread application of high-resolution remote sensing imagery in urban 3D modeling, land spatial management, and geographic information updating, automatically extracting geometric information such as roof outlines, facade extent, and height of buildings from remote sensing imagery has become an important research topic in intelligent interpretation of remote sensing imagery. The geometric attributes of buildings typically include roof outlines, facade areas, and building height; these attributes collectively constitute the spatial form of the building in the image.
[0003] In related technologies, processing models are typically established separately for different building geometric attributes. For example, semantic segmentation or instance segmentation methods are used to extract roof areas, facade segmentation models are trained based on manually labeled data, or building height is obtained through image feature regression, stereo matching, and depth estimation. Although some multi-task learning methods can simultaneously output multiple prediction results using a shared backbone network, each task usually still uses independent feature processing units and prediction branches. At the same time, building geometric information is mostly represented in the form of pixel masks, dense feature maps, bounding boxes, or polygon vertex sequences, and there is a lack of direct connection between the geometric representations and optimization objectives used in different tasks.
[0004] Because the roof location, facade extent, and building height are interconnected in their imaging projection relationships, modeling them separately can easily lead to problems such as misaligned predictions, inconsistent boundaries, or mismatches between height and projection shape. Multiple independent prediction branches also increase the number of model parameters and computational overhead, while the reliance on high-quality labeled data for tasks such as facade construction limits model training and generalization. Sharing parameters only during the general feature extraction stage often makes it difficult to transfer geometric constraints with clear physical meaning to various tasks.
[0005] Therefore, the main problem to be solved is how to ensure that the prediction results of multiple interrelated building geometric attributes are geometrically consistent.
[0006] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0007] The purpose of this disclosure is to provide a multi-task joint modeling method for building geometry based on two-dimensional disparity vectors, a device for multi-task joint modeling of building geometry based on two-dimensional disparity vectors, an electronic device, and a computer-readable storage medium. In the technical solution of this disclosure, the three geometric tasks share the same two-dimensional disparity vector encoding network. The gradient of the integrated task loss is coupled at the two-dimensional disparity vector encoding network through backpropagation, so that the network parameters of the encoding network are simultaneously constrained by the branches of the three geometric tasks. This implicitly establishes geometric consistency constraints among the three geometric tasks within the model, which helps to reduce the occurrence of positional misalignment, boundary non-connection, or height mismatch with projection shape between the roof position, facade range, and building height, and improves the geometric consistency of the prediction results of multiple types of building geometric attributes.
[0008] Other features and advantages of this disclosure will become apparent from the following detailed description, or may be learned in part by practice of this disclosure.
[0009] According to a first aspect of the present disclosure, a multi-task joint modeling method for architectural geometry based on two-dimensional disparity vectors is provided, the method comprising: Acquire remote sensing images containing building instances and corresponding outline prompts for the building instances; The remote sensing image is input into a shared backbone network for feature extraction to obtain the image features of the remote sensing image, and the instantiation features of the building instance and the geometric features corresponding to each geometric task are obtained based on the image features. The instantiated features are input into a two-dimensional disparity vector encoding network, which outputs a two-dimensional disparity vector corresponding to the building instance. The two-dimensional disparity vector is used to characterize the two-dimensional disparity offset of the roof of the building instance relative to its ground contour in the image plane. The two-dimensional disparity vector is fused with the geometric features corresponding to each geometric task to obtain the fused geometric features corresponding to each geometric task. The fused geometric features are then input into the corresponding geometric task branches for processing to obtain the building geometric attributes corresponding to each geometric task. The geometric truth labels corresponding to the building instances are determined. Based on the differences between each building's geometric attributes and its corresponding geometric truth labels, a comprehensive task loss is determined. The two-dimensional disparity vector coding network and each geometric task branch are jointly optimized based on the comprehensive task loss, so that the network parameters of the two-dimensional disparity vector coding network are simultaneously constrained by each geometric task branch.
[0010] In some exemplary embodiments of this disclosure, based on the foregoing scheme, obtaining the instantiation features of the building instance and the geometric features corresponding to each geometric task based on the image features includes: Based on the outline prompt information, establish the correspondence between the building outline of the building instance and the building instance; Based on the correspondence, the contour prompt information and the image features are spatially fused to obtain the instantiated features corresponding to the building instance; The roof semantic features and height estimation features corresponding to the building instance are obtained from the image features, and the pixel coordinates of the building outline of the building instance are determined based on the outline prompt information; The semantic features of the roof, the height estimation features, and the pixel coordinates of the building outline are determined as the geometric features corresponding to each geometric task; The geometric task branches include a roof decoding branch, a facade positioning branch, and a height regression branch.
[0011] In some exemplary embodiments of this disclosure, based on the foregoing scheme, the step of inputting the instantiated features into a two-dimensional disparity vector encoding network and outputting the two-dimensional disparity vector corresponding to the building instance includes: The instantiated features are input into the feature encoder of the two-dimensional disparity vector coding network for encoding to obtain the encoded features corresponding to the building instance; The encoded features are input into the regression head of the two-dimensional disparity vector encoding network for two-dimensional regression processing to obtain the horizontal disparity components and the vertical disparity components. The horizontal disparity component and the vertical disparity component are defined as the two-dimensional disparity vector.
[0012] In some exemplary embodiments of this disclosure, based on the foregoing scheme, the step of fusing the two-dimensional disparity vector with the geometric features corresponding to each geometric task to obtain the fused geometric features corresponding to each geometric task includes: The two-dimensional disparity vector is fused with the roof semantic features to obtain the fused geometric features corresponding to the roof decoding branch; Based on the two-dimensional disparity vector, the pixel coordinates of the building outline of the building instance are transformed by the facade positioning branch to obtain the fused geometric features corresponding to the facade positioning branch. The two-dimensional disparity vector is fused with the height estimation feature to obtain the fused geometric feature corresponding to the height regression branch.
[0013] In some exemplary embodiments of this disclosure, based on the foregoing scheme, the step of inputting each fused geometric feature into the corresponding geometric task branch for processing to obtain the building geometric attributes corresponding to each geometric task includes: The fused geometric features corresponding to the roof decoding branch are input into the roof decoding branch for decoding to obtain the roof geometric profile corresponding to the building instance. The fused geometric features corresponding to the facade positioning branch are input into the facade positioning branch to determine the region, thereby obtaining the pixel range of the facade region corresponding to the building instance. The fused geometric features corresponding to the height regression branch are input into the height regression branch to perform height regression, thereby obtaining the building height corresponding to the building instance; The building geometric attributes include the roof geometric profile, the pixel range of the facade area, and the building height of the building instance.
[0014] In some example embodiments of this disclosure, based on the foregoing scheme, determining the geometric truth labels corresponding to the building instance includes: Based on the reference annotation data corresponding to the remote sensing image, the actual roof geometric outline and the pixel range of the actual facade area of the building instance are determined. Based on the reference height data corresponding to the building instance, the actual building height of the building instance is determined; The real roof geometry, the real facade pixel range, and the real building height are determined as the geometric truth labels corresponding to the building instance, and each geometric truth label corresponds one-to-one with each geometric task branch.
[0015] In some example embodiments of this disclosure, based on the foregoing scheme, determining the comprehensive task loss according to the differences between each building geometric attribute and its corresponding geometric truth label includes: Extract the roof geometry profile, the pixel range of the facade area, and the building height of the building instance from the building geometry attributes; The roof task loss is determined based on the difference between the roof geometry and the actual roof geometry. The facade task loss is determined based on the difference between the pixel range of the facade area and the pixel range of the actual facade area. Based on the difference between the building height and the actual building height, the height task loss is determined; Based on the weighting coefficients corresponding to the roof task loss, the facade task loss, and the height task loss, the roof task loss, the facade task loss, and the height task loss are weighted and summed to obtain the comprehensive task loss.
[0016] In some example embodiments of this disclosure, based on the foregoing scheme, the joint optimization of the two-dimensional disparity vector encoding network and the various geometric task branches based on the comprehensive task loss includes: Backpropagation is performed based on the comprehensive task loss to determine the first gradient of the comprehensive task loss with respect to the network parameters of the two-dimensional disparity vector coding network, and the second gradient with respect to the network parameters of each geometric task branch. The second gradient of each geometric task branch is backpropagated and coupled at the two-dimensional disparity vector coding network to obtain the first gradient, so that the network parameters of the two-dimensional disparity vector coding network are simultaneously constrained by each geometric task branch. The network parameters of the two-dimensional disparity vector coding network are updated based on the first gradient, and the network parameters of each geometric task branch are updated based on the second gradient until the preset convergence condition is met, thus completing the joint optimization.
[0017] According to a second aspect of the present disclosure, a multi-task joint modeling apparatus for architectural geometry based on a two-dimensional disparity vector is provided, the apparatus comprising: The data acquisition module is used to acquire remote sensing images containing building instances and outline prompt information corresponding to the building instances; The geometric branch module is used to input the remote sensing image into the shared backbone network for feature extraction, to obtain the image features of the remote sensing image, and to obtain the instantiation features of the building instance and the geometric features corresponding to each geometric task based on the image features. The disparity offset module is used to input the instantiated features into a two-dimensional disparity vector encoding network and output a two-dimensional disparity vector corresponding to the building instance. The two-dimensional disparity vector is used to characterize the two-dimensional disparity offset of the roof of the building instance relative to its ground contour in the image plane. The geometric fusion module is used to fuse the two-dimensional disparity vector with the geometric features corresponding to each geometric task to obtain the fused geometric features corresponding to each geometric task, and input each fused geometric feature into the corresponding geometric task branch for processing to obtain the building geometric attributes corresponding to each geometric task. The joint optimization module is used to determine the geometric truth labels corresponding to the building instance, determine the comprehensive task loss based on the difference between each building geometric attribute and the corresponding geometric truth label, and jointly optimize the two-dimensional disparity vector coding network and each geometric task branch based on the comprehensive task loss, so that the network parameters of the two-dimensional disparity vector coding network are simultaneously constrained by each geometric task branch.
[0018] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory storing computer-readable instructions that, when executed by the processor, implement the multi-task joint modeling method for architectural geometry based on two-dimensional disparity vectors as described in the first aspect.
[0019] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the multi-task joint modeling method for architectural geometry based on two-dimensional disparity vectors as described in the first aspect.
[0020] The technical solutions provided in this disclosure can include the following beneficial effects: This embodiment of the invention discloses a multi-task joint modeling method for building geometry based on two-dimensional disparity vectors. The roof geometric contour, facade pixel range, and building height of a building instance in remote sensing imagery are obtained using the same two-dimensional disparity vector. Compared to representing the geometric information of each task separately using pixel masks or dense feature maps, this reduces the amount of geometric data. Compared to setting up independent disparity encoding networks for each geometric task, this reduces redundant settings in the disparity encoding process, which helps reduce the number of model parameters and computational overhead. On one hand, the three geometric tasks share the same two-dimensional disparity vector encoding network. The gradient of the combined task loss is coupled at the two-dimensional disparity vector encoding network through backpropagation, causing the network parameters of this encoding network to be constrained by the branches of the three geometric tasks simultaneously. This implicitly establishes geometric consistency constraints among the three geometric tasks within the model, which helps reduce misalignment, boundary non-connection, or height mismatch with projection shape between the roof position, facade range, and building height, improving the geometric consistency of the prediction results for multiple types of building geometric attributes. On the other hand, since the geometric consistency constraints are directly established within the model through two-dimensional disparity vectors and joint optimization, there is no need to add additional consistency correction or post-processing steps outside the model.
[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0022] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0023] Figure 1 The diagram illustrates the data flow of a multi-task co-modeling method for building geometry based on two-dimensional disparity vectors according to some embodiments of the present disclosure.
[0024] Figure 2 The illustration schematically shows a flowchart of a multi-task joint modeling method for architectural geometry based on two-dimensional disparity vectors according to some embodiments of the present disclosure.
[0025] Figure 3 A schematic diagram of two-dimensional parallax imaging geometry according to some embodiments of the present disclosure is shown.
[0026] Figure 4 The diagram schematically illustrates a framework of a multi-task co-modeling apparatus for architectural geometry based on two-dimensional disparity vectors, according to some embodiments of the present disclosure.
[0027] Figure 5 The schematic diagram illustrates the structural schematic of a computer system of an electronic device according to some embodiments of the present disclosure.
[0028] Figure 6 A schematic diagram of a computer-readable storage medium according to some embodiments of the present disclosure is shown.
[0029] In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts. Detailed Implementation
[0030] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this specification. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this specification as detailed in the appended claims.
[0031] The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of this specification. The singular forms “a,” “the,” and “the” as used in this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0032] It should be understood that although the terms first, second, third, etc., may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this specification, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0033] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art.
[0034] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this disclosure.
[0035] Furthermore, the accompanying drawings are for illustrative purposes only and are not necessarily drawn to scale. The block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0036] In previous techniques, separate processing models were typically built for different building geometric attributes. While some multi-task learning methods can simultaneously output multiple prediction results using a shared backbone network, each task usually still employs independent feature processing units and prediction branches. Meanwhile, building geometric information is often represented in the form of pixel masks, dense feature maps, bounding boxes, or polygon vertex sequences, lacking a direct connection between the geometric representations and optimization objectives used by different tasks. Since roof location, facade extent, and building height are interrelated in their projection relationships, separate modeling can easily lead to problems such as misaligned prediction results, inconsistent boundaries, or mismatches between height and projection shape. Multiple independent prediction branches also increase the number of model parameters and computational overhead, while the reliance on high-quality labeled data for tasks such as facades limits model training and generalization. Sharing parameters only in the general feature extraction stage often makes it difficult to transfer geometric constraints with clear physical meaning to each task. Therefore, how to ensure that the prediction results of multiple interrelated building geometric attributes are geometrically consistent and coherent becomes a major problem to be solved.
[0037] Before describing the method flow of the embodiments of this disclosure, the overall processing architecture on which the method relies will be explained first.
[0038] The architectural geometry multi-task joint modeling method based on two-dimensional disparity vectors provided in this disclosure can run on an electronic device with data processing capabilities. This electronic device can be a server, workstation, desktop computer, or computing platform equipped with a graphics processor; this disclosure does not limit the specific form of the electronic device. The electronic device deploys a modeling system to carry this method. This modeling system logically includes a shared backbone network, instantiation processing units, a two-dimensional disparity vector encoding network, and multiple geometric task branches. The above components can be implemented by program modules running on a processor, or by hardware circuits such as application-specific integrated circuits (ASICs), graphics processors, or field-programmable gate arrays (FPGAs), or by a combination of software modules and hardware circuits; this disclosure does not limit the implementation in this regard.
[0039] See Figure 1 This disclosure provides a data flow diagram for a multi-task joint modeling method for architectural geometry based on two-dimensional disparity vectors. The overall structure of the above modeling system can be described as follows: A shared backbone network is located at the front end of the modeling system. The modeling system receives remote sensing imagery as input and connects to an instantiation processing unit and multiple geometric task branches at its output, providing image features to subsequent parts. The instantiation processing unit also receives contour cue information corresponding to building instances as input, and its output connects to a two-dimensional disparity vector encoding network to provide instantiation features. The output of the two-dimensional disparity vector encoding network connects to the roof decoding branch, facade localization branch, and height regression branch, respectively, providing the same two-dimensional disparity vector to these three geometric task branches.
[0040] The inputs of the roof decoding branch, facade localization branch, and height regression branch also receive roof semantic features, building outline pixel coordinates, and height estimation features from the shared backbone network, respectively. The outputs of the roof decoding branch, facade localization branch, and height regression branch are connected to the joint optimization unit. The joint optimization unit calculates the comprehensive task loss based on the outputs of the three geometric task branches and the corresponding geometric ground truth labels, and then backpropagates the gradient generated by the comprehensive task loss back to the two-dimensional disparity vector encoding network and each geometric task branch along the above connection relationship.
[0041] In some embodiments, the shared backbone network can be a convolutional neural network, such as a residual network, a feature pyramid network, or a backbone network based on self-attention modules. The shared backbone network can also be a hybrid backbone network combining convolutional and self-attention structures. The shared backbone network performs multi-scale feature extraction on remote sensing images to obtain image features.
[0042] The image features in this embodiment can be a single-scale feature map or a feature pyramid composed of multiple scale feature maps. This embodiment does not limit the number of scales of the image features.
[0043] In this embodiment of the disclosure, a two-dimensional disparity vector is used to characterize the two-dimensional disparity offset of the roof of a building instance relative to its ground contour in the image plane. See also Figure 3 This disclosure provides a geometrical diagram of two-dimensional parallax imaging. Under non-perpendicular imaging conditions, the projected position of the roof of a building of a certain height on the image will be offset relative to the projected position of the building's ground contour along the imaging line of sight. The positional difference between the roof projection and the ground contour projection forms a parallax component in each of the two coordinate directions of the image plane. These two parallax components constitute a two-dimensional vector, namely: a two-dimensional parallax vector.
[0044] In some embodiments, the two-dimensional disparity vector can be represented as [dx, dy], where dx is the disparity component in the horizontal direction within the image plane, and dy is the disparity component in the vertical direction within the image plane. The horizontal direction can be the column direction of the image, and the vertical direction can be the row direction of the image; alternatively, the horizontal and vertical directions can be other mutually orthogonal directions, which are not limited in this embodiment.
[0045] The aforementioned ground contour can be understood as the footprint of a building instance on the ground, that is, the projected contour of the building's base onto the image plane. The contour hint information corresponding to the building instance is used to indicate the position of the building instance's contour in the image.
[0046] In some embodiments, the outline hint information can be vector data of the footprint outline of a building instance, such as a polygon composed of the coordinates of several vertices.
[0047] In some embodiments, the contour hint information may be a hint embedding vector carrying the location of the building instance, or a mask indicating the area where the building contour is located. The contour hint information may be provided by an external module or generated by the contour extraction unit within the modeling system. This disclosure does not limit the source of the contour hint information.
[0048] It should be noted that, Figure 1The roof decoding branch, facade localization branch, and height regression branch shown correspond to three geometric tasks: roof geometry recovery, facade area localization, and height estimation. These three geometric tasks share a common upstream 2D disparity vector encoding network; that is, the 2D disparity vectors used by the three geometric task branches come from the same 2D disparity vector encoding network. Therefore, the 2D disparity vectors output by the 2D disparity vector encoding network simultaneously participate in the processing of the three geometric tasks, thus serving as a unified geometric representation linking the three tasks.
[0049] In some embodiments, the modeling system described above can be hosted in a computer-readable storage medium and exist in the form of a computer program. When the computer program is invoked and executed by a processor, it implements the methods of the embodiments of this disclosure. Alternatively, the modeling system can be embedded in a chip, which provides the capability for joint extraction of building geometric attributes.
[0050] See Figure 2 This disclosure provides a flowchart of a multi-task joint modeling method for building geometry based on two-dimensional disparity vectors, including steps S210 to S250.
[0051] Step S210: Obtain remote sensing images containing building instances and outline prompts corresponding to the building instances.
[0052] Remote sensing imagery can be high-resolution optical images acquired via satellite or aerial platforms.
[0053] In some embodiments, the ground sampling interval of the remote sensing image can be a value ranging from 0.1 meters per pixel to 0.8 meters per pixel. Within this resolution range, the roof outlines of buildings and the ground outlines are distinguishable on the image, which is beneficial for the regression of two-dimensional disparity vectors. The remote sensing image can undergo preprocessing such as radiometric correction and geometric correction before input.
[0054] A remote sensing image may contain one or more building instances. When a remote sensing image contains multiple building instances, subsequent steps can be performed on each building instance separately, or multiple building instances can be processed in parallel; this disclosure does not limit this approach. For ease of description, the following explanation uses the processing of one building instance as an example.
[0055] Step S220: Input the remote sensing image into the shared backbone network for feature extraction to obtain the image features of the remote sensing image, as well as the instantiation features of the building instance and the geometric features corresponding to each geometric task based on the image features.
[0056] In this embodiment, it is necessary to first establish a correspondence between building outlines and building instances based on outline prompt information. This correspondence can be an association that assigns a building outline to a corresponding building instance.
[0057] When a remote sensing image contains multiple building instances, each building instance has its own building outline. By establishing the correspondence between building outlines and building instances, the building outlines in the image can be assigned to the corresponding building instances one by one, thus providing a basis for obtaining instance-by-instance features.
[0058] In some embodiments, an instance identifier may be assigned to each building outline, and the building outline carrying the same instance identifier may be associated with a building instance to establish the above correspondence.
[0059] After establishing the correspondence, the outline hints and image features are spatially fused based on this correspondence to obtain the instantiated features corresponding to the building instance. This spatial fusion combines the outline hints and image features at corresponding locations within the spatial dimension of the image.
[0060] In some embodiments, the spatial location covered by the building outline of a building instance on the image features can be determined according to the correspondence, and then the features at that spatial location can be read from the image features and combined with the outline prompt information to obtain the instantiated features corresponding to the building instance.
[0061] In some embodiments, spatial fusion can be achieved by multiplying the location mask corresponding to the contour hint information element-wise with the image features and then aggregating them; spatial fusion can also be achieved by using the contour hint information as a query and the image features as keys and values in an attention operation; spatial fusion can also be achieved by concatenating the contour hint information and image features along the channel dimension and then performing convolution processing. All of the above implementation methods can yield instantiated features bound to the building instance, which will not be elaborated upon here.
[0062] Simultaneously or before obtaining the instantiation features, the roof semantic features and height estimation features corresponding to the building instance are obtained from the image features, and the pixel coordinates of the building outline of the building instance are determined based on the outline cue information. Among them, the roof semantic features can be features that characterize the semantic information of the roof area for roof geometry restoration tasks, and the height estimation features can be features that characterize information related to building height for height estimation tasks.
[0063] In some embodiments, the roof semantic features and height estimation features can be obtained from image features through different feature transformation layers, for example, each through a set of convolutional layers; the roof semantic features and height estimation features can also be obtained by combining image features with the above correspondence and cropping them to the area where the building instance is located. The pixel coordinates of the building outline can be understood as the coordinates of each point of the building outline on the image plane. The pixel coordinates of the building outline can be directly given by the outline prompt information, for example, obtained from the polygon vertex coordinates in the outline prompt information.
[0064] Furthermore, the roof semantic features, height estimation features, and the pixel coordinates of the building outline are determined as the geometric features corresponding to each geometric task. Specifically, the roof semantic features serve as the geometric features corresponding to the roof geometry recovery task, the height estimation features serve as the geometric features corresponding to the height estimation task, and the pixel coordinates of the building outline serve as the geometric features corresponding to the facade region localization task. Correspondingly, each geometric task branch includes a roof decoding branch, a facade localization branch, and a height regression branch, which correspond to the roof geometry recovery task, the facade region localization task, and the height estimation task, respectively.
[0065] Based on the above method, the contour hint information and image features are spatially fused by the correspondence between building contours and building instances, so that the instantiated features are bound to the building instances, thereby supporting the instance-by-instance processing of each building instance in the image; at the same time, the roof semantic features, height estimation features and the pixel coordinates of the building contours are derived from the same image features or contour hint information, providing corresponding geometric features for the subsequent unified association of the three geometric tasks with two-dimensional disparity vectors.
[0066] Step S230: Input the instantiated features into the two-dimensional disparity vector encoding network and output the two-dimensional disparity vector corresponding to the building instance.
[0067] The two-dimensional disparity vector is used to characterize the two-dimensional disparity offset of the roof of a building instance relative to its ground contour in the image plane.
[0068] The aforementioned two-dimensional disparity vector encoding network includes a feature encoder and a regression head. Instantiated features are input into the feature encoder of the two-dimensional disparity vector encoding network for encoding, obtaining the encoded features corresponding to the building instance. These encoded features are then input into the regression head of the two-dimensional disparity vector encoding network for two-dimensional regression processing, obtaining the horizontal and vertical disparity components. Finally, the horizontal and vertical disparity components are determined as a two-dimensional disparity vector.
[0069] Among them, the feature encoder is used to perform further feature transformation on the instantiated features to obtain encoded features with more compact dimensions that are easier to regress.
[0070] In some embodiments, the feature encoder may include a multilayer perceptron, where instantiated features are flattened into feature vectors after global pooling, and then the multilayer perceptron transforms them layer by layer to obtain encoded features.
[0071] In some embodiments, the feature encoder may also include a convolutional neural network, where instantiated features are transformed by several convolutional layers and downsampling layers to obtain encoded features.
[0072] Both of the above implementation methods can obtain encoded features. This disclosure does not limit the specific network structure of the feature encoder.
[0073] The regression head described above is used to map encoded features into two disparity components. The regression head may include a linear regression layer, through which the encoded features are mapped into two values, which serve as the horizontal and vertical disparity components, respectively.
[0074] Taking the encoded features as h, the weight matrix of the regression head as W, and the bias as b as an example, the two disparity components can be obtained by the following formula: [dx, dy] = W×h + b Where dx represents the horizontal disparity component, dy represents the vertical disparity component, W is the weight matrix that maps the encoded features to a two-dimensional output by the regression head, b is the bias vector of the regression head, and h is the encoded feature output by the feature encoder. The two disparity components output by the above mapping together constitute the two-dimensional disparity vector [dx, dy]. The regression head can also omit the activation function after the above linear mapping to allow the disparity components to take positive or negative values, thereby representing the disparity shift along different orientations.
[0075] In some embodiments, the horizontal direction can be taken as the column direction of the image, and the vertical direction can be taken as the row direction of the image. In this case, dx represents the offset of the roof projection relative to the ground contour in the column direction of the image, and dy represents the offset of the roof projection relative to the ground contour in the row direction of the image. The two-dimensional disparity vector uses two values to encode the two-dimensional disparity offset of the building instance's roof relative to the ground contour. The data volume is small, which facilitates reuse among the subsequent three geometric task branches.
[0076] In some embodiments, the two-dimensional disparity vector is predicted on a per-building-instance basis, meaning one two-dimensional disparity vector corresponds to one building-instance. Alternatively, the two-dimensional disparity vector can be predicted pixel-by-pixel, where a two-dimensional disparity vector is predicted for each pixel within the area of the building-instance, resulting in a two-dimensional disparity vector field composed of multiple two-dimensional disparity vectors. In this case, the two-dimensional disparity vectors at each pixel in the two-dimensional disparity vector field participate in the fusion and coordinate transformation of the corresponding position of that pixel. Pixel-by-pixel prediction can describe the disparity differences between different parts of the same building-instance with higher spatial resolution, and is suitable for situations with complex building geometry and large disparity differences between different parts; correspondingly, pixel-by-pixel prediction increases computational and storage requirements. The choice between instance-by-instance prediction and pixel-by-pixel prediction can be made based on the complexity of the building and available computational resources.
[0077] In some embodiments, the two disparity components of the two-dimensional disparity vector take values independently in two directions on the image plane. When the input data contains stereo image pairs, the two-dimensional disparity vector can be combined with the epipolar geometric constraints of stereo vision, so that the direction of the two-dimensional disparity vector is determined along the epipolar direction. In this case, the two-dimensional disparity vector can degenerate into a one-dimensional disparity value along the epipolar direction, and the disparity component in the other direction is determined by the epipolar constraints.
[0078] By utilizing epipolar constraints to narrow the value space of disparity, it is beneficial to reduce the difficulty of disparity regression and improve the stability of disparity estimation, making it suitable for scenarios with stereo image pairs as input.
[0079] In some embodiments, the two-dimensional disparity vector encoding network can output two-dimensional disparity vectors using a hierarchical prediction method.
[0080] Specifically, the approximate range of values for the two-dimensional disparity vector is first predicted at a coarse-grained level, and then refined at a fine-grained level based on the prediction results from the coarse-grained level to obtain the final two-dimensional disparity vector. The number of levels can be set according to the complexity of the scene, for example, two or three levels.
[0081] The hierarchical prediction described above decomposes a one-time disparity regression into a multi-level regression from coarse to fine, which helps to reduce the difficulty of disparity regression. It is especially suitable for scenes in the same image that contain both low-rise and high-rise buildings and have a large range of disparity values.
[0082] In some embodiments, an attention mechanism can be introduced into a two-dimensional disparity vector coding network.
[0083] Specifically, a spatial attention module or a channel attention module can be added to the feature encoder to enable the feature encoder to adaptively focus on image regions and feature channels that are more important for disparity prediction, such as focusing on areas with significant geometric features, such as building edges and roof corners.
[0084] Introducing an attention mechanism helps the feature encoder focus on key information related to disparity, thereby improving the prediction accuracy of two-dimensional disparity vectors.
[0085] In some embodiments, the two-dimensional disparity vector encoding network can output two-dimensional disparity vectors using an incremental prediction method.
[0086] Specifically, an initial two-dimensional disparity vector is first predicted, and then the residual network predicts the incremental correction amount relative to the initial two-dimensional disparity vector. The sum of the initial two-dimensional disparity vector and the incremental correction amount is used as the final two-dimensional disparity vector.
[0087] Incremental prediction decomposes the regression of the absolute value of disparity into two parts: coarse estimation and fine correction. This helps reduce the difficulty of disparity regression and is suitable for scenarios with a large range of disparity values.
[0088] Based on the above encoding method, the two-dimensional disparity vector encoding network processes the instantiation features of building instances into compact two-dimensional disparity vectors through two-stage processing of feature encoder and regression head, providing a unified and low-dimensional geometric representation for the subsequent three geometric tasks.
[0089] Step S240: The two-dimensional disparity vector is fused with the geometric features corresponding to each geometric task to obtain the fused geometric features corresponding to each geometric task. The fused geometric features are then input into the corresponding geometric task branches for processing to obtain the building geometric attributes corresponding to each geometric task.
[0090] The specific process for determining the fusion geometric features corresponding to each geometric task is as follows: For the roof decoding branch, the two-dimensional disparity vector is fused with the roof semantic features to obtain the fused geometric features corresponding to the roof decoding branch.
[0091] In some embodiments, fusion can be feature concatenation, i.e., concatenating the two-dimensional disparity vector along the channel dimension to each spatial position of the roof semantic feature to obtain fused geometric features. Fusion can also be feature addition, i.e., first expanding the two-dimensional disparity vector through a mapping layer to the same number of channels as the roof semantic feature, and then adding it element-wise with the roof semantic feature to obtain fused geometric features. Fusion can also be cross-attention fusion, i.e., using the roof semantic feature as the query and the features mapped from the two-dimensional disparity vector as the key and value for attention operations to obtain fused geometric features. All of the above implementations ensure that the fused geometric features corresponding to the roof decoding branch simultaneously carry both roof semantic information and disparity information.
[0092] For the facade localization branch, based on the two-dimensional disparity vector, the pixel coordinates of the building outline of the building instance are transformed through the facade localization branch to obtain the fused geometric features corresponding to the facade localization branch. This coordinate transformation can be achieved by translating the pixel coordinates of the building outline using the two-dimensional disparity vector.
[0093] Taking the pixel coordinates of a point on the building outline as (x, y) and the two-dimensional disparity vector as [dx, dy] as an example, the coordinates (x', y') obtained after coordinate transformation can be obtained by the following formula: x'=x+dx y'=y+dy Where (x, y) are the pixel coordinates of a point on the building outline, (x', y') are the pixel coordinates of that point after coordinate transformation, dx is the disparity component in the horizontal direction, and dy is the disparity component in the vertical direction. Each point on the building outline, after undergoing the above coordinate transformation, yields a set of transformed pixel coordinates. These transformed pixel coordinates serve as the fusion geometric features corresponding to the facade positioning branch.
[0094] Since the two-dimensional disparity vector represents the disparity offset of the roof relative to the ground outline, the pixel coordinates of the building outline can be translated by the two-dimensional disparity vector to correspond to the position on one side of the roof outline, so that the transformed pixel coordinates cover the facade unfolding range from the ground outline to the roof outline.
[0095] For the height regression branch, the two-dimensional disparity vector is fused with the height estimation features to obtain the fused geometric features corresponding to the height regression branch.
[0096] In some embodiments, fusion can be feature concatenation, i.e., concatenating a two-dimensional disparity vector to the height estimation feature to obtain fused geometric features. Fusion can also be feature addition or cross-attention fusion. The implementation of cross-attention fusion can be found in the corresponding description of the fused geometric features in the roof decoding branch, and will not be repeated here. The fused geometric features corresponding to the height regression branch carry both height-related feature information and disparity information.
[0097] In some embodiments, the fusion methods used by the roof decoding branch and the height regression branch can be the same or different; for example, the roof decoding branch uses cross-attention fusion, while the height regression branch uses feature stitching. Furthermore, the coordinate transformation used by the facade localization branch, in addition to translating the pixel coordinates of the building outline using a two-dimensional disparity vector, can also combine scaling on top of the translation to adapt to changes in the facade unfolding range under different imaging conditions.
[0098] The substitution of the above-mentioned fusion method and coordinate transformation method does not change the overall scheme of using the same two-dimensional disparity vector to serve three geometric tasks simultaneously.
[0099] Based on the above method, the two-dimensional disparity vector is combined with the geometric features corresponding to each geometric task in the form of feature fusion or coordinate transformation to obtain the fused geometric features corresponding to each geometric task, so that the disparity information carried by the same two-dimensional disparity vector is injected into the subsequent processing of the three geometric tasks respectively.
[0100] The specific process for determining the building geometric properties corresponding to each geometric task is as follows: The fused geometric features corresponding to the roof decoding branch are input into the roof decoding branch for decoding to obtain the roof geometric profile corresponding to the building instance. The roof decoding branch may include several decoding layers. The roof decoding branch decodes the fused geometric features and outputs the roof geometric profile.
[0101] In some embodiments, the roof geometry can be represented as a sequence of vertex coordinates of a roof outline polygon; the roof geometry can also be represented as a mask of the roof region. Since the fused geometric features carry disparity information, the roof geometry obtained by the roof decoding branch can reflect the disparity offset of the roof relative to the ground outline, compared to the result of decoding based solely on roof semantic features.
[0102] The fused geometric features corresponding to the facade positioning branch are input into the facade positioning branch for region determination, resulting in the pixel range of the facade region corresponding to the building instance. As mentioned earlier, the fused geometric features corresponding to the facade positioning branch are a set of transformed pixel coordinates obtained by transforming the pixel coordinates of the building outline. The facade positioning branch determines the pixel region enclosed or spanned by the original pixel coordinates and the transformed pixel coordinates of the building outline, which serves as the pixel range of the facade region.
[0103] In some embodiments, the pixels covered by the line connecting the original coordinates and the transformed coordinates of each point on the building outline can be included in the pixel range of the facade area; alternatively, the area enclosed by the set of original coordinate points and the set of transformed coordinate points can be taken as the pixel range of the facade area.
[0104] In this embodiment, the positioning of the facade area stops at determining the pixel range of the facade area and does not involve further processing of the values or colors of the facade pixels.
[0105] The fused geometric features corresponding to the height regression branch are input into the height regression branch for height regression to obtain the building height corresponding to the building instance. The height regression branch can include several regression layers. The height regression branch regresses the fused geometric features and outputs the building height. Under fixed imaging geometry conditions, there is a correlation between the disparity offset of the roof relative to the ground contour and the building height; a larger disparity offset usually corresponds to a larger building height. The disparity information carried in the fused geometric features provides a height-related geometric prior for height regression, which is beneficial to improving the regression results of building height.
[0106] The aforementioned roof geometric outline, facade pixel range, and building height are the building geometric attributes corresponding to each geometric task. There is no necessary execution order between the roof decoding branch, facade positioning branch, and height regression branch; they can be processed in parallel or in any order. This embodiment does not limit the processing order of the three geometric task branches.
[0107] Based on the above method, the three geometric task branches process their respective fused geometric features and output three types of building geometric attributes. Since the three types of building geometric attributes are all obtained by the same two-dimensional disparity vector, they are geometrically related to each other through this two-dimensional disparity vector, which helps to reduce the geometric inconsistency between the three.
[0108] Step S250: Determine the geometric truth labels corresponding to each building instance. Based on the differences between each building's geometric attributes and their corresponding geometric truth labels, determine the comprehensive task loss. Then, based on the comprehensive task loss, jointly optimize the two-dimensional disparity vector coding network and each geometric task branch so that the network parameters of the two-dimensional disparity vector coding network are simultaneously constrained by each geometric task branch.
[0109] The aforementioned geometric truth labels are used to provide supervisory reference values for the outputs of the three geometric task branches.
[0110] In some embodiments, the true roof geometry and true facade pixel range of a building instance are determined based on reference annotation data corresponding to the remote sensing image. This reference annotation data can be supervisory data obtained by annotating the roof and facade of the building instance in the remote sensing image.
[0111] In some embodiments, the reference annotation data can be a roof outline polygon and facade area range manually drawn on remote sensing imagery; the reference annotation data can also be obtained from existing building vector data or the projection of a 3D building model onto the image plane. The actual roof geometry of the building instance is determined from the portion corresponding to the roof outline in the reference annotation data; the actual facade area pixel range of the building instance is determined from the portion corresponding to the facade area in the reference annotation data.
[0112] In some embodiments, the actual building height of a building instance is determined based on reference height data corresponding to that building instance. This reference height data can be measurement or recorded data of the actual building height.
[0113] In some embodiments, the reference height data may come from the difference between airborne lidar point clouds, digital surface models, and digital elevation models, or from the conversion results of floor numbers and floor heights recorded in the building archive. The actual building height of the building instance is determined from the reference height data.
[0114] Furthermore, the actual roof geometry, the actual facade pixel range, and the actual building height are determined as the geometric ground truth labels corresponding to the building instance. Each of these geometric ground truth labels corresponds one-to-one with a geometric task branch: the actual roof geometry corresponds to the roof decoding branch, the actual facade pixel range corresponds to the facade localization branch, and the actual building height corresponds to the height regression branch.
[0115] The geometric truth labels are used to calculate the prediction error of each geometric task during the model training phase; during the inference phase after the model has completed training, the geometric truth labels are no longer needed.
[0116] Based on the above method, three types of true values are determined from the reference annotation data and reference height data, and they are matched one-to-one with the three geometric task branches, providing a supervised basis for the calculation of the subsequent comprehensive task loss.
[0117] The specific process for determining the overall task loss based on the differences between each building's geometric attributes and its corresponding geometric truth values is as follows: In some embodiments, the roof geometric profile, facade region pixel range, and building height of the building instance are first extracted from the building geometric attributes, and then the task loss of each of the three geometric tasks is calculated.
[0118] The roof task loss is determined based on the difference between the roof geometry and the actual roof geometry.
[0119] In some embodiments, the roof task loss can be measured by the geometric distance between the roof geometry and the real roof geometry, such as the chamfer distance, i.e., calculating the nearest distance from each point on the roof geometry to the real roof geometry and the nearest distance from each point on the real roof geometry to the roof geometry, and then summing them.
[0120] In some embodiments, the roof task loss may also be the polygon intersection-union ratio loss between the area enclosed by the roof geometry and the real roof geometry.
[0121] The facade task loss is determined based on the difference between the pixel range of the facade area and the pixel range of the actual facade area.
[0122] In some embodiments, the facade task loss can be the cross-union ratio loss between the pixel range of the facade area and the pixel range of the real facade area; the facade task loss can also be the pixel-by-pixel cross-entropy loss, that is: the facade area localization is regarded as the judgment of whether each pixel belongs to the facade area, and the cross-entropy is used to measure the difference between the judgment result and the pixel range of the real facade area.
[0123] The height task loss is determined based on the difference between the building height and the actual building height.
[0124] In some embodiments, the height task loss may be the mean square error between the building height and the actual building height; the height task loss may also be the mean absolute error between the building height and the actual building height.
[0125] Furthermore, based on the respective weight coefficients of the roof task loss, facade task loss, and height task loss, the roof task loss, facade task loss, and height task loss are weighted and summed to obtain the comprehensive task loss.
[0126] In some embodiments, the formula for calculating the overall task loss is as follows: in, To account for the overall mission losses, Losses due to rooftop mission For the loss of the facade task, For high mission losses, , , These are the weighting coefficients for the roof task loss, facade task loss, and height task loss, respectively.
[0127] In some embodiments, the weighting coefficients satisfy... =1 and , , All values are greater than or equal to zero. The weighting coefficients can be set according to the priority of different geometric task precision; for example, in scenarios that emphasize roof restoration, the weights can be increased. In scenes that emphasize facade and height, increase and .
[0128] In some embodiments, roof task loss, facade task loss, and height task loss can each be measured using a variety of loss measures.
[0129] In some embodiments, the roof task loss can be calculated using chamfer distance or polygon intersection-over-union (OCU) loss; the facade task loss can be calculated using OCU loss or cross-entropy loss; and the height task loss can be calculated using mean squared error or mean absolute error. Furthermore, these loss measures can be combined with each other. Weighting coefficients. , , In addition to taking fixed values that satisfy the condition that their sum is one and all values are non-negative, adjustments can also be made according to preset strategies during the optimization process.
[0130] The substitution of the aforementioned loss metrics and weight coefficients does not change the overall scheme of achieving three geometric task gradient couplings at the two-dimensional disparity vector encoding network using the comprehensive task loss.
[0131] Based on the above method, the task losses of the three geometric tasks are summarized into a comprehensive task loss, thereby constraining the three geometric tasks with a single optimization objective, which provides the conditions for subsequent gradient coupling of the three geometric tasks in the two-dimensional disparity vector encoding network.
[0132] The specific process of jointly optimizing the 2D disparity vector encoding network and its geometric task branches based on the comprehensive task loss is as follows: Backpropagation is performed based on the comprehensive task loss to determine the first gradient of the comprehensive task loss with respect to the network parameters of the 2D disparity vector coding network, and the second gradient with respect to the network parameters of each geometric task branch. The first gradient can be the gradient of the comprehensive task loss with respect to the network parameters of the 2D disparity vector coding network, and the second gradient can be the gradient of the comprehensive task loss with respect to the network parameters of each geometric task branch.
[0133] In this embodiment, the 2D disparity vector coding network is located upstream of the three geometric task branches, each of which uses a 2D disparity vector as input. Therefore, during backpropagation, the second gradient of each geometric task branch is propagated back along the backpropagation path to the 2D disparity vector coding network, where it converges and couples to obtain the first gradient. In other words, the first gradient is composed of the gradient components propagated back from the three geometric task branches, and it simultaneously contains the constraints imposed by the three geometric tasks on the network parameters of the 2D disparity vector coding network. Therefore, the network parameters of the 2D disparity vector coding network are simultaneously constrained by each geometric task branch.
[0134] Then, the network parameters of the 2D disparity vector encoding network are updated based on the first gradient, and the network parameters of each geometric task branch are updated based on the second gradient, until the preset convergence condition is met, thus completing the joint optimization. The convergence condition here can be a condition used to determine whether the optimization has ended.
[0135] In some embodiments, the convergence condition may be that the overall task loss decreases below a preset threshold, or the change in the overall task loss over several iterations is less than a preset threshold, or the number of iterations reaches a preset upper limit for the number of iterations.
[0136] In some embodiments, network parameters may be updated using optimization algorithms such as stochastic gradient descent and its variants.
[0137] It should be noted that since the network parameters of the 2D disparity vector encoding network are updated by the first gradient, and this first gradient couples the gradients back from the three geometric task branches at the 2D disparity vector encoding network, the 2D disparity vector encoding network needs to consider the requirements of the three geometric tasks in each parameter update. Based on this, the 2D disparity vector output by the 2D disparity vector encoding network is constrained to be a geometric representation that fits all three geometric tasks during the optimization process. This implicitly establishes geometric consistency constraints among the three geometric tasks within the model, without the need to add an additional consistency correction stage outside the model.
[0138] Based on the above method, the gradient generated by the integrated task loss is coupled at the two-dimensional disparity vector coding network through backpropagation, so that the two-dimensional disparity vector coding network and each geometric task branch are jointly optimized. The network parameters of the two-dimensional disparity vector coding network are simultaneously constrained by the three geometric task branches, which is beneficial to improving the geometric consistency between the roof geometric contour, the pixel range of the facade area and the building height.
[0139] Using the method described above, the roof geometry, facade pixel range, and building height of building instances in remote sensing imagery are obtained using the same two-dimensional disparity vector. Compared to representing the geometric information of each task separately using pixel masks or dense feature maps, this reduces the amount of geometric data. Compared to setting up independent disparity encoding networks for each geometric task, this reduces the repetitive setting of disparity encoding steps, which helps to reduce the number of model parameters and computational overhead. On the one hand, the three geometric tasks share the same two-dimensional disparity vector encoding network. The gradient of the combined task loss is coupled at the two-dimensional disparity vector encoding network through backpropagation, so that the network parameters of this encoding network are simultaneously constrained by the branches of the three geometric tasks. This implicitly establishes geometric consistency constraints among the three geometric tasks within the model, which helps to reduce the occurrence of positional misalignment, boundary non-connection, or height mismatch with projection shape between roof position, facade range, and building height, and improves the geometric consistency of the prediction results of multiple types of building geometric attributes. On the other hand, since the geometric consistency constraints are directly established within the model through two-dimensional disparity vectors and joint optimization, there is no need to add additional consistency correction or post-processing steps outside the model.
[0140] It should be noted that although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.
[0141] Furthermore, in this example embodiment, a multi-task joint modeling device for architectural geometry based on two-dimensional disparity vectors is also provided. (Refer to...) Figure 4 As shown, the multi-task joint modeling device 400 for architectural geometry based on two-dimensional disparity vectors may include: a data acquisition module 410, a geometric branch module 420, a disparity offset module 430, a geometric fusion module 440, and a joint optimization module 450. Wherein: The data acquisition module 410 is used to acquire remote sensing images containing building instances and outline prompt information corresponding to the building instances; The geometric branch module 420 is used to input the remote sensing image into the shared backbone network for feature extraction, to obtain the image features of the remote sensing image, and to obtain the instantiation features of the building instance and the geometric features corresponding to each geometric task based on the image features. The disparity offset module 430 is used to input the instantiated features into a two-dimensional disparity vector encoding network and output a two-dimensional disparity vector corresponding to the building instance. The two-dimensional disparity vector is used to characterize the two-dimensional disparity offset of the roof of the building instance relative to its ground contour in the image plane. The geometric fusion module 440 is used to fuse the two-dimensional disparity vector with the geometric features corresponding to each geometric task to obtain the fused geometric features corresponding to each geometric task, and input each fused geometric feature into the corresponding geometric task branch for processing to obtain the building geometric attributes corresponding to each geometric task. The joint optimization module 450 is used to determine the geometric truth labels corresponding to each building instance, determine the comprehensive task loss based on the differences between each building geometric attribute and its corresponding geometric truth label, and jointly optimize the two-dimensional disparity vector encoding network and each geometric task branch based on the comprehensive task loss, so that the network parameters of the two-dimensional disparity vector encoding network are simultaneously constrained by each geometric task branch. The specific details of each module of the two-dimensional disparity vector-based multi-task joint modeling device for building geometry have been described in detail in the corresponding two-dimensional disparity vector-based multi-task joint modeling method for building geometry, therefore, they will not be repeated here.
[0142] It should be noted that although several modules or units of the architectural geometry multi-task co-modeling device based on two-dimensional disparity vectors have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0143] Furthermore, in an exemplary embodiment of this disclosure, an electronic device capable of implementing the above-described multi-task joint modeling method for architectural geometry based on two-dimensional disparity vectors is also provided.
[0144] Those skilled in the art will understand that various aspects of this disclosure can be implemented as a system, method, or program product. Therefore, various aspects of this disclosure can be embodied in the following forms: a completely hardware embodiment, a completely software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects, collectively referred to herein as a "circuit," "module," or "system."
[0145] The following reference Figure 5 , Figure 5 This diagram illustrates the structure of a computer system of an electronic device 500 according to an embodiment of the present disclosure. The electronic device 500 includes a processing unit 510, a storage unit 520, and a bus 530 connecting the processing unit 510 and the storage unit 520. It also includes an input / output interface 550, a network adapter 560, and an external device 570.
[0146] The storage unit stores program code that can be executed by the processing unit 510, causing the processing unit 510 to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of this disclosure. The storage unit 520 may include a readable medium in the form of a volatile storage unit, such as a random access memory (RAM) 521 and / or a cache 522, and may further include a read-only memory (ROM) 523.
[0147] Storage unit 520 may also include a program / utility 524 having a set (at least one) program module 525, such program module 525 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0148] Bus 530 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0149] Electronic device 500 can also communicate with one or more external devices 570 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 500, and / or with any device that enables electronic device 500 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 550. Furthermore, electronic device 500 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 560. As shown, network adapter 560 communicates with other modules of electronic device 500 via bus 530. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0150] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware.
[0151] In exemplary embodiments of this disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the methods described above is stored. In some possible embodiments, various aspects of this disclosure may also be implemented as a program product including program code that, when the program product is run on a terminal device, causes the terminal device to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of this disclosure.
[0152] refer to Figure 6 As shown, a program product 600 for implementing the above-described multi-task co-modeling method for architectural geometry based on two-dimensional disparity vectors according to embodiments of the present disclosure is described. This product may be a portable compact disc read-only memory (CD-ROM) and includes program code, and may run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, the readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0153] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0154] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0155] Furthermore, the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of this disclosure and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.
[0156] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for building geometry multi-task joint modeling based on two-dimensional disparity vectors, characterized in that, include: Acquire remote sensing images containing building instances and corresponding outline prompts for the building instances; The remote sensing image is input into a shared backbone network for feature extraction to obtain the image features of the remote sensing image, and the instantiation features of the building instance and the geometric features corresponding to each geometric task are obtained based on the image features. The instantiated features are input into a two-dimensional disparity vector encoding network, which outputs a two-dimensional disparity vector corresponding to the building instance. The two-dimensional disparity vector is used to characterize the two-dimensional disparity offset of the roof of the building instance relative to its ground contour in the image plane. The two-dimensional disparity vector is fused with the geometric features corresponding to each geometric task to obtain the fused geometric features corresponding to each geometric task. The fused geometric features are then input into the corresponding geometric task branches for processing to obtain the building geometric attributes corresponding to each geometric task. The geometric truth labels corresponding to the building instances are determined. Based on the differences between each building's geometric attributes and its corresponding geometric truth labels, a comprehensive task loss is determined. The two-dimensional disparity vector coding network and each geometric task branch are jointly optimized based on the comprehensive task loss, so that the network parameters of the two-dimensional disparity vector coding network are simultaneously constrained by each geometric task branch.
2. The method of claim 1, wherein, The process of obtaining the instantiation features of the building instance and the geometric features corresponding to each geometric task based on the image features includes: Based on the outline prompt information, establish the correspondence between the building outline of the building instance and the building instance; Based on the correspondence, the contour prompt information and the image features are spatially fused to obtain the instantiated features corresponding to the building instance; The roof semantic features and height estimation features corresponding to the building instance are obtained from the image features, and the pixel coordinates of the building outline of the building instance are determined based on the outline prompt information; The semantic features of the roof, the height estimation features, and the pixel coordinates of the building outline are determined as the geometric features corresponding to each geometric task; The geometric task branches include a roof decoding branch, a facade positioning branch, and a height regression branch.
3. The method of claim 1, wherein, The step of inputting the instantiated features into a two-dimensional disparity vector encoding network and outputting the two-dimensional disparity vector corresponding to the building instance includes: The instantiated features are input into the feature encoder of the two-dimensional disparity vector coding network for encoding to obtain the encoded features corresponding to the building instance; The encoded features are input into the regression head of the two-dimensional disparity vector encoding network for two-dimensional regression processing to obtain the horizontal disparity components and the vertical disparity components. The horizontal disparity component and the vertical disparity component are defined as the two-dimensional disparity vector.
4. The method of claim 2, wherein, The step of fusing the two-dimensional disparity vector with the geometric features corresponding to each geometric task to obtain the fused geometric features corresponding to each geometric task includes: The two-dimensional disparity vector is fused with the roof semantic features to obtain the fused geometric features corresponding to the roof decoding branch; Based on the two-dimensional disparity vector, the pixel coordinates of the building outline of the building instance are transformed by the facade positioning branch to obtain the fused geometric features corresponding to the facade positioning branch. The two-dimensional disparity vector is fused with the height estimation feature to obtain the fused geometric feature corresponding to the height regression branch.
5. The method according to claim 4, characterized in that, The process of inputting each fused geometric feature into its corresponding geometric task branch for processing to obtain the building geometric attributes corresponding to each geometric task includes: The fused geometric features corresponding to the roof decoding branch are input into the roof decoding branch for decoding to obtain the roof geometric profile corresponding to the building instance. The fused geometric features corresponding to the facade positioning branch are input into the facade positioning branch to determine the region, thereby obtaining the pixel range of the facade region corresponding to the building instance. The fused geometric features corresponding to the height regression branch are input into the height regression branch to perform height regression, thereby obtaining the building height corresponding to the building instance; The building geometric attributes include the roof geometric profile, the pixel range of the facade area, and the building height of the building instance.
6. The method according to claim 1, characterized in that, The determination of the geometric truth labels corresponding to the building instance includes: Based on the reference annotation data corresponding to the remote sensing image, the actual roof geometric outline and the pixel range of the actual facade area of the building instance are determined. Based on the reference height data corresponding to the building instance, the actual building height of the building instance is determined; The real roof geometry, the real facade pixel range, and the real building height are determined as the geometric truth labels corresponding to the building instance, and each geometric truth label corresponds one-to-one with each geometric task branch.
7. The method according to claim 6, characterized in that, The determination of the overall task loss based on the differences between each building's geometric attributes and its corresponding geometric truth labels includes: Extract the roof geometry profile, the pixel range of the facade area, and the building height of the building instance from the building geometry attributes; The roof task loss is determined based on the difference between the roof geometry and the actual roof geometry. The facade task loss is determined based on the difference between the pixel range of the facade area and the pixel range of the actual facade area. Based on the difference between the building height and the actual building height, the height task loss is determined; Based on the weighting coefficients corresponding to the roof task loss, the facade task loss, and the height task loss, the roof task loss, the facade task loss, and the height task loss are weighted and summed to obtain the comprehensive task loss.
8. The method according to claim 1, characterized in that, The joint optimization of the two-dimensional disparity vector encoding network and each geometric task branch based on the comprehensive task loss includes: Backpropagation is performed based on the comprehensive task loss to determine the first gradient of the comprehensive task loss with respect to the network parameters of the two-dimensional disparity vector coding network, and the second gradient with respect to the network parameters of each geometric task branch. The second gradient of each geometric task branch is backpropagated and coupled at the two-dimensional disparity vector coding network to obtain the first gradient, so that the network parameters of the two-dimensional disparity vector coding network are simultaneously constrained by each geometric task branch. The network parameters of the two-dimensional disparity vector coding network are updated based on the first gradient, and the network parameters of each geometric task branch are updated based on the second gradient until the preset convergence condition is met, thus completing the joint optimization.
9. A multi-task joint modeling device for architectural geometry based on two-dimensional disparity vectors, characterized in that, include: The data acquisition module is used to acquire remote sensing images containing building instances and outline prompt information corresponding to the building instances; The geometric branch module is used to input the remote sensing image into the shared backbone network for feature extraction, to obtain the image features of the remote sensing image, and to obtain the instantiation features of the building instance and the geometric features corresponding to each geometric task based on the image features. The disparity offset module is used to input the instantiated features into a two-dimensional disparity vector encoding network and output a two-dimensional disparity vector corresponding to the building instance. The two-dimensional disparity vector is used to characterize the two-dimensional disparity offset of the roof of the building instance relative to its ground contour in the image plane. The geometric fusion module is used to fuse the two-dimensional disparity vector with the geometric features corresponding to each geometric task to obtain the fused geometric features corresponding to each geometric task, and input each fused geometric feature into the corresponding geometric task branch for processing to obtain the building geometric attributes corresponding to each geometric task. The joint optimization module is used to determine the geometric truth labels corresponding to the building instance, determine the comprehensive task loss based on the difference between each building geometric attribute and the corresponding geometric truth label, and jointly optimize the two-dimensional disparity vector coding network and each geometric task branch based on the comprehensive task loss, so that the network parameters of the two-dimensional disparity vector coding network are simultaneously constrained by each geometric task branch.
10. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the following method: Acquire remote sensing images containing building instances and corresponding outline prompts for the building instances; The remote sensing image is input into a shared backbone network for feature extraction to obtain the image features of the remote sensing image, and the instantiation features of the building instance and the geometric features corresponding to each geometric task are obtained based on the image features. The instantiated features are input into a two-dimensional disparity vector encoding network, which outputs a two-dimensional disparity vector corresponding to the building instance. The two-dimensional disparity vector is used to characterize the two-dimensional disparity offset of the roof of the building instance relative to its ground contour in the image plane. The two-dimensional disparity vector is fused with the geometric features corresponding to each geometric task to obtain the fused geometric features corresponding to each geometric task. The fused geometric features are then input into the corresponding geometric task branches for processing to obtain the building geometric attributes corresponding to each geometric task. The geometric truth labels corresponding to the building instances are determined. Based on the differences between each building's geometric attributes and its corresponding geometric truth labels, a comprehensive task loss is determined. The two-dimensional disparity vector coding network and each geometric task branch are jointly optimized based on the comprehensive task loss, so that the network parameters of the two-dimensional disparity vector coding network are simultaneously constrained by each geometric task branch.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program code instructions, which, when invoked by a processor, cause the processor to execute the multi-task joint modeling method for architectural geometry based on two-dimensional disparity vectors as described in any one of claims 1 to 8.
