Image deblurring method and system based on inheritance learning, electronic equipment and storage medium
Generating labeled simulation data through inheritance learning and generative adversarial networks solves the problem of unsupervised learning mode collapse of deep learning models in image deblurring, improves image deblurring quality and performance, adapts to the deblurring task of real data, and reduces resource consumption.
Patent Information
- Application Number
- CN202410786286.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-08-23
AI Technical Summary
In space target observation, deep learning models have an unsupervised learning model collapse problem in image deblurring tasks, which leads to a decrease in the quality of the generated deblurred images and requires a large amount of labeled training data and high-cost hardware support.
Adopting a method based on inheritance learning, by building a simulation data generation model and transfer learning, training the image restoration predecessor model and unsupervised training of the image restoration descendant model under its guidance, using the generative adversarial network to generate labeled simulation data, reducing the need for real data dependence, and improve the deblurring performance of the model through perceptual loss and consistency loss functions.
It effectively avoids the problem of mode collapse, improves the quality and performance of image deblurring, reduces training time and resource consumption, adapts to the deblurring task of real data, and generates more realistic and clear images.
Smart Images

Figure CN118537261A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image deblurring, and in particular to an image deblurring method, system, electronic device and storage medium based on inheritance learning. Background Art
[0002] In the field of ground-based space target observation, the imaging of optical systems is affected by atmospheric turbulence, causing serious blurring and degradation of the acquired images, which makes it difficult to directly identify the external morphology, geometric features, load state and functional properties of the target from the original image. Traditional methods mainly use adaptive optical systems for compensation, but these methods require complex hardware support and high costs.
[0003] At present, image restoration technology based on deep learning has achieved remarkable results in this field; among them, deep convolutional neural network (CNN) as a powerful representation learning tool can learn complex features and patterns in images, which can be used to reconstruct damaged images; however, although deep learning methods have achieved remarkable results in image restoration tasks, there are still some technical problems in practical applications. First, most deep learning models require a large amount of labeled training data, and obtaining data with clear labels in space target observation is a challenging task. In addition, the generalization ability and interpretability of existing models are poor, resulting in the risk of mode collapse in unsupervised learning, that is, the model tends to learn some patterns in the data and ignore other important information, which ultimately leads to a decrease in the quality of the generated deblurred image. Summary of the invention
[0004] The purpose of the present invention is to provide an image deblurring method, system, electronic device and storage medium based on inheritance learning, so as to avoid the problem of collapse of unsupervised learning model in the image deblurring process and improve the quality of the deblurred image.
[0005] The technical solution of the first aspect of the present invention provides an image deblurring method based on inheritance learning, comprising the following steps: Build a simulation data generation model and obtain simulation data; Training image restoration predecessor models based on simulation data; Based on transfer learning, the trained image restoration predecessor model is inherited to the image restoration successor model, and the image restoration successor model is trained unsupervised under the guidance of the image restoration predecessor model; The trained image restoration successor model is used to restore the real-time blurred image.
[0006] Furthermore, a simulation data generation model is constructed to obtain simulation data, including: Construct a simulation data generation model based on a generative adversarial network, which includes a degradation generator and a restoration generator; Inputting the simulated clear image into the degradation generator to generate a first blurred image, and inputting the first blurred image into the restoration generator to generate a first clear image; Input the simulated blurred image into the restoration generator to generate a second clear image, and input the second clear image into the degradation generator to generate a second blurred image; The simulation data generation model is trained using the first loss function, and the trained simulation data generation model is used to output labeled simulation data.
[0007] Furthermore, the expression of the first loss function is:
[0008] In the formula, represents the first loss function; , , , Indicates the preset weight coefficient; represents the fidelity loss of the simulated blurred image; Indicates the fidelity loss of the simulated clear image; represents the SSIM structural similarity loss of simulated blurred images; represents the SSIM structural similarity loss of the simulated clear image; represents the simulated blurred image of the input; represents the simulated clear image of the input; represents the second blurred image; Indicates the first clear image.
[0009] Furthermore, based on transfer learning, the trained image restoration predecessor model is inherited to the image restoration successor model. The image restoration successor model is trained unsupervised under the guidance of the image restoration predecessor model, including: Calculate the perceptual loss function, which is expressed as:
[0010] In the formula, represents the perceptual loss function; Represents the decoded layer features of the image restoration successor model extracted based on the neural network; Represents the decoding layer features of the previous image restoration model extracted based on neural network; Represents a real blurred image; Represents the real blurred image after the real clear image generated by the image restoration successor model is degraded.
[0011] Furthermore, based on transfer learning, the trained image restoration predecessor model is inherited to the image restoration successor model. The image restoration successor model is unsupervisedly trained under the guidance of the image restoration predecessor model, and further includes: Calculate the consistency loss function, which is expressed as:
[0012] In the formula, represents the consistency loss function; It represents the clear image generated by the image restoration model; express After blurring, the clear image generated by the predecessor model is restored through image restoration.
[0013] Furthermore, the real-time blurred image is restored using the trained image restoration model, including: The first stage: segment the real-time blurred image, and its expression is:
[0014] In the formula, Indicates real-time blurred image Blurred latent codes of image patches; Indicates real-time blurred image A restored image block of an image block; Indicates real-time blurred image Enhanced blur features of image blocks; represents the first stage sub-network; The real-time blurred image image blocks;
[0015]
[0016]
[0017] Represents the overall fuzzy latent coding; represents the overall restored image; Indicates overall enhanced fuzzy features; Indicates that the image block features are connected to each other.
[0018] Furthermore, restoring the real-time blurred image using the trained image restoration model also includes: The second stage: deblurring operation is performed at the original resolution, and its expression is:
[0019] In the formula, represents the restored image corresponding to the real-time blurred image at the original resolution obtained after processing by the second-stage sub-network; represents the second stage sub-network; Represents a real-time blurred image input at native resolution.
[0020] The technical solution of the second aspect of the present invention provides an image deblurring system based on inheritance learning, including the image deblurring method based on inheritance learning described in any one of the technical solutions of the first aspect, the system comprising: A simulation data generation module configured to obtain simulation data; An image restoration predecessor module, configured to train an image restoration predecessor model based on simulation data; The image restoration successor module is configured to inherit the trained image restoration predecessor model to the image restoration successor model based on transfer learning, and the image restoration successor model is trained unsupervised under the guidance of the image restoration predecessor model; The image restoration module is configured to restore the real-time blurred image using the trained image restoration model.
[0021] The technical solution of the third aspect of the present invention provides an electronic device, comprising: a processor and a memory communicatively connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor can execute the steps of the image deblurring method based on inheritance learning as described in any one of the technical solutions of the first aspect.
[0022] The technical solution of the fourth aspect of the present invention provides a computer-readable storage medium, on which is stored a program for implementing an image deblurring method based on inheritance learning. The program for implementing an image deblurring method based on inheritance learning is executed by a processor to implement the steps of the image deblurring method based on inheritance learning described in any one of the technical solutions of the first aspect.
[0023] The technical solution of the embodiment of the present invention has at least the following advantages and beneficial effects: The image deblurring method based on inheritance learning provided by the present invention trains an image restoration predecessor model through simulation data, so that the model learns the ability to restore a clear image from a simulated blurred image; the image restoration successor model inherits the image restoration predecessor model and unsupervisedly trains the image restoration successor model under the guidance of the experience of the image restoration predecessor model, and transfers the knowledge and parameters of the trained image restoration predecessor model to the image restoration successor model, and the successor model performs unsupervised training under the guidance of the predecessor model so as to quickly learn the skills and capabilities of image deblurring; the method can utilize the knowledge and experience of the image restoration predecessor model on the basis of the limited deblurring capability of the image restoration predecessor model, so that the image restoration successor model can learn faster and gradually improve the deblurring performance, reduce training time and resource consumption, gradually improve the model performance, and better adapt to the deblurring task of real data. By utilizing the knowledge and experience of the predecessor model, the successor model can effectively avoid the problem of the image restoration successor model going astray and falling into mode collapse, thereby improving the quality of the deblurred image of the image restoration successor model. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments of the present invention are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 A schematic diagram of the process flow of the image deblurring method based on inheritance learning provided by the present invention; Figure 2 This is a schematic diagram of the structure of the image deblurring system based on inheritance learning provided by this paper. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0027] It should be understood that the "system", "device", "unit" and / or "module" used herein are a method for distinguishing different components, elements, parts, portions or assemblies at different levels. However, if other words can achieve the same purpose, the words can be replaced by other expressions.
[0028] As shown in this specification and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "comprise" and "include" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0029] Flowcharts are used in this specification to illustrate the operations performed by the system according to the embodiments of this specification. It should be understood that the preceding or following operations are not necessarily performed precisely in order. Instead, the steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes, or one or more operations may be removed from these processes.
[0030] See also Figure 1 As shown, the technical solution of the first aspect of the present invention provides an image deblurring method based on inheritance learning, comprising the following steps: Step S100: construct a simulation data generation model and obtain simulation data; specifically, by analyzing the positional relationship between the sensor and the moving target, the operation estimation is modeled, different motion blur kernels are set, and motion blur simulation is performed according to the motion trajectory; the data generated in this process includes simulation fuzzy data and simulation clear data; this embodiment further processes these simulation data based on the generative adversarial network; these simulation data are used together as input data of GAN, wherein the simulation fuzzy data is used as the input of the generator, and the simulation clear data is used as the real data; the goal of the generator is to generate simulation fuzzy data that is as realistic as possible, making it difficult to distinguish between the simulation clear data and the simulation fuzzy data generated by the generator; the discriminator evaluates the similarity between the simulation fuzzy data generated by the generator and the simulation clear data, and provides feedback to guide the training of the generator; through the learning of the generative adversarial network, the network can convert the originally unlabeled simulation data into labeled simulation data with category information, making the simulation data richer and facilitating subsequent data processing and task application; Step S100 specifically includes: Step S110: constructing a simulation data generation model based on a generative adversarial network, including a degradation generator and a restoration generator; these generators will be used to generate the transition between the simulated blurred image and the clear image; training the predecessor model by using the simulation data generated by the generative adversarial network can reduce the dependence on real sample data, thereby reducing the cost of actual data collection and annotation, and accelerating the training process of the image deblurring model; Step S120: Input the simulated clear image into the degradation generator to generate a first blurred image, and input the first blurred image into the restoration generator to generate a first clear image, which is expressed as:
[0031]
[0032] In the formula, represents a degenerate generator; represents the first blurred image; represents the simulated clear image of the input; represents the simulated blurred image of the input; represents the second clear image; Step S130: Input the simulated blurred image to the restoration generator to generate a second clear image, and input the second clear image to the degradation generator to generate a second blurred image, which is expressed as:
[0033]
[0034] In the formula, represents the recovery generator; represents the second blurred image; represents the first clear image; Step S140: train the simulation data generation model using the first loss function, and use the trained simulation data generation model to output labeled simulation data. The labeled simulation data refers to the generated simulation data set in which each image is accompanied by corresponding labels or category information. These labels may include the content, attributes or other features of the image. Such a data set is used for supervised learning of the subsequent image restoration predecessor model; wherein the expression of the first loss function is:
[0035]
[0036]
[0037] In the formula, represents the first loss function; , , , Indicates the preset weight coefficient; represents the fidelity loss of the simulated blurred image; Indicates the fidelity loss of the simulated clear image; represents the SSIM structural similarity loss of simulated blurred images; represents the SSIM structural similarity loss of the simulated clear image; represents the simulated blurred image of the input; represents the simulated clear image of the input; represents the second blurred image; represents the first clear image; through the combination of different loss terms, the model can learn different features of the image, such as fidelity and structural similarity, so that the generated image is visually closer to the real clear image; thereby minimizing the first loss function, the simulation data generation model can learn how to generate an image that matches the input simulation blurry image and the simulation clear image; through the back propagation algorithm, the network parameters are adjusted so that the generated image is as close as possible to the input image, thereby optimizing the simulation data generation model; through the above steps S110 to S140, a high-credibility simulation data generation model can be finally obtained, and high-credibility simulation data can be output; Step S200: training an image restoration predecessor model based on simulation data; using the high-confidence simulation data generation model trained in step S140 to generate a batch of simulation data, which can represent blurry images in the real world, and then using these simulation data to train the image restoration predecessor model; Step S300: Based on transfer learning, the trained image restoration predecessor model is inherited to the image restoration successor model, and the image restoration successor model is trained unsupervised under the guidance of the image restoration predecessor model; specifically, the image restoration successor model inputs a real blurred image, and during the training process of the image restoration successor model, the image restoration predecessor model is no longer trained, and the image restoration successor model will continuously optimize its own parameters according to the image data in the real world and the guidance of the predecessor model during the training process; Step S300 specifically includes: Step S310: Calculate the perceptual loss function, which aims to help the image restoration successor model learn the decoding layer features of the image restoration predecessor model, thereby improving the image deblurring effect. Its expression is:
[0038] In the formula, represents the perceptual loss function; Represents the decoding layer features of the image restoration model extracted based on the neural network, and represents the feature representation of the layer used for decoding and generating clear images in the image restoration model. The decoding layer is responsible for converting high-level features into the final image representation in the model. By comparing and , it can evaluate the difference between the images generated by the successor model and the images generated by the predecessor model, and help the image restoration successor model learn a better image deblurring method; Represents the decoding layer features of the image restoration predecessor model extracted based on the neural network, that is, the feature representation of the layer used for decoding and generating clear images in the image restoration predecessor model. The decoding layer is usually responsible for converting high-level features into pixel-level image pixel values; Represents a real blurred image; It represents the real blurred image after the real clear image generated by the image restoration successor model is degraded; specifically, the image restoration predecessor model extracted based on the neural network and the decoding layer of the image restoration successor model extract features, and then the real blurred image is input to generate a real clear image through the image restoration successor model, and then the real clear image is converted into the degraded real blurred image; finally, the perceptual loss function is calculated, that is, the Euclidean distance of the decoding layer features is calculated to measure the difference between the image generated by the image restoration successor model and the real blurred image; Step S320: Calculate the consistency loss function, that is, calculate the clear image generated by the image restoration model as well as After blurring, the image is restored to generate a clear image using the previous model. The Euclidean distance between them is expressed as:
[0039] In the formula, represents the consistency loss function; It represents the clear image generated by the image restoration model; express After blurring, the clear image generated by the predecessor model is restored through the image; by calculating the consistency loss function, it can be ensured that the clear image generated by the image restoration successor model is consistent with the clear image generated by blurring and the predecessor model, thereby improving the consistency and realism of the generated image; In summary, through the above steps S310 and S320, the image restoration predecessor model helps the image restoration successor network to complete training by inheritance, guidance and supervision; the generator of the image restoration successor model implemented by transfer learning can inherit the knowledge and capabilities of the image restoration predecessor model, and then perform evolutionary learning; through the above-mentioned perceptual loss function and consistency loss function, the purpose is to use the image restoration predecessor model to supervise and guide the image restoration successor model to see whether it has obtained a restored image consistent with the target image of the current scene. On this basis, combined with the adversarial loss, a label-lacking successor network model for real blurred image restoration can be trained.
[0040] Step S400: Restoring the real-time blurred image using the trained image restoration model; Step S400 specifically includes: Step S410: The first stage: segment the real-time blurred image, and the expression is:
[0041] In the formula, Indicates real-time blurred image Blurred latent codes of image patches; Indicates real-time blurred image A restored image block of an image block; Indicates real-time blurred image Enhanced blur features of image blocks; represents the first stage sub-network; The real-time blurred image image blocks; specifically, blur latent coding refers to the coded representation of blur features of each image block in the real-time blurry image, which helps the network understand blur information and perform corresponding processing; enhanced blur features represent blur feature enhancement operations for each image block in the real-time blurry image, aiming to improve the quality and clarity of blur information; by segmenting the real-time blurry image and extracting blur latent coding, restoring image blocks and enhancing blur features, and then restoring and enhancing these features through the first-stage sub-network, the final image restoration effect is more refined and accurate. This inheritance learning-based method helps the network better understand and handle complex real-time blur situations by processing image blocks in stages, improving the effect and accuracy of image deblurring;
[0042]
[0043]
[0044] Represents the overall fuzzy latent coding; represents the overall restored image; Indicates overall enhanced fuzzy features; Indicates that the image block features are connected to each other.
[0045] Step S420: Second stage: performing a deblurring operation at the original resolution. The original resolution usually refers to the initial resolution of the image actually collected or generated, which refers to the number of pixels contained in the image, reflecting the clarity and detail of the image. In this embodiment, the second stage operation directly performs image deblurring at the original resolution, aiming to maintain and improve the clarity and detail of the image and restore the original visual information more accurately. The real-time blurred image at the original resolution is used as input data for the second stage. The blurred latent coding and enhanced blurred features obtained in the first stage are used as auxiliary information for the second stage and are processed in combination with the original resolution image input. The expression is:
[0046] In the formula, represents the restored image corresponding to the real-time blurred image at the original resolution obtained after processing by the second-stage sub-network; represents the second stage sub-network; Represents the real-time blurred image input at the original resolution; the second stage of processing helps to better restore the real-time blurred image at the original resolution, further improving the clarity and detail display of the image. By utilizing the blurred latent coding and enhanced blur features extracted in the first stage, combined with the original resolution input, the image distortion and blur phenomenon are effectively reduced in the second stage, making the image restoration more realistic and clear; the integration of the two-stage network processing can perform comprehensive deblurring operations on real-time blurred images at different scales, improving the global effect and robustness of image deblurring; In summary, step S400 includes two consecutive stages, the purpose of which is to progressively restore the real-time blurred image to the corresponding clear image; first, the real-time blurred image of the original resolution is divided into four non-overlapping blocks, and the first stage attempts to learn the local blur information of these image blocks from the blurred images of the image blocks, and transmits the local blur information to the second stage; the second stage adopts the real blurred image restoration network structure at the original resolution to obtain the global blur information of the real-time blurred image, and merges it with the local blur information obtained in the first stage to further obtain a more refined deblurring result, thereby improving the deblurring effect of the real-time blurred image; Preferably, an overall loss function of the image deblurring method based on inheritance learning is provided below, and its expression is:
[0047] In the formula, represents the overall loss function; represents the generative adversarial loss function, which is used for the adversarial loss between the discriminator and the generator, prompting the generator to generate more realistic images, thereby improving the deblurring effect; represents the guided loss function, which is used to guide the model to learn more accurate image deblurring and better preserve the structure and details of the image; represents the contrast loss function, which is used to maintain consistency between different regions of the image to avoid the situation where local deblurring is inconsistent with the overall deblurring; Represents the TV loss function, which is used to reduce image noise and smooth image details to improve the overall image quality; Represents the reconstruction loss function, which is used to reconstruct the difference between the original image and the generated image to guide the model to learn a better deblurring method; by integrating the constraints and optimizations of each part of the above overall loss function, the image deblurring method based on inheritance learning can generate a more realistic, clear and detailed deblurred image while retaining the structure and details, thereby improving the image quality and accuracy and bringing higher effects and performance to the image deblurring technology.
[0048] See also Figure 2As shown, the technical solution of the second aspect of the present invention provides an image deblurring system based on inheritance learning, including the image deblurring method based on inheritance learning described in any one of the technical solutions of the first aspect, the system comprising: A simulation data generation module configured to obtain simulation data; An image restoration predecessor module, configured to train an image restoration predecessor model based on simulation data; The image restoration successor module is configured to inherit the trained image restoration predecessor model to the image restoration successor model based on transfer learning, and the image restoration successor model is trained unsupervised under the guidance of the image restoration predecessor model; The image restoration module is configured to restore the real-time blurred image using the trained image restoration model.
[0049] The technical solution of the third aspect of the present invention provides an electronic device, comprising: a processor and a memory communicatively connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor can execute the steps of the image deblurring method based on inheritance learning as described in any one of the technical solutions of the first aspect.
[0050] The technical solution of the fourth aspect of the present invention provides a computer-readable storage medium, on which is stored a program for implementing an image deblurring method based on inheritance learning. The program for implementing an image deblurring method based on inheritance learning is executed by a processor to implement the steps of the image deblurring method based on inheritance learning described in any one of the technical solutions of the first aspect.
[0051] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of this specification. Although not explicitly stated here, those skilled in the art may make various modifications, improvements and corrections to this specification. Such modifications, improvements and corrections are suggested in this specification, so such modifications, improvements and corrections still belong to the spirit and scope of the exemplary embodiments of this specification.
[0052] At the same time, this specification uses specific words to describe the embodiments of this specification. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of this specification. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, certain features, structures or characteristics in one or more embodiments of this specification can be appropriately combined.
[0053] In addition, unless explicitly stated in the claims, the order of the processing elements and sequences described in this specification, the use of alphanumeric characters, or the use of other names are not intended to limit the order of the processes and methods of this specification. Although the above disclosure discusses some invention embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached claims are not limited to the disclosed embodiments. On the contrary, the claims are intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of this specification. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing server or mobile device.
[0054] Similarly, it should be noted that in order to simplify the description disclosed in this specification and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this specification, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the subject matter of this specification are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0055] Finally, it should be understood that the embodiments described in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.
Claims
1. The image deblurring method based on inheritance learning is characterized by: The steps include: Build a simulation data generation model and obtain simulation data; Training image restoration predecessor models based on simulation data; Based on transfer learning, the trained image restoration predecessor model is inherited to the image restoration successor model, and the image restoration successor model is trained unsupervised under the guidance of the image restoration predecessor model; The trained image restoration successor model is used to restore the real-time blurred image.
2. The image deblurring method based on inheritance learning according to claim 1, characterized in that: Build a simulation data generation model and obtain simulation data, including: Construct a simulation data generation model based on a generative adversarial network, which includes a degradation generator and a restoration generator; Inputting the simulated clear image into the degradation generator to generate a first blurred image, and inputting the first blurred image into the restoration generator to generate a first clear image; Input the simulated blurred image into the restoration generator to generate a second clear image, and input the second clear image into the degradation generator to generate a second blurred image; The simulation data generation model is trained using the first loss function, and the trained simulation data generation model is used to output labeled simulation data.
3. The image deblurring method based on inheritance learning according to claim 2, characterized in that: The expression of the first loss function is: In the formula, represents the first loss function; , , , Indicates the preset weight coefficient; represents the fidelity loss of the simulated blurred image; Indicates the fidelity loss of the simulated clear image; represents the SSIM structural similarity loss of simulated blurred images; represents the SSIM structural similarity loss of the simulated clear image; represents the simulated blurred image of the input; represents the simulated clear image of the input; represents the second blurred image; Indicates the first clear image.
4. The image deblurring method based on inheritance learning according to claim 1, characterized in that: Based on transfer learning, the trained image restoration predecessor model is inherited to the image restoration successor model. The image restoration successor model is trained unsupervised under the guidance of the image restoration predecessor model, including: Calculate the perceptual loss function, which is expressed as: In the formula, represents the perceptual loss function; Represents the decoded layer features of the image restoration successor model extracted based on the neural network; Represents the decoding layer features of the previous image restoration model extracted based on neural network; Represents a real blurred image; Represents the real blurred image after the real clear image generated by the image restoration successor model is degraded.
5. The image deblurring method based on inheritance learning according to claim 4, characterized in that: Based on transfer learning, the trained image restoration predecessor model is inherited to the image restoration successor model. The image restoration successor model is trained unsupervised under the guidance of the image restoration predecessor model, and also includes: Calculate the consistency loss function, which is expressed as: In the formula, represents the consistency loss function; It represents the real and clear image generated by the image restoration model; express After blurring, the clear image generated by the predecessor model is restored through image restoration.
6. The image deblurring method based on inheritance learning according to any one of claims 1 to 5, characterized in that: Use the trained image restoration model to restore the real-time blurred image, including: The first stage: segment the real-time blurred image, and its expression is: In the formula, Indicates real-time blurred image Blurred latent codes of image patches; Indicates real-time blurred image A restored image block of an image block; Indicates real-time blurred image Enhanced blur features of image blocks; represents the first stage sub-network; The real-time blurred image image blocks; Represents the overall fuzzy latent coding; represents the overall restored image; Indicates overall enhanced fuzzy features; Indicates that the image block features are connected to each other.
7. The image deblurring method based on inheritance learning according to claim 6, characterized in that: Using the trained image restoration model to restore the real-time blurred image, it also includes: The second stage: deblurring operation is performed at the original resolution, and its expression is: In the formula, represents the restored image corresponding to the real-time blurred image at the original resolution obtained after processing by the second-stage sub-network; represents the second stage sub-network; Represents a real-time blurred image input at native resolution.
8. Image deblurring system based on inheritance learning, characterized in that: The image deblurring method based on inheritance learning according to any one of claims 1 to 7 comprises: A simulation data generation module configured to obtain simulation data; An image restoration predecessor module, configured to train an image restoration predecessor model based on simulation data; The image restoration successor module is configured to inherit the trained image restoration predecessor model to the image restoration successor model based on transfer learning, and the image restoration successor model is trained unsupervised under the guidance of the image restoration predecessor model; The image restoration module is configured to restore the real-time blurred image using the trained image restoration model.
9. An electronic device, characterized in that: The electronic device includes: a processor and a memory communicatively connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor can perform the steps of the image deblurring method based on inheritance learning as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program for implementing an image deblurring method based on inheritance learning, and the program for implementing an image deblurring method based on inheritance learning is executed by a processor to implement the steps of the image deblurring method based on inheritance learning described in any one of claims 1 to 7.
