A cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion

By using codebook and cross-deformation fusion technology in the remote sensing image segmentation model, the problem of performance degradation when the remote sensing image segmentation model is generalized between different domains is solved, more robust feature learning and cross-domain adaptation are achieved, and image quality is improved. Semantic segmentation performance.

CN118298185BActive Publication Date: 2024-09-03INSPUR OPTOELECTRONICS SATELLITE TECHNOLOGY (SHANDONG) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410725069.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-03
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

Existing remote sensing image segmentation models suffer from performance degradation when generalized between different domains. It is difficult to effectively reduce the annotation costs caused by domain differences, and it is difficult to adapt to the bias introduced by different remote sensing equipment and seasonal climate changes.

Method used

A cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion is adopted. Through the convolutional network encoder and decoder in the self-supervised pre-training and segmentation training stages, the trainable codebook quantification features are used and fused through the cross-deformation feature fusion module. Different layer features improve the model's robustness and cross-domain adaptability.

Benefits of technology

Bridge the two domains through the codebook, reduce domain differences, improve the model's adaptability to deviations in different domains, enhance the robustness of image content, and improve cross-domain image semantic segmentation performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118298185B
    Figure CN118298185B
Patent Text Reader

Abstract

The present invention relates to a cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion, belonging to the field of image processing technology. In the self-supervised pre-training stage, the source domain image and the target domain image are input into the convolutional network to obtain the bottleneck feature, the bottleneck feature is replaced by the feature code in the codebook, the replaced feature is input into the decoder to restore the original image, the bottleneck feature is input into the domain discriminator for domain confusion, and the intermediate feature of the decoder is input into the domain discriminator for domain confusion; in the segmentation training stage, the source domain and the target domain images are input into the pre-trained encoder and decoder, and the jump connection is realized through the cross-deformation feature fusion module. The last layer of the decoder is replaced with a segmentation head, and the domain confusion loss and the segmentation loss are calculated to jointly optimize the model. The present invention uses the codebook mechanism to enhance the image content, and uses deformable attention to fuse different layers of features, so that the model can learn more robust features, thereby improving the performance of cross-domain image semantic segmentation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a remote sensing image semantic segmentation method, in particular to a cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion, and belongs to the technical field of image processing and transfer learning. Background Art

[0002] Image segmentation technology is a very important task in computer vision, especially in the field of remote sensing image analysis. However, the further development of semantic segmentation is limited by the high cost of segmentation label annotation. In addition, even if the model is trained on a well-annotated dataset, it is difficult to generalize it to data from another domain due to imaging differences between remote sensing devices or biases introduced by seasonal climate change. To address this challenge, domain adaptive segmentation has become a research hotspot. It is used in the context of transferring knowledge from one domain (source) to another domain (target), where the domain can be regarded as a specific data distribution or type. Through domain adaptation technology, the model can be generalized to another domain, significantly reducing the annotation cost, which is conducive to promoting the development of semantic segmentation applications. Improve the performance of the model on different remote sensing image databases.

[0003] The key to domain adaptive segmentation is how to learn domain-invariant features in samples and discard domain-specific features. Existing methods usually align the features of the two domains to achieve this goal. Their essential idea is to enable the model to extract similar and more generalizable features. However, the success of generative models has brought new perspectives. Existing generative models can be extended to unknown domains to generate images that have never been seen before. Among them, generative models with codebooks as key components have achieved more outstanding performance. The codebook mechanism quantifies sample features into shared feature codes, which can serve as a bridge to bridge the two domains. Therefore, the use of codebooks can effectively reduce the differences between the two domains. Summary of the invention

[0004] The purpose of the present invention is to overcome the performance degradation caused by domain differences and to provide a cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion. The codebook mechanism is used to enhance the image content, and deformable attention is used to fuse features of different layers, so that the model can learn more robust features, thereby improving the performance of cross-domain image semantic segmentation.

[0005] The technical solution adopted by the present invention is:

[0006] A cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion includes the following steps:

[0007] S1. Obtain source domain images and target domain images, preprocess them, and divide the dataset;

[0008] S2. In the self-supervised pre-training stage, the source domain image and the target domain image of the training sample are input into the same convolutional network encoder to obtain the source domain bottleneck feature and the target domain bottleneck feature respectively. The bottleneck feature is quantized using a trainable codebook and each element in the source domain bottleneck feature and the target domain bottleneck feature is replaced by the closest feature code in the codebook. The features after codebook replacement are input into the decoder to restore them into the quasi-original source domain image and the quasi-original target domain image. The bottleneck features of the source domain and the target domain are input into the domain discriminator for domain confusion. The intermediate features of the decoder are input into the same domain discriminator for domain confusion. Then, the L2 loss between the original image and the restored image is calculated and adversarial training is performed.

[0009] S3. In the segmentation training phase, the source domain image and target domain image of the training sample are input into the self-supervised pre-trained convolutional network encoder to obtain the bottleneck feature, the bottleneck feature is quantized into a feature code from the codebook, and the feature code is input into the self-supervised pre-trained decoder. The encoder and decoder are jump-connected through a cross-deformation feature fusion module. The final fused decoded features of the decoder are input into a dense classifier to predict the segmentation label. Then, the output features of the last layer of the decoder are input into the domain discriminator for domain confusion. Finally, the domain confusion loss and segmentation loss are calculated to jointly optimize the model.

[0010] S4. Input the test set into the trained network, first get the bottleneck features, quantize the bottleneck features into feature codes from the codebook, input the feature codes into the decoder, and realize jump connection between the encoder and the decoder through the cross-deformation feature fusion module. The features of the last layer of decoder are fused with the features of the first layer of encoder through the cross-deformation feature fusion module to obtain the final output features, which are then input into the dense classifier for prediction to obtain the segmentation result.

[0011] In the above method, the convolutional network encoder described in step S2 uses a U-Net encoder, preferably an encoder composed of four convolutions.

[0012] The codebook described in step S2 has N trainable vectors in the codebook c i , the absolute distance between each element in the bottleneck feature Z and the codebook is calculated,

[0013] ,

[0014] There is a sampling process in feature quantization, so it is not differentiable during the training process. In order to train the codebook, the codebook features The gradient of is directly copied to Z, and this operation is trained as follows,

[0015] ,

[0016] The sg[] operation represents gradient truncation, Z qis the codebook feature, Z t is the target domain feature, Z s It is the source domain feature.

[0017] The decoder structure in step S2 is the same as the U-Net decoder, but the last layer is replaced by a convolutional layer with an output channel of 3. The L2 loss is calculated between the original image and the restored image.

[0018] ,

[0019] in The restored image.

[0020] The structure of the domain discriminator in step S2 is a three-layer convolutional network, and each layer consists of a [convolution-batch normalization-ReLU activation function] structure.

[0021] In step S2, the adversarial training is to first train the domain discriminator so that it can distinguish the bottleneck features of the source domain and the target domain, freeze the domain discriminator after one round of training, and then train the encoder, codebook and decoder network so that the discriminator cannot distinguish the bottleneck features of the source domain, the bottleneck features of the target domain and the restored image as the training target.

[0022] In step S3, the encoder and decoder are jump-connected through a cross-deformation feature fusion module, which fuses the shallow features of the encoder with the corresponding high-level decoding features through the cross-deformation feature fusion module to obtain fused features with richer semantic information. The fused features are input into the next layer of decoder, and the features of the last layer of decoder are fused with the features of the first layer of encoder through the cross-deformation feature fusion module to obtain the final fused output features.

[0023] The cross-deformation feature fusion module described in step S3 is to fuse the shallow features of the encoder with the corresponding high-level decoding features. First, a reference coordinate point is given, and then the shallow features will predict the offset coordinates by a lightweight offset prediction network, as shown below.

[0024] ,

[0025] in Conv () is a 1×1 convolution with 2 output channels, representing two coordinates on the predicted image, Z l2 Represents the output of the second-layer encoder, assigns the coordinate offset to the reference point coordinate, and obtains the offset deformed coordinate.

[0026] ,

[0027] The reference point coordinates are usually evenly spaced values ​​with an interval of 1 and a starting point of 0.5, as shown below:

[0028] ,

[0029] ,

[0030] Then, through bilinear interpolation, the image features are sampled at the pos coordinate in Φ () represents bilinear interpolation. This feature is encoded into key and value features through two linear transformations. The high-level feature Z h2 As a query, Z h2 Represents the output of the penultimate layer of the decoder, performing cross attention, as follows:

[0031] ,

[0032] ,

[0033] in σ () represents the softmax activation function, and D represents the length of the feature at each sampling point, which is also the number of channels of the second-layer feature map. la2 is a shallow feature of deep semantic perception. Then Z h2 With Z l2 Reverse the above operations to obtain the shallow semantic perception of the high-level feature Z ha2 , W k , W v and W q They are respectively generated for attention queries q ,value v and key k The linear layer parameters of the features,

[0034] ,

[0035] ,

[0036] ,

[0037] ,

[0038] ,

[0039] in Conv () represents the convolutional layer, Φ () is the bilinear interpolation sampling function, offset l is the predicted offset, POS is the new coordinate position generated by the offset. Then Z la2 and Z ha2The added fusion is input into the next layer of decoder to obtain the output of the last layer of decoder, and then the cross-deformation feature fusion is performed, and finally the fused decoding features are output.

[0040] The segmentation loss uses the cross loss function:

[0041] ,

[0042] in p c is the predicted class probability, y c It's a label. L s is the cross entropy loss, c refers to the cth category, M is the total number of categories.

[0043] The above domain confusion loss is implemented as a binary classification loss, and adversarial training is used for domain confusion. In step S3, the network except the discriminator is first frozen, and then the source domain image and the target domain image are input into the frozen network to obtain the bottleneck features of the source domain and the target domain. These two bottleneck features are input into the discriminator for training. The training goal is to enable the discriminator to distinguish which feature belongs to the source domain and which one belongs to the target domain. Specifically, perform binary classification, the source domain feature is the first category label, that is, 0, and the target domain feature is the second category label, that is, 1, and then use binary cross entropy for training. Train the discriminator for one step, then freeze the discriminator, and unfreeze the other parts of the network (encoder, discriminator). The bottleneck features of the source and target domain images are obtained and input into the frozen discriminator. The training goal is to make the discriminator recognize incorrectly, that is, recognize the source domain feature as the second category label 1, and the target domain as the first label 0. Specifically, when calculating the binary cross entropy, the source domain label is set to 1 and the target domain label is set to 0 (the opposite of training the discriminator).

[0044] The beneficial effects of the present invention are:

[0045] The present invention first uses samples from two domains for self-supervised reconstruction to train an effective codebook, and then learns segmentation labels through codebook features. The codebook bridges the two domains to reduce differences and overcome performance degradation caused by domain differences. In the field of remote sensing, different domain deviations are usually introduced due to differences in equipment or seasonal climates. The present invention introduces domain invariance by using highly robust codebook features to improve the model's adaptability to different domain deviations. In addition, cross-deformation feature fusion effectively fuses high-level features rich in abstract semantics and low-level features containing detail information, thereby improving the robustness of the model and thus improving the performance of cross-domain image semantic segmentation. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1Schematic diagram of the network structure in the self-supervised pre-training stage of the method of the present invention;

[0047] Figure 2 A schematic diagram of the network structure in the segmentation training phase of the method of the present invention;

[0048] Figure 3 It is a structural schematic diagram of the cross-deformation feature fusion module of the present invention;

[0049] Figure 4 This is a structural diagram of the domain discriminator of the present invention. DETAILED DESCRIPTION

[0050] The following is further described in conjunction with specific embodiments.

[0051] Embodiment A cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion includes the following steps:

[0052] S1. Obtain source domain images and target domain images, preprocess them, and divide the dataset:

[0053] Source domain images refer to images for which data and labels can be accessed during training, and target domain images refer to images whose style or appearance is different from the source domain images and whose labels cannot be accessed during training. The source domain images and target domain images are first scaled to the same size. The size is set to 572×572, that is, W=H=572, C=3. The dataset is divided in a ratio of 8:1:1, that is, 80% is used for training, 10% is used for validation, and 10% is used for testing.

[0054] S2. In the self-supervised pre-training stage, the source domain image and the target domain image of the training sample are input into the same convolutional network encoder to obtain the source domain bottleneck feature and the target domain bottleneck feature respectively. A trainable codebook is used to quantize the bottleneck feature and each element in the source domain bottleneck feature and the target domain bottleneck feature is replaced by the closest feature code in the codebook. The features after codebook replacement are input into the decoder to restore them into the quasi-original source domain image and the quasi-original target domain image. The bottleneck features of the source domain and the target domain are input into the domain discriminator for domain confusion. The intermediate features of the decoder are input into the same domain discriminator for domain confusion. Then the L2 loss between the original image and the restored image is calculated and adversarial training is performed:

[0055] (1) Image input to the convolutional network to obtain bottleneck features

[0056] The source domain image and target domain image of the training sample are input into the encoder composed of four convolutions to obtain 32 32 The bottleneck feature of 512 dimensions, here the encoder uses the U-Net encoder.

[0057] (2) Bottleneck features are quantized into codebook features

[0058] Use a trainable codebook and set the codebook C to N=8190, that is, there are 8190 trainable vectors in the codebook c i The absolute distance between each element in the bottleneck feature Z and the codebook is calculated.

[0059] ,

[0060] There is a sampling process in feature quantization, so it is not differentiable during the training process. In order to train the codebook, the codebook feature Z q The gradient of is directly copied to Z. This operation is trained as follows,

[0061] ,

[0062] The sg[] operation represents gradient truncation, Z q is the codebook feature, Z t is the target domain feature, Z s It is the source domain feature.

[0063] (3) Decoding the codebook features to restore them to images

[0064] The quantized features are input into a four-layer decoder. The decoder structure is similar to the U-Net decoder, but the last layer is replaced by a convolutional layer with an output channel of 3. The L2 loss is calculated between the original image and the restored image.

[0065] ,

[0066] in The restored image.

[0067] (4) Bottleneck feature input domain discriminator

[0068] The bottleneck feature Z is input into the domain decision maker, which consists of a three-layer convolutional network (see Figure 4 ), each convolutional network layer consists of a Conv-ReLU-BN structure, Conv stands for convolutional layer, BN stands for batch normalization layer (BatchNormalization), and ReLU is the ReLU activation function. Then the features output by the convolutional layer are pooled using global average pooling to obtain the image feature vector. First, the domain discriminator is trained to classify the source domain features as 1 and the target domain as 0. After one round of training, the domain discriminator is frozen, and then the encoder, codebook, and decoder network are trained. At this time, the encoder should classify the source domain features as 0 and the target domain features as 1.

[0069] (5) Confusion of feature domains in the decoder

[0070] The decoder features are input into the discriminator with the same structure as step (4). The discriminator is trained together with the discriminator of step (4). After one round of training, the discriminator is frozen and the encoder, codebook and decoder networks are trained. The training objectives are consistent with step (4).

[0071] S3. In the segmentation training phase, the source domain images and target domain images of the training samples are input into the self-supervised pre-trained convolutional network encoder to obtain bottleneck features. The bottleneck features are quantized into feature codes from the codebook, and the feature codes are input into the self-supervised pre-trained decoder. The encoder and decoder are skipped through the cross-deformation feature fusion module. The final fused decoded features of the decoder are input into the dense classifier to predict the segmentation label. Then the output features of the last layer of the decoder are input into the domain discriminator for domain confusion. Finally, the domain confusion loss and segmentation loss are calculated to jointly optimize the model:

[0072] Both the source domain image and the target domain image use the encoder trained in the pre-training phase to obtain bottleneck features. And freeze them in the segmentation training phase. Obtain codebook features as in the pre-training phase. Then the codebook features are input into the decoder for decoding to obtain high-level features.

[0073] The source domain codebook features and the target domain codebook features are input into the decoder to obtain the upsampled decoded features. The features are decoded once and then upsampled to expand the feature map size until it is the same as the original. Figure 1 The shallow features of each encoder layer are fused with the corresponding high-level decoding features, and the cross-deformation feature fusion module obtains fused features with richer semantic information. Figure 2 As shown in the figure, the output features of the second-layer encoder are fused with the output features of the penultimate layer decoder, and the output fused features are input into the last layer decoder. Then, the output features of the last layer decoder are fused with the output features of the first layer encoder to obtain the final output features, and then the dense classifier predicts the segmentation label.

[0074] by Figure 2 Taking the second layer shallow features and the second to last layer high-level features in as an example, the high-level features and shallow features are input to the cross-deformation feature fusion module. First, the reference coordinate points are given, and then the shallow features will be predicted by a lightweight offset prediction network to predict the offset coordinates, such as Figure 3 As shown,

[0075] ,

[0076] in Conv () is a 1×1 convolution with 2 output channels, representing two coordinates on the predicted image. l2 Represents the output of the second layer encoder. Assign the coordinate offset to the reference point coordinates to obtain the offset deformed coordinates.

[0077] ,

[0078] The reference point coordinates are usually evenly spaced values ​​with an interval of 1 and a starting point of 0.5, as shown below:

[0079] ,

[0080] ,

[0081] Then, through bilinear interpolation, the image features are sampled at the pos coordinate ,in Φ () represents bilinear interpolation. This feature is encoded into key and value features through two linear transformations. The high-level feature Z h2 As a query, perform cross attention, the specific operations are as follows:

[0082] ,

[0083] ,

[0084] in σ () represents the softmax activation function, and D represents the length of the feature at each sampling point, which is also the number of channels of the second-layer feature map. la2 is a shallow feature of deep semantic perception. Then Z h2 With Z l2 Reverse the above steps to obtain the shallow semantic perception high-level feature Z ha2 ,

[0085] ,

[0086] ,

[0087] ,

[0088] ,

[0089] .

[0090] Then Z la2 and Z ha2Add and fuse, input to the next layer of decoder, get the output of the last layer of decoder, perform cross-deformation feature fusion, and finally output the fused decoded features. The features before inputting the segmentation head (the output features of the last layer of the decoder) are input into the same structure as the domain discriminator used in the previous stage for domain confusion. The training method is the same as above, that is, first train the discriminator so that it classifies the source domain features as 1 and the target domain features as 0. Then freeze the discriminator and train other networks, which want to confuse the discriminator so that it classifies the source domain features as 0 and the target domain features as 1.

[0091] Use 1 1. Convolution maps the fused decoded features to the label space to obtain the segmentation prediction probability, and uses the cross loss function to optimize the model.

[0092] ,

[0093] in p c is the predicted class probability, y c It's a label. L s is the cross entropy loss, c refers to the cth category, and M is the total number of categories.

[0094] The above is a detailed description of the present invention in conjunction with typical embodiments, and the protection scope of the present invention is not limited thereto.

Claims

1. A cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion, characterized in that: The steps include: S1. Obtain source domain images and target domain images, preprocess them, and divide the dataset; S2. In the self-supervised pre-training stage, the source domain image and the target domain image of the training sample are input into the same convolutional network encoder to obtain the source domain bottleneck feature and the target domain bottleneck feature respectively. The bottleneck feature is quantized using a trainable codebook and each element in the source domain bottleneck feature and the target domain bottleneck feature is replaced by the closest feature code in the codebook. The features after codebook replacement are input into the decoder to restore them into the quasi-original source domain image and the quasi-original target domain image. The bottleneck features of the source domain and the target domain are input into the domain discriminator for domain confusion. The intermediate features of the decoder are input into the same domain discriminator for domain confusion. Then, the L2 loss between the original image and the restored image is calculated and adversarial training is performed. S3. In the segmentation training phase, the source domain image and target domain image of the training sample are input into the self-supervised pre-trained convolutional network encoder to obtain the bottleneck feature, the bottleneck feature is quantized into a feature code from the codebook, and the feature code is input into the self-supervised pre-trained decoder. The encoder and decoder are jump-connected through a cross-deformation feature fusion module. The final fused decoded features of the decoder are input into a dense classifier to predict the segmentation label. Then, the output features of the last layer of the decoder are input into the domain discriminator for domain confusion. Finally, the domain confusion loss and segmentation loss are calculated to jointly optimize the model. S4. Input the test set into the trained network, first obtain the bottleneck features, quantize the bottleneck features into feature codes from the codebook, input the feature codes into the decoder, and realize jump connection between the encoder and the decoder through the cross-deformation feature fusion module. The features of the last layer of decoder are fused with the features of the first layer of encoder through the cross-deformation feature fusion module to obtain the final fused output features, which are then input into the dense classifier for prediction to obtain the segmentation result.

2. According to claim 1, a cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion is characterized in that: The convolutional network encoder described in step S2 uses a U-Net encoder.

3. The cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion according to claim 1 is characterized in that: The codebook described in step S2 has N trainable vectors in the codebook c i , the absolute distance between each element in the bottleneck feature Z and the codebook is calculated, , The codebook feature Z q The gradient of is directly copied to Z for training. The specific operation is shown in the following formula: , The sg[] operation represents gradient truncation, Z q is the codebook feature, Z t is the target domain feature, Z s It is the source domain feature.

4. The cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion according to claim 1 is characterized in that: The decoder structure in step S2 is the same as the U-Net decoder, but the last layer is replaced by a convolutional layer with an output channel of 3. The L2 loss is calculated between the original image and the restored image. , in The restored image.

5. The cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion according to claim 1 is characterized in that: The structure of the domain discriminator in step S2 is a three-layer convolutional network, and each layer consists of a convolutional layer-batch normalization layer-ReLU activation function layer.

6. The cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion according to claim 1 is characterized in that: In step S2, the adversarial training is to first train the domain discriminator so that it can distinguish the bottleneck features of the source domain and the target domain, freeze the domain discriminator after one round of training, and then train the encoder, codebook and decoder network so that the discriminator cannot distinguish the bottleneck features of the source domain, the bottleneck features of the target domain and the restored image as the training target.

7. The cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion according to claim 1 is characterized in that: In step S3, the encoder and decoder are jump-connected through a cross-deformation feature fusion module, which fuses the shallow features of the encoder with the corresponding high-level decoding features through the cross-deformation feature fusion module to obtain fused features with richer semantic information. The fused features are input into the next layer of decoder, and the features of the last layer of decoder are fused with the features of the first layer of encoder through the cross-deformation feature fusion module to obtain the final fused output features.

8. The cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion according to claim 1 is characterized in that: The cross-deformation feature fusion module described in step S3 is to fuse the shallow features of the encoder with the corresponding high-level decoding features. First, a reference coordinate point is given, and then the shallow features will predict the offset coordinates by a lightweight offset prediction network, as shown below. , in Conv () is a 1×1 convolution with 2 output channels, representing two coordinates on the predicted image, Z l2 Represents the output of the second-layer encoder, assigns the coordinate offset to the reference point coordinate, and obtains the offset deformed coordinate. , The reference point coordinates are values ​​evenly spaced with an interval of 1 and a starting point of 0.5, as shown below: , , Then, through bilinear interpolation, the image features are sampled at the pos coordinate ,in Φ () represents bilinear interpolation. This feature is encoded into key and value features through two linear transformations. High-level feature Z h2 As a query, Z l2 Represents the output of the second layer encoder, performing cross attention, the specific operations are as follows: , , in σ () represents the softmax activation function, D Represents the length of each sampling feature, which is also the number of channels of the second layer feature map, Z la2 It is a shallow feature of deep semantic perception; Then Z h2 With Z l2 Reverse the above operations to obtain the shallow semantic perception high-level feature Z ha2 , W k , W v and W q They are respectively generated for attention queries q ,value v and key k The linear layer parameters of the features, , , , , , in Conv () represents the convolutional layer, Φ () is the bilinear interpolation sampling function, offset l is the predicted offset, POS The new coordinate position is generated by offset, and then Z la2 and Z ha2 Add and fuse.

9. The cross-domain remote sensing image segmentation method based on codebook and cross-deformation fusion according to claim 1 is characterized in that: The segmentation loss uses the cross loss function: , in p c is the predicted class probability, y c It's a label. L s is the cross entropy loss, c refers to the cth category, M is the total number of categories.

Citation Information

Patent Citations

  • Unsupervised semantic segmentation method for cross-domain remote sensing image

    CN112991353A

  • Unsupervised domain adaptive remote sensing road semantic segmentation method based on GAN network

    CN113888547A

  • Instance-aware monocular semantic scene completion method, medium and equipment

    CN117422629A

  • Cross-domain remote sensing image semantic segmentation method based on adaptation and self-training in iteration domain

    WO2023201772A1