Self-adaptive image restoration method based on degradation type and degree joint perception

By constructing a degradation-aware composite weather image dataset and a dynamic convolutional Transformer module, the problem of insufficient integration of multiple types and degrees of degradation information in existing technologies is solved, and accurate adaptive restoration of composite weather degradation images is achieved.

CN120953136AActive Publication Date: 2025-11-14SICHUAN UNIV
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202511484182.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-17
Publication Date
2025-11-14
Estimated Expiration
2045-10-17

AI Technical Summary

Technical Problem

Existing image restoration methods fail to fully integrate the differences in degradation type, degree, and image content information when faced with images degraded by complex weather conditions, making it difficult to achieve accurate and efficient restoration. Furthermore, there is a lack of high-quality datasets specifically designed for real-world images with complex weather degradation.

Method used

A degradation-aware composite weather image dataset DSD is constructed. Multi-dimensional information is generated by a degradation-aware scene descriptor generator. Adaptive image restoration is achieved by combining a degradation-aware dynamic convolutional Transformer module and a dynamic convolutional degradation adaptive restoration network.

Benefits of technology

The model's ability to restore image details and resist interference under complex weather conditions has been improved, and accurate adaptive restoration of images degraded by complex weather conditions has been achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120953136A_ABST
    Figure CN120953136A_ABST
Patent Text Reader

Abstract

The invention discloses a self-adaptive image restoration method based on degradation type and degree joint perception, and relates to the field of computer vision and artificial intelligence. The method comprises the following steps: firstly, constructing a degeneration type-degree fusion hierarchical analysis mechanism, and realizing multi-dimensional accurate perception of complex weather by jointly generating a type descriptor and a degree descriptor; secondly, a degradation self-adaptive restoration network based on dynamic convolution is designed, a restoration strategy is autonomously adjusted according to a degradation descriptor, the core of the network is that a degradation perception dynamic convolution Transform module is integrated, and a dynamic convolution kernel and a cross attention mechanism are adopted to realize directional regulation and control of the degradation descriptor on an image restoration process; finally, a complex weather data set DSD is constructed on the basis of an RAISE database. According to the invention, by improving the image restoration capability in complex weather, key technical support is provided for the fields depending on visual perception, such as automatic driving and security monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to an adaptive image restoration method based on joint perception of degradation type and degree, belonging to the field of computer vision and multimodal learning. Background Technology

[0002] In complex weather conditions such as rain, fog, snow, and low light, image and video quality deteriorates significantly due to environmental interference. For example, fog causes color distortion, blurring, and reduced contrast, making object outlines difficult to discern; rain and snow create dynamic noise and stripe occlusion, compromising the integrity of targets; and low light conditions result in localized underexposure, increased noise, and loss of critical information. These degradation phenomena not only affect human visual perception but also pose a serious threat to intelligent systems such as autonomous driving and security monitoring that rely on high-precision visual information. Therefore, image quality restoration technologies for complex weather conditions are crucial.

[0003] Current image restoration methods are mainly divided into two categories: models focused on specific weather degradations (such as rain removal, snow removal, low-light enhancement, and fog removal) and integrated restoration models designed to handle multiple degradations. Thanks to breakthroughs in deep learning technologies such as Transformer and Stable Diffusion, restoration methods focused on specific weather degradations (such as Transformer-based FE-DARFormer and Stable Diffusion-based Diff-Dehazer) have demonstrated superior performance in single degradation scenarios. These methods typically focus on a single weather degradation, but real-world scenarios often face complex degradation problems such as "rain-fog" or "rain-snow," making integrated restoration methods more valuable for practical applications.

[0004] Existing integrated restoration methods mainly include: multi-degradation restoration methods based on a unified architecture and multi-degradation restoration methods based on cue learning. Multi-degradation restoration methods based on a unified architecture (such as AirNet and WeatherDiff) handle multiple degradations through a single network structure, exhibiting good generalization ability and efficiency. However, they generally rely on fixed-parameter models to handle all degradation types, significantly limiting their adaptability and effectiveness when facing complex and variable composite degradation weather. Multi-degradation restoration methods based on cue learning (such as PromptIR and CoCoOp) enhance the model's flexibility and control by introducing cue learning. However, existing methods often fail to fully integrate multi-dimensional information related to degradation type, degree differences, and image content, making it difficult to achieve accurate and efficient restoration when processing complex weather-degraded images.

[0005] In real-world scenarios, complex weather conditions often lead to the overlapping of multiple degradation factors (such as rain, fog, and low illumination), resulting in images exhibiting complex types and varying degrees of quality degradation, such as "light rain-moderate fog" or "low illumination-moderate snow." Effective restoration of these images places higher demands on the model's degradation perception and adaptation capabilities. However, current methods often fail to fully integrate information related to multiple types and degrees of degradation and image content, making it difficult to achieve accurate and efficient restoration when processing complex weather-degraded images. Furthermore, there is a lack of high-quality datasets specifically designed for real-world complex weather degradation. Existing representative datasets, such as CDD, while including various degradation types, lack a quantitative evaluation system for the degree of degradation, making it difficult to meet the needs of joint modeling and performance evaluation of multiple degradations. Summary of the Invention

[0006] To address the issues of parameter fixation and insufficient utilization of degradation information in image restoration, this invention proposes an adaptive image restoration method, DegRestorNet, based on joint perception of degradation type and degree. The aim is to mitigate the impact of fixed parameters and insufficient information fusion during training on the model's restoration performance under complex weather conditions.

[0007] The technical solution of the present invention includes the following steps: (1) By establishing the Degradation Sensing Composite Weather Image Dataset (DSD), the present invention systematically simulates typical weather degradation and its combinations such as rain, snow, fog, and low illumination, generating a total of 11 degradation types and 5 degradation degree levels, realizing the simulation and coverage of multiple composite weather degradation scenarios; (2) By using the Degradation-Aware SceneDescriptor Generator (DASDG), type descriptors and degree descriptors are generated respectively. After further fusion, a degradation-aware scene descriptor containing multi-dimensional information is generated, and a hierarchical parsing mechanism for degradation features is constructed to provide degradation priors for image restoration. (3) Through the Degradation-Aware Dynamic Convolutional Transformer Module (DADCT), the Degradation-Aware Scene Descriptor Guided Module generates dynamic convolutional kernels and attention weights. For each degradation type and degree, the network can adaptively generate corresponding weight parameters and use them in the subsequent image restoration process. (4) By using Dynamic Convolution-based Degradation-Adaptive Restoration Network (DARN), the restoration strategy is adaptively adjusted with the help of dynamic convolution modules, enabling the model to dynamically adapt to different types and degrees of quality degradation such as rain, fog, snow, and low light, and achieve adaptive restoration of complex weather-degraded images.

[0008] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. This invention introduces a scene descriptor generator for degradation perception, constructs a hierarchical parsing mechanism that fuses degradation type and degree, and generates a degradation-perceived scene descriptor, thereby achieving multi-dimensional and accurate perception of complex weather. 2. This invention introduces a degradation-aware dynamic convolution Transformer module to adaptively generate convolution kernels and attention weights that match the type and degree of degradation, thereby improving the model's ability to restore image details and resist interference in complex degradation scenarios.

[0009] 3. This invention introduces a degradation adaptive restoration network based on dynamic convolution. By integrating a degradation-aware dynamic convolution Transformer module, it can autonomously adjust the image restoration strategy according to the input degradation descriptor, thereby effectively achieving adaptive restoration in complex weather degradation scenarios. Attached Figure Description

[0010] Figure 1: A block diagram illustrating the principle of the adaptive image restoration method based on joint perception of degradation type and degree according to the present invention; Figure 2: A schematic diagram of the generation of the dynamic adaptive image restoration dataset according to the present invention; Figure 3: Block diagram of the Degradation-Aware Dynamic Convolution Transformer module of the present invention; Figure 4 This invention provides a comparison of the image restoration results under "low illumination-fog-rain" test conditions. Figure 5 This invention provides a comparison of the image restoration results for a "low illumination-rain" test. Detailed Implementation

[0011] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0012] like Figure 1 As shown, an adaptive image restoration method based on joint perception of degradation type and degree includes the following steps: (1) A degradation-sensing composite weather image dataset (DSD) was constructed based on a physical degradation model. For each degradation image in the dataset... A structured metadata annotation file containing degradation types and quantization parameters was established, and an image-text pair dataset was constructed.

[0013] (2) The image-text dataset is used to train a scene descriptor generator for degradation perception. The training aims to maximize the semantic similarity between image features and text embedding vectors, thereby achieving cross-modal alignment between visual features and text semantics.

[0014] (3) For a given input degraded image Degradation-aware scene descriptors generated by a degradation-aware scene descriptor generator (Text information) guides the degradation-aware dynamic convolution Transformer module to dynamically generate convolution kernels and attention weights, which are then used in the subsequent image restoration process.

[0015] (4) For a given input degraded image Generate the corresponding degradation-aware scene descriptor Then, the images are input together into a degradation adaptive restoration network based on dynamic convolution for image restoration.

[0016] The detailed steps are as follows: Step (1): A Degradation-Sensitive Composite Weather Image Dataset (DSD) was constructed based on a physical degradation model.

[0017] Figure 2 shows a schematic diagram of the dataset generation. 1383 high-resolution images were selected from the RAISE database. Mathematical modeling was performed on four typical degradation types: "rain," "snow," "low light," and "haze," simulating the coupling of multiple degradation factors in real-world scenes. This generated a dataset containing 11 composite degradation types. These 11 degradation types are: "rain," "snow," "low light," "haze," "low-rain," "low-snow," "low-haze," "haze-rain," "haze-snow," "low-haze-rain," and "low-haze-snow." During the dataset construction process, the low, medium, and high levels of the four typical degradation types were systematically quantified into five degradation levels: "clear," "0," "low," "middle," and "high." The final dataset consists of 15,213 images with a resolution of 1080×720 (13,013 images in the training set and 2,200 images in the test set).

[0018] Specifically, during the construction of the DSD dataset, a structured metadata annotation file containing degradation type and quantization parameters was established for each degraded image, accurately recording the degradation type and degree (e.g., "light fog - moderate rain"), forming a standardized description system for multi-dimensional degradation information. Therefore, when training the degradation-aware scene descriptor generator, this invention uses the degradation type and degree text from the aforementioned structured metadata as auxiliary information to guide cross-modal alignment of visual features and textual semantics. After training, degraded images can be directly input into the generator to automatically generate corresponding degradation-aware scene descriptors, which serve as input prompts for subsequent degradation restoration networks, achieving adaptive image restoration without manual annotation.

[0019] Step (2): Train a scene descriptor generator for degradation perception. By aligning visual features with text semantics across modalities, the visual degradation features of the input image are mapped to the corresponding text description, i.e., the scene descriptor.

[0020] This invention proposes a scene descriptor generator for degradation perception, comprising two core modules: a degradation type identification module and a degradation severity evaluation module, which generate type descriptors and severity descriptors, respectively. The type descriptor describes different degradation modes such as rain, fog, snow, and low light, while the severity descriptor characterizes the severity of each degradation phenomenon. The two are fused to generate a degradation-perceived scene descriptor.

[0021] Degradation Type Recognition Module: To achieve coarse-grained classification of complex weather degradation images, a cross-modal feature space capable of representing semantic relationships needs to be constructed. Therefore, this invention employs a cross-modal feature construction method combining text semantic encoding and visual feature extraction. In text semantic encoding, a GloVe pre-trained word vector model is used to extract semantic features of five basic degradation types: "clear," "low light," "rain," "snow," and "haze." These features are then mapped to a 12-dimensional text vector space using a multilayer perceptron (MLP), explicitly modeling the semantic combination relationships of these 12 modes: "clear," "rain," "snow," "low light," "haze," "low-rain," "low-snow," "low-haze," "haze-rain," "haze-snow," "low-haze-rain," and "low-haze-snow." In visual feature extraction, ResNet-18 is used to capture the global structural features of the image, and then a mapping network consisting of convolutional layers, dropout layers, and fully connected layers is used to generate visual feature vectors. By combining basic degradation types, diverse degradation patterns in real-world scenarios are covered, avoiding the limitations of modeling a single degradation type. Text vectors and visual feature vectors share a 12-dimensional feature space, providing a unified benchmark for subsequent semantic matching.

[0022] To achieve precise semantic alignment between degraded images and text descriptions, this paper references classic cross-modal retrieval methods and characterizes semantic relevance by measuring the geometric distance between visual feature vectors and text vectors. The cosine similarity between the visual feature vector and the text vector is calculated. After normalization, the text embedding corresponding to the highest probability value is selected as the matching result, which can be expressed as follows: (1) in and These are text vectors and visual feature vectors. It is a temperature factor. It is the number of text vectors. For cosine similarity, This represents the similarity score.

[0023] Degradation Level Assessment Module: To achieve fine-grained quantification of degradation levels, independent intensity assessment branches are constructed for each single degradation type, such as low light, fog, rain, and snow, employing a cross-modal feature modeling framework similar to that used in the degradation type identification module. In text semantic encoding, five degree description texts ("clear", "0", "low", "middle", and "high") are used as input. A 5-dimensional text vector space is generated using a GloVe pre-trained word vector model and an MLP, explicitly representing the degree semantic features of different degradation types (such as low light intensity and fog concentration level). The visual feature extraction process shares the same ResNet-18 network as the degradation type identification module. The visual feature vectors output by the mapping network and the text vectors are semantically aligned using cosine similarity. Normalization enables the classification of degradation levels.

[0024] like Figure 1 As shown, during inference, a degraded image is input, and the scene descriptor generator for degradation perception generates semantic information output by the degradation type recognition module. Degradation information output by the degradation assessment module After channel splicing, degradation-aware scene cues are generated by MLP. .

[0025] Step (3): The Degradation-Aware Dynamic Convolution Transformer module dynamically generates convolution kernels and attention weights.

[0026] The degradation-aware dynamic convolutional Transformer module achieves adaptive restoration of diverse degradation scenarios by transforming degradation descriptors into dynamic network parameters. The structure is as follows: Figure 3 As shown, it consists of two modules: a dynamic convolutional kernel hyperparameter network and a degradation feature Transformer module. The dynamic convolutional kernel hyperparameter network takes degradation-aware scene descriptors as input and constructs a mapping from semantic representation to network parameters; the degradation feature Transformer module accepts parameters generated by the hyperparameter network and drives the dynamic adjustment of convolutional kernels and attention mechanisms.

[0027] Specifically, the dynamic convolutional kernel hyperparameter network uses three fully connected layers and a Gaussian error linear unit activation function to process the degradation-aware scene descriptor. The formula for nonlinear feature extraction is as follows: (2) in Let Gaussian error be the activation function of the linear unit. Degradation-aware scene descriptor To make the parameter generation more stable, the final hidden state... application Functions to ensure the generation of hyperparameters It is positive and normalized, suitable for multi-core fusion, and the formula is as follows: (3) in Belongs to the The weights of each convolution kernel, and the kernel coefficients satisfy... Hyperparameters The dynamic convolution weights of the Transformer module for degenerate features are calculated by weighted summation. The formula is as follows: (4) The weight matrix , Include A predefined set of convolutional kernels, each set containing These parameters collectively constitute all the convolutional kernel parameters required for the cross-attention module, self-attention module, and feedforward network convolutional layers in DADCT. The generated dynamic convolutional weights... It is used to replace the fixed convolutional kernels in these modules, enabling the network parameters to be adaptively adjusted according to the degradation features. For example, when the input descriptor represents "moderate rain-light fog", the module will generate corresponding convolutional kernels and attention weights to achieve customized restoration of specific degradation patterns, effectively improving the model's adaptability and restoration accuracy in complex scenes.

[0028] Step (4): Use a degradation adaptive restoration network based on dynamic convolution, with degradation descriptors guiding the restoration of the degradation image.

[0029] The restoration network is a typical encoder-decoder structure network to ensure efficient modeling of both the global structure and local details of the image. The SDTB module is used as the backbone unit of the encoder, and the previously generated degradation-aware scene descriptor serves as the query input for the cross-attention mechanism. By constructing a "degradation descriptor-image feature" cross-attention mechanism, deep fusion of degradation prior semantic information and image visual features is achieved, ensuring that the features extracted by the encoder contain explicit degradation semantic information. The decoder, based on the semantically enhanced features output by the encoder, utilizes a degradation-aware dynamic convolutional Transformer module to adaptively adjust the restoration strategy. This module takes the degradation-aware scene descriptor as conditional input and dynamically generates convolutional kernel parameters and attention weight matrices that match the current degradation mode through a dynamic convolutional kernel hyperparameter network. This drives the network to perform customized image restoration for specific degradation types and degrees, achieving parameter adaptive optimization guided by degradation scene awareness.

[0030] Overall loss during model training The definition is as follows: (5) in , and These represent L1 loss, MS-SSIM loss, and composite degradation recovery loss, respectively. , , For hyperparameters, , , , These represent positive samples, anchor points, input negative samples, and other negative samples, respectively. In the design of the contrastive loss, the restored image serves as the anchor point, the degraded input image serves as the input negative sample, the clear image serves as the positive sample, and other negative samples are introduced to enhance the discriminative ability. and Minimize the distance between the anchor point and the positive sample; Minimize the distance between the anchor point and positive samples, and maximize the distance between the anchor point and all negative samples. This improves the model's ability to perceive degradation in the representation space.

[0031] To verify the effectiveness of the method of this invention, tests and comparisons were conducted on the DSD dataset. Two multi-degradation restoration methods based on a unified architecture and five multi-degradation restoration methods based on cue learning were selected as comparison methods, specifically: Method 1: NAFNet proposed by Chen et al., see reference "Chen L, Chu X, Zhang X, et al. Simple baselines for image restoration / / European conference on computervision. Tel Aviv, 2022: 17-33." Method 2: OKNet proposed by Cui et al., see reference "Cui Y, Ren W, Knoll A. Omni-kernel network for image restoration / / Proceedings of the AAAI conference on artificial intelligence. Vancouver, 2024, 38(2): 1426-1434." Method 3: PromptIR proposed by Potlapalli et al., see reference "Potlapalli V, Zamir SW, Khan SH, et al. Promptir: Prompting for all-in-one image restoration. Advances in Neural Information Processing Systems, 2023, 36: 71275-71293." Method 4: WGWSNet proposed by Zhu et al., reference "Zhu Y, Wang T, Fu Method 5: RestorNet proposed by Wang et al., see reference "Wang X, Chen H, Gou H, He J, Wang Z, He X, Qing L, Sheriff RE. RestorNet: An efficient network for multiple degradation image restoration. Knowledge-Based Systems, 2023, 282:111116." Method 6: DEMNet proposed by Yang et al., see reference "Yang Y, Wang X, Lin X, Chen H. DEMNet: A degradation difference enabled multi-stage network for multiple degradation image restoration. Knowledge-Based Systems, 2025, 318: 113426." Method 7: OneRestore proposed by Guo et al., see reference "Guo Y, Gao Y, Lu Y, et al. Onerestore: A universal restoration framework for composite degradation / / European Conference on Computer Vision. Milan, 2024: 255-272." As shown in Table 1, this invention uses Peak Signal-to-Noise Ratio (SSIM), Structural Similarity Index (PSNR), and Floating-Point Operations (FLOPs) as evaluation metrics. All comparison methods were retrained on the DSD training set of this invention. Compared with the other seven methods, this invention has a significant advantage in performance on the DSD dataset.

[0032] Table 1 shows the comparison results with other methods on the DSD dataset, with the best results shown in bold.

[0033] Figure 4 and Figure 5 This paper showcases the performance of different image restoration methods in handling combined "low-light-fog-rain" and "low-light-rain" scenes. Results show that PromptIR and OKNet retain significant rain streaks in both combined scenes, while DEMNet introduces some noise in the "low-light-fog-rain" scene. Compared to existing image restoration methods, the proposed DegRestorNet algorithm demonstrates state-of-the-art performance, primarily due to the design of our degradation-aware scene descriptor generator and degradation-aware dynamic convolutional Transformer module. Both simultaneously address multiple degradation factors and robustly reconstruct scene details.

[0034] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An adaptive image restoration method based on joint perception of degradation type and degree, characterized in that... Includes the following steps: (1) By establishing the Degradation Sensing Composite Weather Image Dataset (DSD), we simulated 11 degradation types and 5 degradation degrees of weather degradation, including rain, snow, fog, low light intensity, low light intensity-rain, low light intensity-snow, low light intensity-fog, fog-rain, fog-snow, low light intensity-fog-rain, and low light intensity-fog-snow, thus achieving simulation and coverage of multiple composite weather degradation scenarios. (2) By using the Degradation-Aware Scene DescriptorGenerator (DASDG), type descriptors and degree descriptors are extracted respectively, and a hierarchical parsing mechanism of degradation features is used to fuse and generate degradation-aware scene descriptors, providing degradation priors for image restoration. (3) By using the Degradation-Aware Dynamic Convolutional Transformer Module (DADCT), dynamic convolution kernels and attention weights are generated using the degradation descriptor, so as to realize the directional control of the degradation descriptor on the image restoration process and apply it to subsequent restoration tasks. (4) By integrating the degradation-aware dynamic convolution Transformer module through the Dynamic Convolution-based Degradation-Adaptive Restoration Network (DARN), the restoration strategy is adjusted autonomously according to the degradation descriptor, so as to achieve adaptive restoration of complex weather degradation images.

2. The adaptive image restoration method based on joint perception of degradation type and degree as described in claim 1, characterized in that, The DSD dataset in step (1) involves selecting 1383 high-resolution images from the RAISE database and overlaying them with degradation. By mathematically modeling four typical degradation types—"rain," "snow," "low light," and "haze"—the coupling phenomenon of multiple degradation factors in real-world scenarios is simulated, generating a dataset containing 11 composite degradation types. During the dataset construction process, the low, medium, and high levels of the four typical degradation types are systematically quantified into five degradation levels: "clear," "0 / no correlation degradation," "low," "middle," and "high." During the DSD dataset construction process, a structured metadata annotation file containing degradation type and quantization parameters is established for each degraded image, accurately recording the degradation type and degradation level.

3. The adaptive image restoration method based on joint perception of degradation type and degree as described in claim 1, characterized in that, The method for generating degradation-aware scene descriptors using DASDG in step (2) involves DASDG, which comprises two core modules: a degradation type identification module and a degradation degree evaluation module, which respectively generate type descriptors. and degree descriptor Degradation-aware scene prompts are generated through fusion. .

4. The method for generating a degradation-aware scene descriptor using DASDG according to claim 3, characterized in that, First, train the type descriptor; A GloVe pre-trained word vector model was used to extract semantic features of five basic degradation types: "clear," "low light," "rain," "snow," and "haze." These features were then mapped to a 12-dimensional text vector space using a multilayer perceptron (MLP). For visual feature extraction, ResNet-18 was used to capture the global structural features of the image, and a mapping network consisting of convolutional layers, dropout layers, and fully connected layers was used to generate visual feature vectors. To achieve precise semantic alignment between the degraded image and the text description, the cosine similarity between the degraded image vector and the text vector was calculated. After normalization, the text embedding corresponding to the highest probability value is selected as the matching result, which can be expressed as follows: (1) in and These are text vectors and visual feature vectors. It is a temperature factor. It is the number of text vectors. For cosine similarity, This represents the similarity score.

5. The method for generating a degradation-aware scene descriptor using DASDG according to claim 3, characterized in that, Training level descriptor; For each single degradation type such as low light, fog, rain, and snow, an independent degradation intensity assessment branch is constructed. In text semantic encoding, five levels of text descriptions, namely "clear", "0", "low", "middle", and "high", are used as input. A 5-dimensional text vector space is generated through a GloVe pre-trained word vector model and MLP to explicitly represent the degree semantic features of different degradation types. The process of visual feature extraction and achieving semantic alignment between degraded images and text descriptions is consistent with the degradation type recognition module. During inference, a degraded image is input, and the scene descriptor generator for degradation perception generates semantic information output by the degradation type recognition module. Degradation information output by the degradation assessment module After channel splicing, degradation-aware scene cues are generated by MLP. .

6. The adaptive image restoration method based on joint perception of degradation type and degree as described in claim 1, characterized in that, The degradation-aware dynamic convolutional Transformer module DADCT in step (3) consists of two modules: a dynamic convolutional kernel hyperparameter network and a degradation feature Transformer module. The dynamic convolutional kernel hyperparameter network takes the degradation-aware scene descriptor as input to construct a mapping from semantic representation to network parameters. The degradation feature Transformer module accepts the parameters generated by the dynamic convolutional kernel hyperparameter network and drives the dynamic adjustment of the convolutional kernel and attention mechanism. The dynamic convolutional kernel hyperparameter network uses three fully connected layers and Gaussian error linear unit activation functions to process degradation-aware scene descriptors. The formula for nonlinear feature extraction is as follows: (2) in Let Gaussian error be the activation function of the linear unit. Degradation-aware scene descriptor To make the parameter generation more stable, the final hidden state... application Functions to ensure the generation of hyperparameters It is positive and normalized, suitable for multi-core fusion, and the formula is as follows: (3) in Belongs to the The weights of each convolution kernel, and the kernel coefficients satisfy... hyperparameters The dynamic convolution weights of the Transformer module for degenerate features are calculated by weighted summation. The formula is as follows: (4) The weight matrix , Include A predefined set of convolutional kernels, each set containing These parameters together constitute all the convolutional kernel parameters required for the cross-attention module, self-attention module, and feedforward network convolutional layers in DADCT.

7. The adaptive image restoration method based on joint perception of degradation type and degree as described in claim 1, characterized in that, In step (4), the degradation adaptive restoration network DARN based on dynamic convolution is used. A typical encoder-decoder structure network is adopted to ensure efficient modeling of the global structure and local details of the image. The SDTB module is used as the backbone unit of the encoder, and the degradation-aware scene descriptor generated in the early stage is used as the query input of the cross-attention mechanism. By constructing the cross-attention mechanism of "degradation descriptor-image features", the degradation prior semantic information and image visual features are deeply integrated to ensure that the features extracted by the encoder contain clear degradation semantic information. Based on the semantic enhancement features output by the encoder, the decoder uses the degradation-aware dynamic convolution Transformer module to complete the adaptive adjustment of the restoration strategy. This module takes the degradation-aware scene descriptor as the conditional input and dynamically generates the convolution kernel parameters and attention weight matrix that match the current degradation mode through the dynamic convolution kernel hyperparameter network. This drives the network to perform customized image restoration for specific degradation types and degrees, and realizes parameter adaptive optimization guided by degradation descriptors.

Citation Information

Patent Citations

  • Lightweight foggy day vehicle detection method based on deep learning

    CN116824542A

  • Image restoration method and device under severe weather condition, equipment and medium

    CN117830153A

  • Multi-degraded image restoration method based on self-adaptive prompt

    CN119515734A

  • Image restoration method and device, medium and equipment

    CN120339129A

  • Bad weather image restoration method based on multi-modal state space model

    CN120634891A