Hint-decoupled text-to-large-scene remote sensing image generation method

Through dual generation pipelines and a layout-focused adversarial training method, decoupling text to target and background generation in remote sensing image generation solves the problems of poor generation quality and texture confusion in the existing technology, achieving high quality and semantic consistency Remote sensing image generation.

CN118587326BActive Publication Date: 2024-10-01DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411070297.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-10-01
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

In existing text-to-remote sensing image generation methods, the foreground and background textures of the generated images are easily confused, and the structure and texture of the remote sensing target cannot be effectively preserved, resulting in poor generation quality.

Method used

A prompt decoupling text-to-large-scene remote sensing image generation method is designed. It adopts a dual generation pipeline structure and an adversarial training method that focuses on layout. The input text is decomposed into target and background parts through the model prompt decoupling strategy, and the targets are generated respectively. and background features, and fuse the two through an adaptive ensemble generator to improve the semantic consistency and quality of the generated images.

Benefits of technology

It effectively improves the quality and semantic consistency of text to large scene remote sensing image generation, avoids confusion of foreground and background textures, and generates remote sensing images that are realistic and match the input text.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587326B_ABST
    Figure CN118587326B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of image information processing, and discloses a prompt-decoupled text-to-large-scene remote sensing image generation method, constructs two generation pipelines based on a background generator and a target generator, designs an adversarial training method that focuses on layout to improve generation quality, and proposes a model prompt decoupling strategy, which cooperates with a dual-pipeline design to process input text, thereby improving the semantic consistency between the generated image and the input text. The present invention alleviates many problems existing in existing text-to-remote sensing image generation research, such as the easy confusion of the textures of the foreground and background of the generated image, and the failure to effectively retain the structure and texture of the remote sensing target. Using the decoupled generation framework and the corresponding training method proposed in the present invention, more realistic large-scale scene remote sensing images can be generated, and the output image has a higher semantic consistency with the input text.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of image information processing, and relates to a method for generating a large-scene remote sensing image using text, in particular to a method for generating a large-scene remote sensing image from text with prompt decoupling. Background Art

[0002] At present, the technology related to the present invention includes two aspects: the first is the text-to-image generation algorithm; the second is the model prompt design method.

[0003] The text-to-image generation algorithms in the field of deep learning are mainly divided into three categories: GAN-based, autoregressive model-based, and diffusion model-based methods. Among them, autoregressive model and diffusion model methods have developed rapidly in recent years and have shown strong image generation capabilities. Ramesh et al. proposed a series of autoregressive model-based methods such as DALLE in the paper "Zero-shot text-to-image generation". First, the 2D image is encoded into a one-dimensional token sequence, and then autoregressive training and prediction are performed based on the token sequence. The diffusion model gradually samples images from noise and has become the mainstream choice for text-to-image generation tasks. Although these two types of models can generate higher quality images, they also have the disadvantages of slow generation speed and high resource consumption. In contrast, GAN-based methods have the unique advantages of fast generation speed and low computational cost. Most of the early text-to-image generation tasks are based on GAN design. Retaining the unique advantages of GAN while improving the quality of generated images has become an important research direction in recent years. Compared with natural image generation, text-based generation of real and more practical remote sensing images is more challenging, but existing related research is still in its infancy. Xu et al. proposed using modern HOPIFILED networks to obtain representations containing more complex semantic information to generate complex remote sensing images in the paper "Txt2Img-MHN: Remote sensing image generation from text using modern hopfield networks", but did not effectively preserve the structure and texture of the target. Zhao et al. introduced an additional unsupervised segmentation module in the paper "Text-to-remote-sensing-image generation with SStructured generative adversarial networks", which made the generator pay more attention to the structure of the remote sensing image, but the texture of the foreground and background of the generated image was easily confused.

[0004] The design of model prompts is crucial in model training and user-model interaction, and even slight changes can have a significant impact on model results. In the text-to-image generation task, recent studies have shown that an appropriate prompt can promote image generation. For example, Wang et al. designed a new prompt mode that combines text and query images in the paper "In-context learning unlocked for diffusion models", which activated the contextual learning ability of the diffusion model and improved the image generation quality.

[0005] Current research on text-to-remote sensing image generation still has many problems, such as the textures of the foreground and background of the generated image are easily confused, and the structure and texture of the remote sensing target are not effectively preserved. These problems are often caused by the model's failure to pay attention to the large-scale scene characteristics of remote sensing images. In contrast, our method designs a decoupled generation strategy based on the uniqueness of remote sensing images, sets up two generation pipelines for target generation and background generation, and introduces a training method that retains layout knowledge, and finally generates realistic remote sensing large-scene images based on input text. In conjunction with this decoupled generation framework, on the one hand, inspired by the design idea of ​​model prompts, we focus on the obvious correspondence between various sentence components in the model prompts and the targets and backgrounds of the generated images, and thus design a model prompt decoupling strategy to generate real images that better match the input model prompts. On the other hand, for background generation, we capture and retain the layout knowledge that is prevalent in large-scene remote sensing images, and design an adversarial training method that focuses on layout to improve the background quality of generated images. Summary of the invention

[0006] In order to solve the problems of poor target generation quality and easy confusion between background and target textures in text-to-large-scene remote sensing image generation, a prompt-decoupled text-to-large-scene remote sensing image generation method is proposed. We construct two generation pipelines based on background generator and target generator, design an adversarial training method that focuses on layout to improve generation quality, and propose a model prompt decoupling strategy to process input text with a dual-pipeline design, which improves the semantic consistency between the generated image and the input text.

[0007] The technical solution of the present invention:

[0008] A method for generating remote sensing images from text to large scenes with decoupled prompts is specifically a high-quality remote sensing image generation framework using a decoupled dual generation pipeline. The steps are as follows:

[0009] The entire generation framework is mainly divided into a model-prompt decoupling strategy, a dual generation pipeline structure, and an adversarial training method that focuses on layout;

[0010] (1) Model prompt decoupling strategy

[0011] Model prompts have a huge impact on the final output of the image generation model, so the proposed method first designs a model prompt decoupling strategy to decouple the input model prompts. On the one hand, this strategy cooperates with the dual generation pipeline structure to provide input for the two generation pipelines, so that the two generation pipelines pay more attention to their own generation content. On the other hand, it improves the semantic consistency between the generation results and the text.

[0012] Specifically, for an input text, we first use the existing text analysis algorithm to disassemble the syntactic components of the text and select the target short sentences from it; such as "Two stadiums", "Many boats", etc. Then, we replace the position of the target short sentence in the input text with a special string representing "empty", where the capital letter "X" is used; the target short sentence is used as the generation condition of the target generator, and the remaining prepositional phrases and adverbials in the text after removing the target short sentence still contain rich layout and orientation information, so they can be used as the generation condition of the background generator; next, we use the contrastive language-image pre-training CLIP text encoder The target short sentence and the text after the target short sentence is removed are encoded, and finally the target model prompt and the background model prompt are obtained; the process of the model prompt decoupling strategy is as follows:

[0013] (1)

[0014] in, Represents input text, is a text analysis algorithm, and They are target model prompt and background model prompt respectively;

[0015] (2) Dual generation pipeline structure

[0016] In order to alleviate the pressure of the model to learn complex and large-scene remote sensing images and improve the generation quality, we propose to split and decouple the target generation process and background generation process of remote sensing images; the dual generation pipeline structure designed based on this is divided into a target generator, a background generator and an adaptive integrated generator, as well as the discriminators corresponding to each of the three.

[0017] The target generator is a random sequence of standard normal distribution and the target model prompt As input, and output the target intermediate generated features , similarly, the background generator is a random sequence of standard normal distribution and the background model prompt As input, and output background intermediate generation features The two generators have the same structure, both consisting of four generated convolution blocks. Each generated convolution block consists of a text fusion module-convolution layer-text fusion module-convolution layer-upsampling layer structure. The input is processed by four generated convolution blocks and finally becomes 64 64-size intermediate features; the internal structure of the text fusion module in the generated convolution block is: affine transformation layer-leaky linear rectification layer-affine transformation layer-leaky linear rectification layer, which is responsible for more fully integrating the knowledge prompted by the model into the intermediate generated features. The two discriminators corresponding to the target generator and the background generator also have the same structure, consisting of four discriminative convolution blocks, and the internal structure of each discriminative convolution block is: convolution layer-leaky linear rectification layer-convolution layer-leaky linear rectification layer. The design of the above target generator, background generator and discriminator refers to the model proposed by Tao et al. in the document "GALIP: Generative AdversarialCLIPs for Text-to-Image Synthesis".

[0018] The target intermediate generated features and background intermediate features generated by the target generator and background generator contain rich target information and background information respectively. The adaptive integrated generator is designed to fuse the information of the two to avoid loss. The adaptive integrated generator consists of a fusion module and two generated convolution blocks. The corresponding discriminator structure is the same as that of the target and background generators. The fusion module first generates the target intermediate features. and background intermediate generation features Fusion, then the fused features are processed by two generated convolution blocks to finally obtain the generated image; the fusion module of the adaptive ensemble generator is mainly composed of the attention mechanism block, and its processing flow is expressed as follows:

[0019] (2)

[0020] in, Represents a splicing operation, To generate the conditions, we concatenate the standard normal distribution random sequence and the prompt. is the channel attention block, Representative 1 1 convolution, is a linear rectification function, That is the fusion feature;

[0021] (3) Focus on layout-based adversarial training methods

[0022] Decoupling the generation of targets and backgrounds effectively reduces the learning pressure of the model. To further improve the generation quality of the model, we introduce an adversarial training method that focuses on layout. Specifically, in order to obtain the layout knowledge in the training images, a pre-trained remote sensing target detection model (using the model proposed by Wang et al. in the paper "Advancing Plain Vision Transformer Towards Remote Sensing Foundation Model") is used to train each original training sample in the public text-remote sensing image training set NWPU-Captions. Then, the target detection results in the original training samples are extracted as target training samples. The original training sample after being cut still contains layout information, but it is no longer complete and cannot be used directly. Therefore, we count the pixel values ​​with the highest frequency around the cut target, use this pixel value to fill the cut area in the original training sample, and then Gaussian blur the original training sample as the background training sample. .

[0023] Finally, the target training samples, background training samples, and original training samples, as well as background and target model prompts, are used to conduct adversarial training on the generator and discriminator at all levels. To facilitate training, we temporarily add two generative convolution blocks to the target generator so that the target intermediate generated features Finally, it is processed to generate the target sample After training is completed, these two temporary convolution blocks will be removed when the network is actually used to generate images. Training loss And the corresponding discriminator Training loss as follows:

[0024] (3)

[0025] (4)

[0026] in, E x ~p [f(x)] Representative function The mathematical expectation of satisfy distributed; Representative and The maximum value in ; is the target training sample data distribution, To generate the data distribution of the target sample, For Mismatched model prompts, It is a MAGP loss that stabilizes the training process.

[0027] Likewise, two generative convolutional blocks are temporarily added to the background generator. Background generator Training loss And the corresponding discriminator Training loss as follows:

[0028] (5)

[0029] (6)

[0030] in, is the background training sample data distribution, To generate the data distribution of background samples, For Mismatched model prompts, To generate background samples.

[0031] Adaptive Ensemble Generator Training loss And the corresponding discriminator Training loss as follows:

[0032] (7)

[0033] (8)

[0034] in, is the original training sample data distribution, for The text description corresponding to the sample is the original model prompt obtained after CLIP processing. To generate the data distribution of samples, For samples Mismatched model prompts, To generate samples.

[0035] Beneficial effects of the present invention: The prompt-decoupled text-to-large-scene remote sensing image generation method of the present invention uses a decoupled approach to perform target generation and background generation, and finally designs an adaptive integrated generator to fuse the target and background generation results to obtain realistic remote sensing images. The existing text-to-remote sensing image generation and distribution have problems such as low target generation quality and background layout loss. The decoupled generation of the present invention effectively improves these problems and can improve the generation quality and semantic consistency of text-to-large-scene remote sensing image generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 This is the overall structure diagram of the network.

[0037] Figure 2 Schematic diagram of the adaptive ensemble generator structure.

[0038] Figure 3 Schematic diagram of the adversarial training process for attention layout.

[0039] Figure 4 It is a schematic diagram showing the actual demonstration of the use stage of the present invention. DETAILED DESCRIPTION

[0040] The specific implementation of the present invention is further described below in conjunction with the accompanying drawings and technical solutions.

[0041] The implementation of the present invention needs to be divided into a training phase and a use phase after the training is completed.

[0042] Figure 1 The overall structure diagram of the network is shown in Figure 2. The entire network can be divided into model prompt decoupling and dual generation pipelines. In the training phase, the model prompt decoupling strategy is first executed, and a text analysis algorithm is introduced to decouple the input text to obtain the target model prompt and the background model prompt. The process can be summarized as formula (1). Subsequently, a one-dimensional random sequence that conforms to the standard normal distribution is generated, and is concatenated with the target model prompt and the background model prompt respectively to obtain the input conditions, which are input into the target generator and the background generator respectively. The two generators are responsible for generating high-quality intermediate generation features. Their training method adopts adversarial training that focuses on layout. The specific process is as follows: Figure 3 As shown. The target generator and background generator perform adversarial learning with their respective discriminators. The training loss formula is shown in equations (3), (4), (5), and (6). Finally, the adaptive integrated generator is used to fuse the intermediate features of the target and background, and the final convolution and upsampling are performed to finally obtain the generated image. Its structure is shown in Figure 2 As shown in Figure 2, the adaptive ensemble generator also performs adversarial learning with a discriminator and is updated according to equations (7) and (8).

[0043] In the use stage, the user only needs to input a descriptive text to obtain the output remote sensing image that matches the text. The actual demonstration diagram of the use stage is shown in Figure 4 In this example, we first input the descriptive text "The stadium is on a block and a road goes through the block." This means that a stadium is on a block and a road goes through the block. After the model prompts the decoupling strategy and the target and background generators, we can obtain the intermediate generated features of the target and background. Figure 4(b). Finally, after being processed by the adaptive integrated generator, the generated remote sensing image can be obtained. Figure 4 (c). It can be observed that the main goal of generating remote sensing images, that is, the shape of the stadium is well maintained without obvious deformation, and the blocks and roads can be observed, and the layout information is retained, which is consistent with the input text description, proving the effectiveness of the invention.

Claims

1. A prompt-decoupled text-to-large-scene remote sensing image generation method, It is characterized in that The method for generating remote sensing images from text to large scenes with decoupled prompts is to use the decoupled dual generation pipeline structure to generate remote sensing images. The steps are as follows: The entire remote sensing image generation framework is mainly divided into a model-prompt decoupling strategy, a dual generation pipeline structure, and an adversarial training method that focuses on layout; (1) Model prompt decoupling strategy Design a model prompt decoupling strategy to decouple the input model prompt: for an input text, first use the text analysis algorithm to disassemble the syntactic components of the text and select the target short sentence from it; then replace the position of the target short sentence in the input text with a string representing "empty", where the capital letter "X" is used; the target short sentence is used as the generation condition of the target generator; in the text without the target short sentence, the remaining prepositional phrases and adverbials still contain rich layout and orientation information, which are used as the generation condition of the background generator; then use the contrastive language-image pretraining CLIP text encoder The target short sentence and the text after the target short sentence is removed are encoded, and finally the target model prompt and the background model prompt are obtained; the process of the model prompt decoupling strategy is as follows: (1) in, Represents input text, is a text analysis algorithm, and They are target model prompt and background model prompt respectively; (2) Dual generation pipeline structure The dual generation pipeline structure designed based on the decoupling of the target generation process and the background generation process of remote sensing images is divided into a target generator, a background generator and an adaptive integrated generator, as well as the corresponding discriminators of the three. The target generator is a random sequence of standard normal distribution and the target model prompt As input, output target intermediate generated features ; Similarly, the background generator uses a standard normal distribution random sequence and background model prompts As input, output background intermediate generation features The target generator and the background generator have the same structure, both of which are composed of four generated convolution blocks. Each generated convolution block consists of a text fusion module-convolution layer-text fusion module-convolution layer-upsampling layer structure. The input is processed by four generated convolution blocks and finally becomes 64 64-size intermediate features; the internal structure of the text fusion module in the generated convolution block is: affine transformation layer-leaky linear rectification layer-affine transformation layer-leaky linear rectification layer, which is responsible for more fully integrating the knowledge prompted by the model into the intermediate generated features; the two discriminators corresponding to the target generator and the background generator also have the same structure, consisting of four discriminative convolution blocks, and the internal structure of each discriminative convolution block is convolution layer-leaky linear rectification layer-convolution layer-leaky linear rectification layer; The target intermediate generated features and background intermediate features generated by the target generator and the background generator contain rich target information and background information respectively. Then, the information of the target generator and the background generator is fused by designing an adaptive integrated generator to avoid loss. The adaptive integrated generator consists of a fusion module and two generated convolution blocks. The corresponding discriminator structure is the same as that of the target generator and the background generator. The fusion module first generates the target intermediate features. and background intermediate generation features Fusion, then the fused features are processed by two generated convolution blocks to finally obtain the generated image; the fusion module of the adaptive ensemble generator is mainly composed of the attention mechanism block, and its processing flow is expressed as follows: (2) in, Represents a splicing operation, To generate the conditions, we concatenate the standard normal distribution random sequence and the prompt. is the channel attention block, Representative 1 1 convolution, is a linear rectification function, That is the fusion feature; (3) Focus on layout-based adversarial training methods Layout-focused adversarial training method: In order to obtain layout knowledge in training images, a pre-trained remote sensing target detection model is used to train each original training sample in the public text-remote sensing image training set NWPU-Captions. Perform target detection; then extract the target detection results in the original training sample as the target training sample The original training sample after being intercepted still contains layout information, but it is no longer complete and cannot be used directly. It is necessary to count the pixel values ​​with the highest frequency around the intercepted target, use this pixel value to fill the intercepted area in the original training sample, and then perform Gaussian blur on the original training sample to use as the background training sample ; Finally, the target training samples, background training samples and original training samples, as well as the background model prompts and target model prompts, are used to conduct adversarial training on each generator and discriminator; in order to facilitate training, two generative convolution blocks are temporarily added to the target generator so that the target intermediate generated features Finally, it is processed to generate the target sample After training is complete, the two temporary generative convolutional blocks are removed when the network is actually used to generate images; the target generator Training loss And the corresponding discriminator Training loss as follows: (3) (4) in, Representative function The mathematical expectation of satisfy distributed; Representative and The maximum value in ; is the target training sample data distribution, To generate the data distribution of the target sample, For Mismatched model prompts, It is a MAGP loss that stabilizes the training process; Similarly, two generative convolutional blocks are temporarily added to the background generator. Training loss And the corresponding discriminator Training loss as follows: (5) (6) in, is the background training sample data distribution, To generate the data distribution of background samples, For Mismatched model prompts, To generate background samples; Adaptive Ensemble Generator Training loss And the corresponding discriminator Training loss as follows: (7) (8) in, is the original training sample data distribution, For sample The corresponding text description is the original model prompt obtained after CLIP processing. To generate the data distribution of samples, For samples Mismatched model prompts, To generate samples.