A method, system and computer-readable medium for real-time controllable image denoising
By generating multi-level noise feature maps and performing decorrelation processing, combined with linear interpolation and automatic adjustment modules, the problem of real-time and noise control in the image denoising process in deep neural networks is solved, and real-time controllability of image denoising is achieved. and high efficiency.
Patent Information
- Application Number
- CN202410888768.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-04
AI Technical Summary
The existing deep neural network method cannot adjust the denoising results in real time according to user needs during the image denoising process, and has high computational complexity and cannot meet the real-time and flexible control of noise levels.
Multiple fixed-level noise feature maps are generated through the backbone network to strengthen their orthogonality, and the final denoised image is generated through linear interpolation and automatic adjustment modules to achieve controllability of the noise feature map and replace the traditional single output layer. Reduce computing costs.
It achieves real-time controllability and high efficiency of image denoising, reduces computing costs, is suitable for real-time interactive functions of deep denoising networks, and provides lightweight design and multi-level noise control.
Smart Images

Figure CN118411306B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of image processing technology, and in particular relates to a real-time controllable image denoising method, system and computer-readable medium. Background Art
[0002] Image denoising is a fundamental problem in computational photography and computer vision. With the development of deep neural networks, model-based denoising methods have achieved great success in generating clean images and videos. These techniques were developed to address a key problem: actual acquired digital images are often perturbed by noise due to various internal and external factors. Internal factors may include sensor defects and imperfections in electronic components, while external factors are usually related to environmental conditions, such as insufficient lighting, motion blur, or transmission errors. However, the improvement of reconstruction accuracy (such as PSNR, SSIM) is not always accompanied by an improvement in visual quality, which is the so-called perception-distortion trade-off.
[0003] In traditional denoising methods, we can easily adjust the denoising level by adjusting the relevant control parameters and get the visual effect we like. However, for typical deep network methods, we can only restore the degraded image to a fixed output with a predetermined restoration level. In recent years, several modulation methods have been proposed to produce continuous restoration effects between two predefined denoising levels. These methods can be divided into two categories: interpolation-based methods and conditional network-based methods. The former uses deep feature interpolation layers, while the latter introduces additional conditional networks for denoising control. Essentially, both methods are designed based on the observation that the network output changes continuously with the modulation of features / filters. This observation enables deep denoising control, but also brings some limitations. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a method, system and computer-readable medium for real-time and controllable image denoising, provide real-time operation for modifying noise generation strategy, and allow users to adjust denoising results under specific noise levels.
[0005] To achieve the above object, the present invention provides a real-time and controllable image denoising method:
[0006] S1, generate multiple fixed-level noise feature maps through the backbone network;
[0007] S2, sending these noise feature maps as input to the noise decorrelation module to strengthen the orthogonality of the noise distribution of the noise feature maps;
[0008] S3, performing simple linear interpolation on the obtained zero-correlation noise feature map to achieve a controllable denoising effect;
[0009] S4, the automatic adjustment module gives a set of optimal control parameters to generate the final denoised image.
[0010] As a further limitation of the technical solution of the embodiment of the present invention, generating multiple noise feature maps of fixed levels through the backbone network includes the following steps:
[0011] Given a noise feature image And the backbone network model ; That is, the input is an image of height H, width W and number of channels C, and the output is an image of height H, width W and number of channels LC, where L is the predefined number of noise levels;
[0012] By predefined noise level Corresponding to the generation of multi-level noise feature maps , and its corresponding relationship is shown in the formula:
[0013] ;
[0014] in, is a noise level operation that calculates the standard deviation of pixels in each noise feature map;
[0015] The multi-level noise feature map is obtained by replacing the last output layer of the traditional denoising network with a convolutional layer with an output channel size of L*C. The level of the noise feature map is explicitly generated by the normalization operation, and the calculation formula is as follows:
[0016] ;
[0017] in, is the network output, is the ith component separated from the channel dimension, resulting in can be considered as a given noise level The estimated noise feature map below;
[0018] As a further limitation of the technical solution of the embodiment of the present invention, the convolution layer directly outputs a multi-level noise feature map with high correlation The de-correlation module is used to strengthen the orthogonality of the noise distribution of the multi-level noise feature map to generate editable noise feature maps of different levels, which specifically includes the following steps:
[0019] The fixed level noise feature map of each prediction Reshape , where M = HWC, the reshaped Stacked in one dimension, we get ;
[0020] Calculate the noise covariance matrix, the formula is as follows:
[0021] ;
[0022] in, is the average value of N on channel M;
[0023] Calculate the whitening matrix by Newton iteration method , the covariance matrix calculated using the above formula Perform the following iterations:
[0024] ;
[0025] Where k is the iteration index and T is the number of iterations (either 3 or 4). , then guarantee Converge to , this condition can be obtained by Normalized to To achieve this, where tr() is the trajectory operator;
[0026] calculate Get the noise characteristic map after decorrelation ;
[0027] Reinvention And divide it into L noise feature maps to get editable fixed level noise ;
[0028] The normalization method in S1 is used to ensure the noise intensity of the decorrelated noise feature map.
[0029] As a further limitation of the technical solution of the embodiment of the present invention, the simple linear interpolation of the obtained zero-correlation noise feature map is performed to achieve a controllable denoising effect, and the specific operation is as follows:
[0030] Obtaining control parameters through target noise level , by this parameter Perform interpolation;
[0031] when When the elements of have zero correlation, the relationship between the control parameter and the target noise level is expressed in the following formula, where the noise is directly edited by the control parameter:
[0032] ;
[0033] Among them, Var() represents the variance operator;
[0034] The generated interpolation result is the target noise characteristic map.
[0035] As a further limitation of the technical solution of the embodiment of the present invention, the automatic adjustment module provides a set of optimal control parameters to generate a final denoised image, specifically comprising the following steps:
[0036] Given the decorrelated noise feature map from the noise decorrelation block, the automatic tuning module predicts a set of model-suggested control parameters, namely , to generate the default denoising result, The calculation formula is as follows:
[0037] ;
[0038] Where A represents the neural network layer of the backbone network, f represents the input feature map, Indicates temperature.
[0039] When faced with different needs, this set of parameters can be used as a starting point to fine-tune the final desired denoising strength.
[0040] Based on the same technical concept, the present invention also provides a real-time controllable image denoising system, comprising:
[0041] Noise feature map generation module: a set of noise levels is predefined, and multiple noise feature maps are generated accordingly through this module;
[0042] Lightweight output module: outputs multiple levels of noise feature maps, replacing the output layer based on the convolutional neural network model that only outputs one noise feature map;
[0043] Noise feature map decorrelation module: performs decorrelation operation on the generated multi-level noise feature map to obtain a zero-correlation multi-level noise feature map;
[0044] Automatic adjustment module: predicts the optimal control parameters and fine-tunes the noise intensity through the temperature softmax activation function.
[0045] Based on the same technical concept, the present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. The computer-executable instructions are the real-time controllable image denoising method as described above.
[0046] Compared with the prior art, the present invention has the following beneficial effects:
[0047] 1. The present invention replaces the traditional single noise feature map output layer with a lightweight output module to achieve the function of simultaneously outputting multiple levels of noise feature maps, providing a basis for the subsequent realization of noise controllability and improving output efficiency;
[0048] 2. The decorrelation module of the present invention strengthens the orthogonality of the noise feature map, thereby realizing arbitrary noise level control through noise feature map interpolation, and realizing the controllability of denoising; and the process does not require network inference, so even for deep denoising networks, real-time interactive functions can be achieved;
[0049] 3. The overall design of the present invention is lightweight, does not require multiple training stages and auxiliary networks, and the additional computing cost required is extremely low. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.
[0051] Figure 1 A flow chart of a method for real-time and controllable image denoising provided by an embodiment of the present invention is shown;
[0052] Figure 2 A schematic diagram of a process for generating a multi-level noise characteristic graph provided by an embodiment of the present invention is shown;
[0053] Figure 3 A schematic diagram of a process flow of a decorrelation module provided in an embodiment of the present invention is shown;
[0054] Figure 4 The structure diagram of the real-time controllable image denoising system provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0055] Existing denoising methods based on interpolation and conditional networks have their own shortcomings. Interpolation-based methods usually require multiple training stages, including pre-training two basic models; conditional network-based methods require joint optimization of the basic network and the conditional network, and the computational complexity is relatively high. None of the above methods can meet the real-time requirements of actual applications, and cannot adjust the denoising results at a specific noise level according to user needs. To this end, the present invention focuses on solving these two problems.
[0056] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0057] Figure 1 A flow chart of a method for real-time and controllable image denoising provided by an embodiment of the present invention is shown.
[0058] Specifically, the present invention provides a method for real-time and controllable image denoising, and the method specifically comprises the following steps:
[0059] S1, generate multiple fixed-level noise feature maps through the backbone network;
[0060] In an embodiment of the present invention, Figure 2 A schematic diagram of the process of generating a multi-level noise feature map is shown; given a noise feature image And the backbone network model The backbone network model includes convolutional layer, pooling layer, activation function layer, fully connected layer, etc. The first layer of the network is passed as input; the convolution layer in the network extracts the features of the image, and the pooling layer reduces the spatial size of the data and the amount of calculation; nonlinear factors are introduced through nonlinear activation functions (such as ReLU, Sigmoid, etc.) so that the model can learn more complex patterns; finally, the features extracted by the previous layers are integrated into the final output through the fully connected layer; the last output layer of the traditional denoising network is replaced by a convolution layer with an output channel size of L*C to obtain a multi-level noise feature map;
[0061] S2, sending these noise feature maps as input to the noise decorrelation module to strengthen the orthogonality of the noise distribution of the noise feature maps;
[0062] In this embodiment, Figure 3 A schematic diagram of the decorrelation module is shown, which converts each predicted fixed level noise feature map Reshape ; (Reshaping process: treat the image data as a three-dimensional array; flatten this three-dimensional array into a one-dimensional array by multiplying the height H, width W and number of channels C, that is, M = H×W×C; the flattened array will contain M elements, each element is a pixel value in the original image) Stacked on one dimension, (stacking process: initialize an empty two-dimensional array with a size of L×M; traverse each reshaped one-dimensional vector and use it as a row of the two-dimensional array; repeat this process until all vectors are stacked into the two-dimensional array) to obtain ; Calculate the noise covariance matrix; Calculate the whitening matrix by Newton iteration method ;calculate Get the noise characteristic map after decorrelation ; Reshape And divide it into L noise feature maps to get editable fixed level noise ; The normalization method in S1 is used to ensure the noise intensity of the decorrelated noise feature map;
[0063] S3, performing simple linear interpolation on the obtained zero-correlation noise feature map to achieve a controllable denoising effect;
[0064] In this embodiment, the control parameter is obtained by the target noise level. , by this parameter Perform interpolation;
[0065] In this embodiment, the noise source, propagation path and receiving point are first analyzed to clarify the objectives and constraints of noise control, which will serve as the basis for obtaining control parameters; secondly, based on the objectives and constraints of noise control, appropriate control strategies and methods are selected, including active control, passive control or hybrid control strategies, depending on the nature of the noise source, environmental conditions and cost considerations; then, an acoustic model, a signal processing model or an optimization model is used to describe the propagation and control process of noise, and the model will calculate the corresponding control parameters by inputting information such as the characteristics of the noise source, environmental parameters and the target noise level; according to factors such as noise reduction effect, cost, and implementation difficulty, the control parameters are continuously optimized through iteration to find a control scheme that achieves the best comprehensive effect while meeting the target noise level;
[0066] S4, the automatic adjustment module gives a set of optimal control parameters to generate the final denoised image.
[0067] In this embodiment, given the decorrelation noise feature map of the noise decorrelation block, the automatic adjustment module will predict a set of control parameters recommended by the model to generate a default denoising result. When the output noise variance is It is also determined that under this condition, the module can be made to Participate in noise interpolation to further optimize the denoising result for a specific noise level, just use the reference control parameters can generate high-quality results. And users can Human Adjustment to further improve the results, even at the same noise level.
[0068] Based on the same technical concept, the present invention also provides a real-time controllable image denoising system, comprising:
[0069] Noise feature map generation module: a set of noise levels is predefined, and multiple noise feature maps are generated accordingly through this module;
[0070] Lightweight output module: outputs multiple levels of noise feature maps, replacing the output layer based on the convolutional neural network model that only outputs one noise feature map;
[0071] Noise feature map decorrelation module: performs decorrelation operation on the generated multi-level noise feature map to obtain a zero-correlation multi-level noise feature map;
[0072] Automatic adjustment module: predicts the optimal control parameters and fine-tunes the noise intensity through the temperature softmax activation function.
[0073] Based on the same inventive concept, an embodiment of the present invention further proposes a readable storage medium on which a computer program is stored. When the computer program is executed, the above-mentioned real-time and controllable image denoising method can be implemented.
[0074] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0075] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0076] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
Claims
1. A real-time and controllable image denoising method, It is characterized in that The method specifically comprises the following steps: S1. Generate multiple fixed-level noise feature maps through the backbone network, specifically including the following steps: Given a noise feature image And the backbone network model ; That is, the input is an image of height H, width W and number of channels C, and the output is an image of height H, width W and number of channels LC, where L is the predefined number of noise levels; By predefined noise level Corresponding to the generation of multi-level noise feature maps , and its corresponding relationship is shown in the formula: ; where σ is the noise level operation that calculates the standard deviation of pixels in each noise feature map; The multi-level noise feature map is obtained by replacing the last output layer of the traditional denoising network with a convolutional layer with an output channel size of L*C. The level of the noise feature map is explicitly generated through the normalization operation, and the calculation formula is as follows: ; in, is the network output, is the ith component separated from the channel dimension, resulting in Considered as a given noise level The estimated noise feature map below; S2. Send these noise feature maps as input to the noise decorrelation module to strengthen the orthogonality of the noise distribution of the noise feature map, which specifically includes the following steps: directly output the multi-level noise feature map with high correlation from the convolution layer The noise is sent to the decorrelation module for regularization processing to strengthen the orthogonality of the noise distribution of the multi-level noise feature map to generate editable noise feature maps of different levels; The specific operation process of the regularization process is: Each predicted fixed level noise feature map Reshape , where M = HWC, the reshaped Stacked in one dimension, we get ; Calculate the noise covariance matrix, the formula is as follows: ; in, is the average value of N on channel M; Calculate the whitening matrix by Newton iteration method , the covariance matrix calculated using the above formula Perform the following iterations: ; Where k is the iteration index and T is the number of iterations. The number of iterations is 3 or 4. If , then guarantee Converge to , this condition can be obtained by Normalized to To achieve this, where tr() is the trajectory operator; calculate Get the noise characteristic map after decorrelation ; Reinvention And divide it into L noise feature maps to get editable fixed level noise ; The normalization method in step S1 is used to ensure the noise intensity of the decorrelated noise feature map; S3. Perform simple linear interpolation on the obtained zero-correlation noise feature map to achieve a controllable denoising effect. The specific process includes: Obtaining control parameters through target noise level , by this parameter Perform interpolation; when When the elements of have zero correlation, the relationship between the control parameter and the target noise level is expressed in the following formula, where the noise is directly edited by the control parameter: ; Among them, Var() represents the variance operator; The generated interpolation result is the target noise feature map; S4, the automatic adjustment module gives a set of optimal control parameters to generate the final denoised image, which specifically includes the following steps: Given the decorrelated noise feature map from the noise decorrelation block, the automatic tuning module predicts a set of model-suggested control parameters, namely , to generate the default denoising result, The calculation formula is as follows: ; Where A represents the neural network layer of the backbone network, f represents the input feature map, Indicates temperature; When faced with different needs, this set of parameters can be used as a starting point to fine-tune the final desired denoising strength.
2. A real-time and controllable image denoising system, It is characterized in that include: Noise feature map generation module: a set of noise levels is predefined, and multiple noise feature maps are generated accordingly through this module; Lightweight output module: outputs multiple levels of noise feature maps, replacing the output layer based on the convolutional neural network model that only outputs one noise feature map; The specific steps include: Given a noise feature image And the backbone network model ; That is, the input is an image of height H, width W and number of channels C, and the output is an image of height H, width W and number of channels LC, where L is the predefined number of noise levels; By predefined noise level Corresponding to the generation of multi-level noise feature maps , and its corresponding relationship is shown in the formula: ; where σ is the noise level operation that calculates the standard deviation of pixels in each noise feature map; The multi-level noise feature map is obtained by replacing the last output layer of the traditional denoising network with a convolutional layer with an output channel size of L*C. The level of the noise feature map is explicitly generated through the normalization operation, and the calculation formula is as follows: ; in, is the network output, is the ith component separated from the channel dimension, resulting in Considered as a given noise level The estimated noise feature map below; Noise feature map decorrelation module: Decorrelation operation is performed on the generated multi-level noise feature map to obtain a zero-correlation multi-level noise feature map, which specifically includes the following steps: Directly output the multi-level noise feature map with high correlation from the convolution layer The data is sent to the decorrelation module for regularization processing to strengthen the orthogonality of the noise distribution of the multi-level noise feature map to generate editable noise feature maps of different levels; the specific operation process of the regularization processing is as follows: Each predicted fixed level noise feature map Reshape , where M = HWC, the reshaped Stacked in one dimension, we get ; Calculate the noise covariance matrix, the formula is as follows: ; in, is the average value of N on channel M; Calculate the whitening matrix by Newton iteration method , the covariance matrix calculated using the above formula Perform the following iterations: ; Where k is the iteration index and T is the number of iterations. The number of iterations is 3 or 4. If , then guarantee Converge to , this condition can be obtained by Normalized to To achieve this, where tr() is the trajectory operator; calculate Get the noise characteristic map after decorrelation ; Reinvention And divide it into L noise feature maps to get editable fixed level noise ; The same normalization method as in the lightweight output module is used to ensure the noise intensity of the decorrelated noise feature map; Automatic adjustment module: predict the best control parameters and fine-tune the noise intensity through the temperature softmax activation function. The specific steps include: obtaining the control parameters through the target noise level , by this parameter Perform interpolation; when When the elements of have zero correlation, the relationship between the control parameter and the target noise level is expressed in the following formula, where the noise is directly edited by the control parameter: ; Among them, Var() represents the variance operator; The generated interpolation result is the target noise feature map; Given the decorrelated noise feature map from the noise decorrelation block, the automatic tuning module predicts a set of model-suggested control parameters, namely , to generate the default denoising result, The calculation formula is as follows: ; Where A represents the neural network layer of the backbone network, f represents the input feature map, Indicates temperature; When faced with different needs, this set of parameters can be used as a starting point to fine-tune the final desired denoising strength.
3. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are the real-time and controllable image denoising method according to claim 1.
