Image super-resolution method and system based on information guide diffusion model

Through the information-guided diffusion model, image repair prompts and advanced semantic prompt text are used to enhance image features, which solves the shortcomings of the generative adversarial network in local texture processing and achieves an improvement in the fineness and realism of image super-resolution.

CN118799188AInactive Publication Date: 2024-10-18JIANGXI NORMAL UNIV

Patent Information

Application Number
CN202411282161.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing image super-resolution methods based on generative adversarial networks have defects in local texture, resulting in over-smoothing or artifacts in the reconstructed image and inability to reconstruct realistic local texture, affecting image quality and visual effects.

Method used

Design an image super-resolution method based on the information-guided diffusion model. The image repair prompt generation module and the multi-modal semantic prior guidance module generate the repair prompt text and the advanced semantic prompt text, enhance the complex features and detailed features of the image, and avoid Features that are not in line with human perception and understanding improve the fidelity of the image.

Benefits of technology

The fineness and fidelity of image super-resolution are significantly improved. The generated high-resolution images are more in line with the characteristics of the real world. The local texture quality is greatly improved, and the problems of over-smoothing and artifacts are avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799188A_ABST
    Figure CN118799188A_ABST
Patent Text Reader

Abstract

The invention relates to the field of image processing, and provides an image super-resolution method and system based on an information-guided diffusion model, and the method comprises the steps: generating a restoration prompt text through designing an image restoration prompt generation module, and carrying out the accurate alignment of basic image features and corresponding degradation prompts, in order to enhance the complex features and detail features of the super-resolution generated image and greatly improve the local texture quality of the generated image, a modal semantic priori guidance module is designed to generate a high-level semantic prompt text, so that the generated image better conforms to the features of the real world, the features which do not conform to the perception and understanding of human beings are avoided, and the image quality is improved. And finally, diffusion reduction processing is performed through the diffusion model according to the prompt text, so that the fineness and the fidelity of the super-resolution of the image are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and in particular to an image super-resolution method and system based on an information guided diffusion model. Background Art

[0002] With the rapid development of computer image processing technology, the requirements for image quality are increasing dramatically, especially the clarity and fineness of the image. Therefore, the super-resolution processing method of obtaining high-resolution images from low-resolution images has gradually become an extremely important part in the field of image processing.

[0003] In the prior art, super-resolution processing of low-resolution images is usually achieved through generative adversarial networks. Super-resolution reconstruction not only needs to restore the global structure of the image, but also needs to reconstruct fine local textures. However, the existing super-resolution methods based on generative adversarial networks still have defects in local textures. Due to the domain gap between the synthetic characteristics of the training data and the actual test data, and the optimization goal is too focused on fidelity and ignores the realism of texture details, the super-resolution methods based on generative adversarial networks will produce excessive smoothing or artifacts when processing local texture details, and cannot reconstruct realistic local textures, thereby affecting the quality and visual effects of the reconstructed image.

[0004] Therefore, how to design an image super-resolution method to improve the fineness and realism of images reconstructed by the super-resolution method. Summary of the invention

[0005] Based on this, the purpose of the present invention is to provide an image super-resolution method and system based on an information-guided diffusion model. By designing an image restoration prompt generation module to generate restoration prompt text, the basic image features and the corresponding degradation prompts are accurately aligned to enhance the complex features and detail features of the super-resolution generated image, greatly improving the local texture quality of the generated image, and designing a modal semantic prior guidance module to generate high-level semantic prompt text, so that the generated image is more consistent with the characteristics of the real world, avoiding the appearance of features that are inconsistent with human perception and understanding, greatly improving the realism of the generated image, and finally performing diffusion restoration processing according to the prompt text through the diffusion model. The present invention greatly improves the fineness and realism of the image super-resolution.

[0006] The present invention proposes an image super-resolution method based on an information-guided diffusion model, comprising: Obtaining a low-resolution image to be processed, and inputting the image into an image restoration prompt generation module and a multimodal semantic prior guidance module, respectively, wherein the image restoration prompt generation module is used to describe the degradation process and generate a prompt text corresponding to the degradation type, and the multimodal semantic prior guidance module is used to extract key features and generate a description text of the corresponding key features; The image repair prompt generating module generates a repair prompt text according to the low-resolution image; The multimodal semantic prior guidance module generates an image tag according to the low-resolution image to generate a high-level semantic prompt text according to the image tag; The low-resolution image, the restoration hint text, and the high-level semantic hint text are input into a pre-trained diffusion model to generate a high-resolution image.

[0007] In summary, according to the above-mentioned image super-resolution method based on the information-guided diffusion model, an image restoration prompt generation module is designed to generate restoration prompt text, and the basic image features and the corresponding degradation prompts are accurately aligned to enhance the complex features and detail features of the super-resolution generated image, thereby greatly improving the local texture quality of the generated image. A modal semantic prior guidance module is designed to generate high-level semantic prompt text, so that the generated image is more consistent with the characteristics of the real world, avoiding the appearance of features that are inconsistent with human perception and understanding, and greatly improving the realism of the generated image. Finally, the diffusion model is used to perform diffusion restoration processing according to the prompt text. The present invention greatly improves the fineness and realism of the image super-resolution. Specifically, a low-resolution image to be processed is obtained, and is input into an image restoration prompt generation module and a multimodal semantic prior guidance module respectively, wherein the image restoration prompt generation module is used to describe the degradation process and generate a prompt text corresponding to the degradation type, and the multimodal semantic prior guidance module is used to extract key features and generate a description text of the corresponding key features. The image restoration prompt generation module generates a restoration prompt text according to the low-resolution image, which greatly optimizes the image generation effect and improves the fineness of the generated image. The multimodal semantic prior guidance module generates an image label according to the low-resolution image to generate a high-level semantic prompt text according to the image label, so that the acquired image description is more in line with human semantic understanding, thereby generating an image that is more in line with the real world, greatly improving the realism of the image. The low-resolution image, the restoration prompt text and the high-level semantic prompt text are input into a pre-trained diffusion model to generate a high-resolution image. The present invention greatly improves the fineness and realism of image super-resolution.

[0008] Furthermore, the step of the image restoration prompt generating module generating restoration prompt text according to the low-resolution image specifically includes: The image restoration hint generation module includes a basic feature extraction block and a degradation hint alignment block; The basic feature extraction block extracts basic image features in the low-resolution image; The degradation hint alignment block includes a combination unit of two consecutive cross-attention layers and a feed-forward layer. The degradation hint alignment block divides the degradation degree in a single degradation type into four intervals of [0, 0.25], (0.25, 0.5], (0.5, 0.75] and (0.75, 1] ​​according to a degradation degree discretization algorithm, so as to select degradation hints corresponding to basic image features from the intervals; The cross attention layer obtains the basic image features and degradation hints corresponding to the basic image features, takes the degradation hints as a query matrix, takes the basic image features as a key matrix and a value matrix, and calculates the similarity between the query matrix and the key matrix according to a cross attention mechanism, so as to fuse the basic image features and the degradation hints to obtain fused image features; The feed-forward layer performs complex feature and detail feature enhancement processing on the fused image features according to linear transformation and nonlinear activation function; to generate repair hint text.

[0009] Furthermore, the multimodal semantic prior guidance module generates an image tag according to the low-resolution image, so as to generate a high-level semantic prompt text according to the image tag, which specifically includes: The multimodal semantic prior guidance module includes a key feature extraction block, an image label extraction block, and a high-level semantic hint generation block; The key feature extraction block extracts key image features from the low-resolution image and minimizes the loss function Perform key feature extraction enhancement, where E represents the image encoder, represents the minimum loss of the image encoder, represents a low-resolution image, represents the predicted high-resolution image; The image label extraction block obtains text labels corresponding to all key content elements in the low-resolution image according to the key image features; The high-level semantic hint generation block creates corresponding customized instructions according to the text label, generates image description text of the low-resolution image according to the customized instructions, and semantically adjusts the image description text to generate high-level semantic hint text consistent with human perception and understanding standards.

[0010] Furthermore, the step of inputting the low-resolution image, the restoration prompt text and the high-level semantic prompt text into a pre-trained diffusion model to generate a high-resolution image specifically includes: Input the repair hint text low-resolution image, repair hint text and high-level semantic hint text into the pre-trained diffusion model; Perform diffusion reduction cycle processing according to the number of cycles preset by the diffusion model; In the diffusion-reduction cycle, the low-resolution image is subjected to a noise diffusion process according to the high-level semantic prompt text as a diffusion guidance text, so as to generate a noisy diffusion image; In the diffusion restoration cycle, the noisy diffusion image is subjected to denoising restoration processing according to the repair prompt text as restoration guidance text to generate a denoised restoration image; A high-resolution image corresponding to the target low-resolution image is generated based on the denoised restored image output by the final cycle of the diffusion reduction cycle.

[0011] Furthermore, the structure of the diffusion model specifically includes: The diffusion model includes control networks and lock-in networks; The control network is in a trainable state for receiving and adapting to additional input conditions, and the locking network is in a locked state for maintaining the original network depth features; The control network includes a zero-crossing convolution block and a trainable copy, the locking network includes a locking copy, and the trainable copy is connected to the locking copy through a zero-crossing convolution block.

[0012] Furthermore, the pre-training step specifically includes: Acquire multiple image datasets and perform preprocessing including size cropping to generate low-resolution image pairs according to a degradation pipeline, generate repair instructions according to the low-resolution image pairs, and construct image-text training samples according to the low-resolution image pairs and the repair instructions; constructing an auxiliary dataset, wherein the auxiliary dataset includes a degradation module and a restoration hint representation module; The degradation module generates low-resolution image pairs that conform to the real scene according to the second-order degradation process to serve as high-difficulty training samples; The recovery prompt representation module divides the continuous degradation space into multiple intervals to describe the degradation process and generate corresponding prompt texts; The original diffusion model is iteratively trained according to the image-text training samples, the high-difficulty training samples and the prompt text.

[0013] Furthermore, before the step of generating a high-resolution image, the method further includes: Iterative optimization is performed according to the loss function to minimize the loss. The formula of the loss function is as follows: in, represents the total loss, represents the image encoder, represents the latent representation of the image, represents the potential representation after adding noise, represents the low-resolution image input, represents the diffusion step, Indicates the image generation repair prompt text, Represents high-level semantic hint text, represents Gaussian noise, represents the noise prediction network, It means that the added noise follows a normal distribution.

[0014] The present invention proposes an image super-resolution system based on an information-guided diffusion model, comprising: An acquisition module, used for acquiring a low-resolution image to be processed, and inputting the image into an image restoration prompt generation module and a multimodal semantic prior guidance module, respectively. The image restoration prompt generation module is used for describing the degradation process and generating a prompt text corresponding to the degradation type, and the multimodal semantic prior guidance module is used for extracting key features and generating a description text of the corresponding key features; A prompt text generating module, used for the image restoration prompt generating module to generate restoration prompt text according to the low-resolution image; The multimodal semantic prior guidance module generates an image tag according to the low-resolution image to generate a high-level semantic prompt text according to the image tag; The diffusion reconstruction module is used to input the low-resolution image, the repair hint text and the high-level semantic hint text into a pre-trained diffusion model to generate a high-resolution image.

[0015] The present invention also provides a storage medium, wherein the storage medium stores one or more programs, and when the programs are executed by a processor, the image super-resolution method based on the information-guided diffusion model as described above is implemented.

[0016] The present invention also provides a computer device, the computer device comprising a memory and a processor, wherein: The memory is used to store computer programs; When the processor is used to execute the computer program stored in the memory, the image super-resolution method based on the information-guided diffusion model as described above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A flowchart of an image super-resolution method based on an information-guided diffusion model proposed in the first embodiment of the present invention; Figure 2A flowchart of an image super-resolution method based on an information-guided diffusion model proposed in a second embodiment of the present invention; Figure 3 A schematic diagram of the structure of an image super-resolution method based on an information-guided diffusion model proposed in a third embodiment of the present invention; Figure 4 A structural diagram of an image super-resolution method based on an information-guided diffusion model proposed in the first embodiment of the present invention; Figure 5 This is a structural diagram of the diffusion model proposed in the present invention.

[0018] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0019] In order to facilitate understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are provided in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0020] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0022] See also Figure 1 , which is a flow chart of an image super-resolution method based on an information-guided diffusion model proposed in a first embodiment of the present invention, the image super-resolution method based on an information-guided diffusion model comprises steps S01 to S04, wherein: Step S01: obtaining a low-resolution image to be processed, and inputting the image restoration hint generation module and the multimodal semantic prior guidance module respectively; Step S02: the image repair prompt generation module generates a repair prompt text according to the low-resolution image; It should be noted that the image restoration hint generation module in this embodiment includes a basic feature extraction block and a degradation hint alignment block; The basic feature extraction block extracts basic image features in the low-resolution image; The degradation hint alignment block includes a combination unit of two consecutive cross-attention layers and a feed-forward layer. The degradation hint alignment block divides the degradation degree in a single degradation type into four intervals of [0, 0.25], (0.25, 0.5], (0.5, 0.75] and (0.75, 1] ​​according to a degradation degree discretization algorithm, so as to select degradation hints corresponding to basic image features from the intervals; The cross attention layer obtains the basic image features and degradation hints corresponding to the basic image features, takes the degradation hints as a query matrix, takes the basic image features as a key matrix and a value matrix, and calculates the similarity between the query matrix and the key matrix according to a cross attention mechanism, so as to fuse the basic image features and the degradation hints to obtain fused image features; The feed-forward layer performs complex feature and detail feature enhancement processing on the fused image features according to linear transformation and nonlinear activation function; To generate repair prompt text; In order to avoid the combinatorial explosion problem, in this embodiment, the present invention constructs an aligned decoder for image restoration hints for each degradation type, each decoder specializes in processing a specific degradation situation, thereby optimizing the processing flow, and then connects the retrieved degradation hints to form a final hint description.

[0023] Step S03: the multimodal semantic prior guidance module generates image tags according to the low-resolution image, so as to generate high-level semantic prompt text according to the image tags; It should be noted that the multimodal semantic prior guidance module in this embodiment includes a key feature extraction block, an image label extraction block and a high-level semantic hint generation block; The key feature extraction block extracts key image features from the low-resolution image and minimizes the loss function Perform key feature extraction enhancement, where E represents the image encoder, represents the minimum loss of the image encoder, represents a low-resolution image, represents the predicted high-resolution image; The image label extraction block obtains text labels corresponding to all key content elements in the low-resolution image according to the key image features; The high-level semantic hint generation block creates corresponding customized instructions according to the text label, generates image description text of the low-resolution image according to the customized instructions, and semantically adjusts the image description text to generate high-level semantic hint text consistent with human perception and understanding standards.

[0024] Step S04: inputting the low-resolution image, the repair prompt text, and the high-level semantic prompt text into the pre-trained diffusion model to generate a high-resolution image; It should be noted that the specific structure of this embodiment can be found in Figure 4 ,In this embodiment, the low-resolution image of the repair prompt text, the repair prompt text, and the high-level semantic prompt text are input into the pre-trained diffusion model; Perform diffusion reduction cycle processing according to the number of cycles preset by the diffusion model; In the diffusion-reduction cycle, the low-resolution image is subjected to a noise diffusion process according to the high-level semantic prompt text as a diffusion guidance text, so as to generate a noisy diffusion image; In the diffusion restoration cycle, the noisy diffusion image is subjected to denoising restoration processing according to the repair prompt text as restoration guidance text to generate a denoised restoration image; Generate a high-resolution image corresponding to the target low-resolution image according to the denoised restored image output by the final cycle of the diffusion restoration cycle; In this embodiment, through refined denoising and denoising, the present invention can achieve high-quality super-resolution reconstruction of images in complex degraded environments; In this embodiment, the diffusion model includes a control network and a locking network. For specific structures, please refer to Figure 5 ; The control network is in a trainable state for receiving and adapting to additional input conditions, and the locking network is in a locked state for maintaining the original network depth features; The control network includes a zero-crossing convolution block and a trainable copy, the locking network includes a locking copy, and the trainable copy is connected to the locking copy through a zero-crossing convolution block; In this embodiment, the diffusion model has the ability to adapt to additional input conditions. The core idea is to create two different weight copies from the pre-trained diffusion model: one is a trainable copy and the other is a locked copy. The trainable copy is trained on a dataset of a specific task to learn the required conditions, while the locked copy remains fixed. The two copies are connected by zero convolution, thereby achieving efficient training comparable to the fine-tuning speed and avoiding the introduction of additional noise to the original pre-trained network deep features. This design not only improves the adaptability and flexibility of the model, but also ensures that the basic performance of the pre-trained model is not disturbed. The pre-training step in this embodiment specifically includes: Acquire multiple image datasets and perform preprocessing including size cropping to generate low-resolution image pairs according to a degradation pipeline, generate repair instructions according to the low-resolution image pairs, and construct image-text training samples according to the low-resolution image pairs and the repair instructions; constructing an auxiliary dataset, wherein the auxiliary dataset includes a degradation module and a restoration hint representation module; The degradation module generates low-resolution image pairs that conform to the real scene according to the second-order degradation process to serve as high-difficulty training samples; The recovery prompt representation module divides the continuous degradation space into multiple intervals to describe the degradation process and generate corresponding prompt texts; Iteratively training the original diffusion model according to the image-text training samples, high-difficulty training samples and prompt texts; In this embodiment, the size cropping standard is 512×512, and low-resolution images and high-resolution images are generated according to the degradation pipeline of Real-ESRGAN. The training optimization method of the diffusion model adopts the Adam optimizer, sets the batch size to 4, and adjusts the learning rate to 2e-5. The algorithm of the iterative training strategy is as follows: Algorithm Table 1: Table 1 in, represents the semantic cues obtained by processing a low-resolution image with a multimodal large language model. represents the total diffusion time step, Indicates The noise variance of the step; In this embodiment, iterative optimization is performed according to the loss function to obtain the minimized loss. The formula of the loss function is as follows: in, represents the total loss, represents the image encoder, represents the latent representation of the image, represents the potential representation after adding noise, represents the low-resolution image input, represents the diffusion step, Indicates the image generation repair prompt text, Represents high-level semantic hint text, represents Gaussian noise, represents the noise prediction network, It means that the added noise follows a normal distribution.

[0025] In summary, according to the above-mentioned image super-resolution method based on the information-guided diffusion model, an image restoration prompt generation module is designed to generate restoration prompt text, and the basic image features and the corresponding degradation prompts are accurately aligned to enhance the complex features and detail features of the super-resolution generated image, thereby greatly improving the local texture quality of the generated image. A modal semantic prior guidance module is designed to generate high-level semantic prompt text, so that the generated image is more consistent with the characteristics of the real world, avoiding the appearance of features that are inconsistent with human perception and understanding, and greatly improving the realism of the generated image. Finally, the diffusion model is used to perform diffusion restoration processing according to the prompt text. The present invention greatly improves the fineness and realism of the image super-resolution. Specifically, a low-resolution image to be processed is obtained, and is input into an image restoration prompt generation module and a multimodal semantic prior guidance module respectively, wherein the image restoration prompt generation module is used to describe the degradation process and generate a prompt text corresponding to the degradation type, and the multimodal semantic prior guidance module is used to extract key features and generate a description text of the corresponding key features. The image restoration prompt generation module generates a restoration prompt text according to the low-resolution image, which greatly optimizes the image generation effect and improves the fineness of the generated image. The multimodal semantic prior guidance module generates an image label according to the low-resolution image to generate a high-level semantic prompt text according to the image label, so that the acquired image description is more in line with human semantic understanding, thereby generating an image that is more in line with the real world, greatly improving the realism of the image. The low-resolution image, the restoration prompt text and the high-level semantic prompt text are input into a pre-trained diffusion model to generate a high-resolution image. The present invention greatly improves the fineness and realism of image super-resolution.

[0026] See also Figure 2 , which is a flow chart of an image super-resolution method based on an information-guided diffusion model proposed in a second embodiment of the present invention, wherein the image super-resolution method based on an information-guided diffusion model comprises steps S11 to S14, wherein: Step S11: obtaining a low-resolution image to be processed, and inputting the image restoration hint generation module and the multimodal semantic prior guidance module respectively; Step S12: the image restoration prompt generation module includes a basic feature extraction block and a degradation prompt alignment block, the basic feature extraction block extracts basic image features in the low-resolution image, the degradation prompt alignment block includes a combination unit of two consecutive cross-attention layers and a feedforward layer, the degradation prompt alignment block divides the degradation degree in a single degradation type into four intervals according to a degradation degree discretization algorithm to select degradation prompts corresponding to basic image features from the intervals, the cross-attention layer obtains basic image features and degradation prompts corresponding to the basic image features, takes the degradation prompts as a query matrix, takes the basic image features as a key matrix and a value matrix, calculates the similarity of the query matrix and the key matrix according to the cross-attention mechanism, so as to fuse the basic image features and the degradation prompts to obtain fused image features, and the feedforward layer performs complex feature and detail feature enhancement processing on the fused image features according to a linear transformation and a nonlinear activation function to generate a restoration prompt text; Step S13: the multimodal semantic prior guidance module includes a key feature extraction block, an image label extraction block and a high-level semantic hint generation block, the key feature extraction block extracts key image features in the low-resolution image, and performs key feature extraction enhancement according to the minimization loss function, the image label extraction block obtains text labels corresponding to all key content elements in the low-resolution image according to the key image features, the high-level semantic hint generation block makes corresponding customized instructions according to the text labels, generates image description text of the low-resolution image according to the customized instructions, and performs semantic adjustment on the image description text to generate high-level semantic hint text consistent with human perception and understanding standards; Step S14: input the low-resolution image with the repair prompt text, the repair prompt text and the high-level semantic prompt text into the pre-trained diffusion model, and perform diffusion-reduction cycle processing according to the number of cycles preset by the diffusion model. In the diffusion-reduction cycle processing, the high-level semantic prompt text is used as the diffusion guidance text to perform noise diffusion processing on the low-resolution image to generate a noisy diffusion image. In the diffusion-reduction cycle processing, the repair prompt text is used as the restoration guidance text to perform denoising and restoration processing on the noisy diffusion image to generate a denoised restored image. According to the denoised restored image output by the final cycle of the diffusion-reduction cycle, a high-resolution image corresponding to the target low-resolution image is generated.

[0027] In summary, according to the above-mentioned image super-resolution method based on the information-guided diffusion model, an image restoration prompt generation module is designed to generate restoration prompt text, and the basic image features and the corresponding degradation prompts are accurately aligned to enhance the complex features and detail features of the super-resolution generated image, thereby greatly improving the local texture quality of the generated image. A modal semantic prior guidance module is designed to generate high-level semantic prompt text, so that the generated image is more consistent with the characteristics of the real world, avoiding the appearance of features that are inconsistent with human perception and understanding, and greatly improving the realism of the generated image. Finally, the diffusion model is used to perform diffusion restoration processing according to the prompt text. The present invention greatly improves the fineness and realism of the image super-resolution. Specifically, a low-resolution image to be processed is obtained, and is input into an image restoration prompt generation module and a multimodal semantic prior guidance module respectively, wherein the image restoration prompt generation module is used to describe the degradation process and generate a prompt text corresponding to the degradation type, and the multimodal semantic prior guidance module is used to extract key features and generate a description text of the corresponding key features. The image restoration prompt generation module generates a restoration prompt text according to the low-resolution image, which greatly optimizes the image generation effect and improves the fineness of the generated image. The multimodal semantic prior guidance module generates an image label according to the low-resolution image to generate a high-level semantic prompt text according to the image label, so that the acquired image description is more in line with human semantic understanding, thereby generating an image that is more in line with the real world, greatly improving the realism of the image. The low-resolution image, the restoration prompt text and the high-level semantic prompt text are input into a pre-trained diffusion model to generate a high-resolution image. The present invention greatly improves the fineness and realism of image super-resolution.

[0028] See also Figure 3 , which is a schematic diagram of the structure of an image super-resolution system based on an information-guided diffusion model proposed in a third embodiment of the present invention, and the system includes: The acquisition module 10 is used to acquire the low-resolution image to be processed and input it into the image restoration prompt generation module and the multimodal semantic prior guidance module respectively. The image restoration prompt generation module is used to describe the degradation process and generate a prompt text corresponding to the degradation type, and the multimodal semantic prior guidance module is used to extract key features and generate a description text of the corresponding key features; A prompt text generating module 20, used for the image restoration prompt generating module to generate a restoration prompt text according to the low-resolution image; The multimodal semantic prior guidance module generates an image tag according to the low-resolution image to generate a high-level semantic prompt text according to the image tag; The diffusion reconstruction module 30 is used to input the low-resolution image, the restoration prompt text and the high-level semantic prompt text into a pre-trained diffusion model to generate a high-resolution image.

[0029] The present invention also provides a computer storage medium on which one or more programs are stored, and when the programs are executed by a processor, the above-mentioned image super-resolution method based on the information-guided diffusion model is implemented.

[0030] The present invention also proposes a computer device, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the above-mentioned image super-resolution method based on the information-guided diffusion model.

[0031] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain storage, communication, propagation or transmission of a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0032] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0033] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0034] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0035] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. An image super-resolution method based on information-guided diffusion model, It is characterized in that include: Obtaining a low-resolution image to be processed, and inputting the image into an image restoration prompt generation module and a multimodal semantic prior guidance module, respectively, wherein the image restoration prompt generation module is used to describe the degradation process and generate a prompt text corresponding to the degradation type, and the multimodal semantic prior guidance module is used to extract key features and generate a description text of the corresponding key features; The image repair prompt generating module generates a repair prompt text according to the low-resolution image; The multimodal semantic prior guidance module generates an image tag according to the low-resolution image to generate a high-level semantic prompt text according to the image tag; The low-resolution image, the restoration hint text, and the high-level semantic hint text are input into a pre-trained diffusion model to generate a high-resolution image.

2. The image super-resolution method based on the information-guided diffusion model according to claim 1, It is characterized in that The step of the image repair prompt generating module generating a repair prompt text according to the low-resolution image specifically comprises: The image restoration hint generation module includes a basic feature extraction block and a degradation hint alignment block; The basic feature extraction block extracts basic image features in the low-resolution image; The degradation hint alignment block includes a combination unit of two consecutive cross-attention layers and a feed-forward layer. The degradation hint alignment block divides the degradation degree in a single degradation type into four intervals of [0, 0.25], (0.25, 0.5], (0.5, 0.75] and (0.75, 1] ​​according to a degradation degree discretization algorithm, so as to select degradation hints corresponding to basic image features from the intervals; The cross attention layer obtains the basic image features and degradation hints corresponding to the basic image features, takes the degradation hints as a query matrix, takes the basic image features as a key matrix and a value matrix, and calculates the similarity between the query matrix and the key matrix according to a cross attention mechanism, so as to fuse the basic image features and the degradation hints to obtain fused image features; The feed-forward layer performs complex feature and detail feature enhancement processing on the fused image features according to linear transformation and nonlinear activation function; to generate repair hint text.

3. The image super-resolution method based on the information-guided diffusion model according to claim 1, It is characterized in that The multimodal semantic prior guidance module generates an image tag according to the low-resolution image to generate a high-level semantic prompt text according to the image tag, specifically comprising: The multimodal semantic prior guidance module includes a key feature extraction block, an image label extraction block, and a high-level semantic hint generation block; The key feature extraction block extracts key image features from the low-resolution image and minimizes the loss function Perform key feature extraction enhancement, where E represents the image encoder, represents the minimum loss of the image encoder, represents a low-resolution image, represents the predicted high-resolution image; The image label extraction block obtains text labels corresponding to all key content elements in the low-resolution image according to the key image features; The high-level semantic hint generation block creates corresponding customized instructions according to the text label, generates image description text of the low-resolution image according to the customized instructions, and semantically adjusts the image description text to generate high-level semantic hint text consistent with human perception and understanding standards.

4. The image super-resolution method based on the information-guided diffusion model according to claim 1, It is characterized in that The step of inputting the low-resolution image, the repair prompt text and the high-level semantic prompt text into a pre-trained diffusion model to generate a high-resolution image specifically includes: Input the repair hint text low-resolution image, repair hint text and high-level semantic hint text into the pre-trained diffusion model; Perform diffusion reduction cycle processing according to the number of cycles preset by the diffusion model; In the diffusion-reduction cycle, the low-resolution image is subjected to a noise diffusion process according to the high-level semantic prompt text as a diffusion guidance text, so as to generate a noisy diffusion image; In the diffusion restoration cycle, the noisy diffusion image is subjected to denoising restoration processing according to the repair prompt text as restoration guidance text to generate a denoised restoration image; A high-resolution image corresponding to the target low-resolution image is generated based on the denoised restored image output by the final cycle of the diffusion reduction cycle.

5. The image super-resolution method based on the information-guided diffusion model according to claim 4, It is characterized in that The structure of the diffusion model specifically includes: The diffusion model includes control networks and lock-in networks; The control network is in a trainable state for receiving and adapting to additional input conditions, and the locking network is in a locked state for maintaining the original network depth features; The control network includes a zero-crossing convolution block and a trainable copy, the locking network includes a locking copy, and the trainable copy is connected to the locking copy through a zero-crossing convolution block.

6. The image super-resolution method based on the information-guided diffusion model according to claim 1, It is characterized in that The pre-training step specifically includes: Acquire multiple image datasets and perform preprocessing including size cropping to generate low-resolution image pairs according to a degradation pipeline, generate repair instructions according to the low-resolution image pairs, and construct image-text training samples according to the low-resolution image pairs and the repair instructions; constructing an auxiliary dataset, wherein the auxiliary dataset includes a degradation module and a restoration hint representation module; The degradation module generates low-resolution image pairs that conform to the real scene according to the second-order degradation process to serve as high-difficulty training samples; The recovery prompt representation module divides the continuous degradation space into multiple intervals to describe the degradation process and generate corresponding prompt texts; The original diffusion model is iteratively trained according to the image-text training samples, the high-difficulty training samples and the prompt text.

7. The image super-resolution method based on the information-guided diffusion model according to claim 1, It is characterized in that Before the step of generating a high-resolution image, the method further includes: Iterative optimization is performed according to the loss function to minimize the loss. The formula of the loss function is as follows: in, represents the total loss, represents the image encoder, represents the latent representation of the image, represents the potential representation after adding noise, represents the low-resolution image input, represents the diffusion step, Indicates the image generation repair prompt text, Represents high-level semantic hint text, represents Gaussian noise, represents the noise prediction network, It means that the added noise follows a normal distribution.

8. An image super-resolution system based on information-guided diffusion model, It is characterized in that include: An acquisition module, used for acquiring a low-resolution image to be processed, and inputting the image into an image restoration prompt generation module and a multimodal semantic prior guidance module, respectively. The image restoration prompt generation module is used for describing the degradation process and generating a prompt text corresponding to the degradation type, and the multimodal semantic prior guidance module is used for extracting key features and generating a description text of the corresponding key features; A prompt text generating module, used for the image restoration prompt generating module to generate restoration prompt text according to the low-resolution image; The multimodal semantic prior guidance module generates an image tag according to the low-resolution image to generate a high-level semantic prompt text according to the image tag; The diffusion reconstruction module is used to input the low-resolution image, the repair hint text and the high-level semantic hint text into a pre-trained diffusion model to generate a high-resolution image.

9. A storage medium, It is characterized in that The storage medium stores one or more programs, which, when executed by a processor, implement the image super-resolution method based on the information-guided diffusion model as described in any one of claims 1 to 7.

10. A computer device, It is characterized in that The computer device comprises a memory and a processor, wherein: The memory is used to store computer programs; When the processor is used to execute the computer program stored in the memory, the image super-resolution method based on the information-guided diffusion model described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Super-division method and device for using priori knowledge in diffusion model without training, and storage medium

    CN118570064A

Cited By

  • Fast face image super-resolution method and system based on stable diffusion model

    CN119006292A

  • Fast face image super-resolution method and system based on stable diffusion model

    CN119006292B

  • Video super-resolution reconstruction method and system, electronic equipment and storage medium

    CN119693237A

  • Image restoration method for incomplete text image

    CN119887586A

  • Video processing method and device and related equipment

    CN119922378A