A situation-invariant remote sensing image generation method based on a diffusion model

By combining keypoint annotation, Hourglass network, multi-level cross-attention module and denoising network, the problem of low efficiency and lack of control in remote sensing image generation is solved, stable remote sensing images of specified situations are generated, the generation efficiency and controllability are improved, and diverse training data are provided.

CN117593397BActive Publication Date: 2026-11-24THE 54TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY GROUP CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311500428.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-13
Publication Date
2026-11-24
Estimated Expiration
2043-11-13

AI Technical Summary

Technical Problem

Existing remote sensing image generation methods based on diffusion models are inefficient and not controllable enough, making it difficult to generate stable remote sensing images of a specified situation.

Method used

By combining keypoint annotation, Hourglass network, multi-level cross-attention module, and denoising network, a situation tensor of remote sensing image is generated. Hourglass network is used for situation detection, multi-level cross-attention module is used for attention calculation, and UNet network is used for denoising processing, so that the situation of the generated remote sensing image is consistent with the selected situation.

Benefits of technology

It achieves stability and controllability in remote sensing image generation, improves generation efficiency, provides diverse training and testing data, and avoids the inefficient process of generating a large number of approximate images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117593397B_ABST
    Figure CN117593397B_ABST
Patent Text Reader

Abstract

This invention provides a situation-invariant remote sensing image generation method based on a diffusion model, belonging to the field of remote sensing image generation. First, data preprocessing is performed, including keypoint annotation of the remote sensing image. Second, an Hourglass network is constructed, consisting of three Hourglass modules connected in series. Then, keypoint and keyline detection is performed to obtain a situation detection tensor. Next, a multi-level cross-attention module is built, including a three-level cross-attention calculation process, to calculate the attention vector. Finally, a remote sensing image is selected, and a textual statement is written to generate a situation-invariant image. This invention incorporates the situation of a reference image into the image generation process, significantly improving the controllability, success rate, and efficiency of remote sensing image generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of remote sensing image generation, and more specifically relates to a situation-invariant remote sensing image generation method based on a diffusion model. Background Technology

[0002] Remote sensing image generation can provide diverse training data for remote sensing image analysis and test data for image interpretation algorithms, showing broad application prospects. However, how to generate stable and controllable images is a pressing problem that current diffusion-based image generation models need to solve. In the field of natural scene image generation, researchers can eliminate facial distortion by redrawing faces, arranging and scaling facial features appropriately, making the faces more realistic and natural. In the field of remote sensing image generation, to generate remote sensing images containing a certain type of target according to a certain situational distribution, a common approach is to continuously modify the prompts, generate a large number of approximate images, and select the one that best meets the requirements. This approach is not only inefficient but also has a low success rate. Therefore, incorporating the situational distribution of a reference image into the image generation process will significantly improve the controllability, success rate, and efficiency of remote sensing image generation. Summary of the Invention

[0003] The purpose of this invention is to improve the efficiency of remote sensing image generation. Based on reference images and prompts, a stable and controllable remote sensing image with a specified situation is generated. A situation-invariant remote sensing image generation method based on a diffusion model is proposed.

[0004] The technical solution adopted in this invention is as follows:

[0005] A situation-invariant remote sensing image generation method based on a diffusion model includes the following steps:

[0006] Step 1, Data Preprocessing: Keypoints are labeled in the remote sensing images. Keypoints include the position coordinates of the nose, fuselage, wings, and tail of aircraft targets, and the position coordinates of the bow, deck, hull number, and stern of ships. Keypoints with structural dependencies are connected by key lines. The keypoints and key lines form a graph describing the target situation. The graph describing the target situation is then converted into an adjacency matrix, and the keypoints are mapped to a heat map using a Gaussian kernel function. The heat map and the adjacency matrix are then concatenated to form a situation tensor.

[0007] Step 2: Construct the Hourglass network, which includes three Hourglass modules connected in series. Each Hourglass module includes a convolutional path and a skip path. The convolutional path contains three convolutional layers, followed by a pooling layer after each convolutional layer. The skip path contains a convolutional layer with a kernel size of 1. The pooling layer uses focal pooling and adds a ReLU activation layer after focal pooling.

[0008] Step 3, Key Point and Key Line Detection: Input the situation tensor into the Hourglass network, the Hourglass network outputs the situation detection tensor, and set the loss function to the focal loss between the situation tensor and the output situation detection tensor. Minimize the loss function through the Adam optimization algorithm, update the parameters in the Hourglass network until training converges, and obtain the trained Hourglass network. The situation detection tensor is obtained through the trained Hourglass network.

[0009] Step 4: Construct a multi-level cross-attention module. The input to the multi-level cross-attention module is a noise vector, a situation vector, and a text vector. After three levels of cross-attention calculation, the attention vector is obtained. Among them, the noise vector, situation vector, and text vector are vectors obtained by passing the random noise graph, situation detection tensor, and text tensor through a linear layer, respectively. The random noise graph is a randomly generated random noise matrix with the same size as the situation detection tensor. The text tensor is generated by encoding a descriptive text language through the CLIP large language model.

[0010] Step 5: Build a denoising network. The denoising network consists of two parts: network structure and denoising strategy. The network structure adopts UNet network. The input of the network is attention vector and the output is generated remote sensing image. The denoising strategy adopts DDIM denoising method.

[0011] Step 6: The attention vector is passed through a denoising network to generate a remote sensing image. The situation map of the generated remote sensing image is the same as that of the selected remote sensing image.

[0012] Furthermore, the adjacency matrix in step 1 is a 0-1 square matrix with dimensions equal to the maximum value of the keypoints. Since the maximum number of keypoints in a remote sensing image is set to 128, the adjacency matrix is ​​a 128×128 square matrix. When the i-th keypoint has a dependency relationship with the j-th keypoint, the element L in the square matrix... i,j =1, otherwise L i,j =0, and set the size of the heatmap to 128×128.

[0013] Furthermore, the focus pooling in step 2 includes four one-way max pooling operations and one addition operation. The four one-way max pooling operations are right-to-left max pooling, bottom-to-top max pooling, bottom-right-to-top-left max pooling, and bottom-left-to-top-right max pooling. The results of the four one-way pooling operations are added pixel by pixel to obtain the focus pooling result.

[0014] Furthermore, the three-level cross-attention calculation process described in step 4 is as follows:

[0015] The first stage involves performing attention calculations on the situation vector and the noise vector to obtain vector A. The situation vector is then transformed linearly to obtain Q. 1 The matrix and noise vector are linearly transformed to obtain K. 1 Matrix and V 1 Matrix, then

[0016]

[0017] In the formula, d k Q represents 1 The dimension of the matrix;

[0018] The second stage involves performing attention calculations on the noise vector and the text vector to obtain vector B, and then performing a linear transformation on the noise vector to obtain Q. 2 K is obtained from a matrix and text vectors through a linear transformation. 2 Matrix and V 2 matrix;

[0019] The third level involves performing attention calculations on the text vector and the situation vector to obtain vector C, and then performing a linear transformation on the text vector to obtain Q. 3 The matrix and situation vector are linearly transformed to obtain K. 3 Matrix and V 3 matrix;

[0020] The attention vector is obtained by adding vectors A, B, and C pixel by pixel.

[0021] The advantages of this invention over the prior art are:

[0022] (1) It can provide diverse training data for remote sensing image analysis and test data for image interpretation algorithms;

[0023] (2) It can generate remote sensing images of a specified situation based on reference images and prompt words;

[0024] (3) It can avoid generating a large number of approximate images in order to select the most suitable image, thus improving the generation efficiency. Attached Figure Description

[0025] Figure 1 This is a flowchart of the state-invariant image generation process proposed in this invention.

[0026] Figure 2 This is a schematic diagram of the focus pooling operation proposed in this invention.

[0027] Figure 3 This is a structural diagram of the multi-level cross-attention module proposed in this invention. Detailed Implementation

[0028] This invention proposes a situation-invariant remote sensing image generation method based on a diffusion model.

[0029] The specific embodiments and basic principles of the present invention will be further described below with reference to the accompanying drawings.

[0030] A situation-invariant remote sensing image generation method based on a diffusion model, such as Figure 1 As shown, it includes the following steps:

[0031] Step 1: Data preprocessing. Keypoint annotation is performed on the remote sensing image. Keypoints include the position coordinates of the nose, fuselage, wings, and tail of aircraft targets, and the position coordinates of the bow, deck, hull number, and stern of ships. Position coordinates are represented by (x, y), where x is the horizontal axis coordinate and y is the vertical axis coordinate. Keypoints with structural dependencies are connected by keylines. Keypoints and keylines form a graph describing the target situation. The graph is converted into an adjacency matrix, which is a 0-1 square matrix with the dimension being the maximum value of the keypoints. In this invention, the maximum number of keypoints in a remote sensing image is set to 128, so the adjacency matrix is ​​a 128×128 square matrix. When the i-th keypoint is dependent on the j-th keypoint, the element L in the matrix is... i,j =1, otherwise L i,j =0, and simultaneously map key points to a heatmap using a Gaussian kernel function. Set the size of the heatmap to 128×128, the size of the adjacency matrix to 128×128, and concatenate the heatmap and adjacency matrix into a 128×128×2 situation tensor;

[0032] Step 2: Construct the Hourglass network by connecting three Hourglass modules in series. Each Hourglass module includes a convolutional path and a skip path. The convolutional path contains three convolutional layers, each followed by a pooling layer. The skip path contains only one convolutional layer with a kernel size of 1. This invention uses focal pooling to replace max pooling in the pooling layer, and adds a ReLU activation layer after the focal pooling layer. The focal pooling includes four unidirectional max pooling operations and one addition operation, as shown below. Figure 2 The four unidirectional max pooling operations are right-to-left max pooling, bottom-to-top max pooling, bottom-right-to-left max pooling, and bottom-left-to-right max pooling. The results of the four unidirectional pooling operations are added pixel by pixel to obtain the focus pooling result.

[0033] Step 3, key point and key line detection: Input the situation tensor into the Hourglass network. The Hourglass network outputs the situation detection tensor. The loss function is the focal loss between the situation tensor and the output situation detection tensor. Minimize the loss function through the Adam optimization algorithm and update the parameters in the Hourglass network until the training converges to obtain the trained Hourglass network. The situation detection tensor is obtained through the trained Hourglass network.

[0034] Step 4: Construct a multi-level cross-attention module. The input to the multi-level cross-attention module is a noise vector, a situation vector, and a text vector. The noise vector, situation vector, and text vector are obtained by passing the random noise map, situation detection tensor, and text tensor through a linear layer, respectively. The random noise map is a randomly generated random noise matrix with the same size as the situation detection tensor. The text tensor is generated by encoding a descriptive text using the CLIP large language model. The multi-level cross-attention module includes a three-level cross-attention calculation process to obtain the attention vector. The three-level cross-attention calculation process is as follows: Figure 3 Specifically:

[0035] The first stage involves performing attention calculations on the situation vector and the noise vector to obtain vector A. The situation vector is then transformed linearly to obtain Q. 1 The matrix and noise vector are linearly transformed to obtain K. 1 Matrix and V 1 Matrix, then

[0036]

[0037] In the formula, d k Q represents 1 The dimension of the matrix;

[0038] The second stage involves performing attention calculations on the noise vector and the text vector to obtain vector B, and then performing a linear transformation on the noise vector to obtain Q. 2 K is obtained from a matrix and text vectors through a linear transformation. 2 Matrix and V 2 matrix;

[0039] The third level involves performing attention calculations on the text vector and the situation vector to obtain vector C, and then performing a linear transformation on the text vector to obtain Q. 3 The matrix and situation vector are linearly transformed to obtain K. 3 Matrix and V 3 matrix;

[0040] The attention vector is obtained by adding vectors A, B, and C pixel by pixel.

[0041] Step 5: Build a denoising network. The denoising network consists of two parts: network structure and denoising strategy. The network structure adopts UNet network. The input of the network is attention vector and the output is generated remote sensing image. The denoising strategy adopts DDIM denoising method.

[0042] Step 6: The attention vector is passed through a denoising network to generate a remote sensing image. The situational map of this image is the same as that of the selected remote sensing image.

Claims

1. A situation-invariant remote sensing image generation method based on a diffusion model, characterized in that, Includes the following steps: Step 1, Data Preprocessing: Keypoints are labeled in the remote sensing images. Keypoints include the position coordinates of the nose, fuselage, wings, and tail of aircraft targets, and the position coordinates of the bow, deck, hull number, and stern of ships. Keypoints with structural dependencies are connected by key lines. The keypoints and key lines form a graph describing the target situation. The graph describing the target situation is then converted into an adjacency matrix, and the keypoints are mapped to a heat map using a Gaussian kernel function. The heat map and the adjacency matrix are then concatenated to form a situation tensor. Step 2: Construct the Hourglass network, which includes three Hourglass modules connected in series. Each Hourglass module includes a convolutional path and a skip path. The convolutional path contains three convolutional layers, followed by a pooling layer after each convolutional layer. The skip path contains a convolutional layer with a kernel size of 1. The pooling layer uses focal pooling and adds a ReLU activation layer after focal pooling. Step 3, Key Point and Key Line Detection: Input the situation tensor into the Hourglass network, the Hourglass network outputs the situation detection tensor, and set the loss function to the focal loss between the situation tensor and the output situation detection tensor. Minimize the loss function through the Adam optimization algorithm, update the parameters in the Hourglass network until training converges, and obtain the trained Hourglass network. The situation detection tensor is obtained through the trained Hourglass network. Step 4: Construct a multi-level cross-attention module. The input to the multi-level cross-attention module is a noise vector, a situation vector, and a text vector. After three levels of cross-attention calculation, the attention vector is obtained. Among them, the noise vector, situation vector, and text vector are vectors obtained by passing the random noise graph, situation detection tensor, and text tensor through a linear layer, respectively. The random noise graph is a randomly generated random noise matrix with the same size as the situation detection tensor. The text tensor is generated by encoding a descriptive text language through the CLIP large language model. Step 5: Build a denoising network. The denoising network consists of two parts: network structure and denoising strategy. The network structure adopts UNet network. The input of the network is attention vector and the output is generated remote sensing image. The denoising strategy adopts DDIM denoising method. Step 6: The attention vector is passed through a denoising network to generate a remote sensing image. The situation map of the generated remote sensing image is the same as that of the selected remote sensing image.

2. The situation-invariant remote sensing image generation method based on a diffusion model according to claim 1, characterized in that, The adjacency matrix in step 1 is a 01 square matrix, the dimension of which is the maximum value of the key points, and the upper limit of the number of key points of a remote sensing image is set to 128, so the adjacency matrix is a 128*128 square matrix, when the i th key point has a dependent relationship with the j th key point, the element L i,j =1 in the square matrix, otherwise L i,j =0, and the size of the hotspot map is set to 128*128.

3. The situation-invariant remote sensing image generation method based on a diffusion model according to claim 1, characterized in that, The focus pooling described in step 2 includes four one-way max pooling operations and one addition operation. The four one-way max pooling operations are right-to-left max pooling, bottom-to-top max pooling, bottom-right-to-top-left max pooling, and bottom-left-to-top-right max pooling. The results of the four one-way pooling operations are added pixel by pixel to obtain the focus pooling result.

4. The situation-invariant remote sensing image generation method based on a diffusion model according to claim 1, characterized in that, The three-level cross-attention calculation process described in step 4 is as follows: The first stage involves performing attention calculations on the situation vector and the noise vector to obtain vector A. The situation vector is then transformed linearly to obtain Q. 1 The matrix and noise vector are linearly transformed to obtain K. 1 Matrix and V 1 Matrix, then In the formula, d k Q represents 1 The dimension of the matrix; The second stage involves performing attention calculations on the noise vector and the text vector to obtain vector B, and then performing a linear transformation on the noise vector to obtain Q. 2 K is obtained from a matrix and text vectors through a linear transformation. 2 Matrix and V 2 matrix; The third level involves performing attention calculations on the text vector and the situation vector to obtain vector C, and then performing a linear transformation on the text vector to obtain Q. 3 The matrix and situation vector are linearly transformed to obtain K. 3 Matrix and V 3 matrix; The attention vector is obtained by adding vectors A, B, and C pixel by pixel.

Citation Information

Patent Citations

  • Human face key feature point detection device and method and storage medium

    CN112801069A

  • Three-dimensional reconstruction method in two-hand interaction state

    CN113888697A