Image rain removal method based on depth prior non-local network

Through the image deraining method based on deep prior non-local network, combined with deep learning and traditional prior knowledge, the problem of feature and structure protection in the deraining process in the existing technology is solved, and efficient and clear image deraining effect is achieved. and provides an explainable process.

CN118552425APending Publication Date: 2024-08-27HUAIYIN INSTITUTE OF TECHNOLOGY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410765329.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

It is difficult for the existing technology to simultaneously protect important features and complex structures of the target during the rain removal process, and the calculation efficiency is low, or the processing process cannot be explained and analyzed.

Method used

An image deraining method based on deep prior non-local network is adopted. By integrating deep learning and traditional prior knowledge, an adaptive deep prior model is designed, and the non-local information processing module and residual network module are used for image deraining processing, replacing Convolutional neural network operator to achieve fast and clear image reasoning.

Benefits of technology

While protecting important features of the target, it effectively handles complex structures, achieves fast and efficient image rain removal, and interprets and analyzes them through the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552425A
    Figure CN118552425A
Patent Text Reader

Abstract

The invention relates to the technical field of image restoration, and discloses a depth prior non-local network-based image rain removal method, which comprises the following steps of: 1, acquiring a to-be-processed damaged image shot in a rainy day; step 2, fusing a depth prior model and depth learning, and when a depth prior image model is constructed, constructing a rain removal model by using depth prior instead of manual design prior; and step 3, solving the depth prior rain removal model, fusing a non-local module and a residual network, designing the solved model into a network form, training by using a data set to obtain proper depth prior and model parameters, and finally carrying out rain removal and background information restoration processing on an input rainy day image. Compared with the prior art, the method has the advantages that while important features of a target are protected, a complex structure is also protected; moreover, through designing a depth prior model into a network form, rapid and clear image reasoning processing can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to an image deraining method based on a deep priori non-local network. Background Art

[0002] When outdoor imaging systems work around the clock, they will inevitably be affected by rain, resulting in blurred images, loss of target information, and other problems. This has become one of the urgent issues that need to be addressed for outdoor imaging systems in rainy days.

[0003] At present, many methods have been proposed, including rain removal methods based on prior knowledge models and rain removal methods based on deep network learning. The method based on prior knowledge models can protect important structural information of the image while removing rain by designing appropriate regularization terms to represent rain marks and background information, and can well explain the processing process; however, this type of method takes a long time to calculate and cannot represent and protect complex image structures. The method based on deep network learning uses convolutional neural networks or graph networks to train on data sets to obtain end-to-end networks and parameters. Once trained, this type of method is efficient in inferring the results and can restore complex structures, but the network processing process cannot be explained, and it is difficult to analyze and design in principle. Summary of the invention

[0004] Purpose of the invention: In view of the problems pointed out in the background technology, the present invention proposes an image deraining method based on a deep prior non-local network. The method combines the advantages of traditional prior knowledge and deep networks, that is, it uses an adaptive deep prior that can be learned through training to replace the traditional manually designed image deraining model, so as to protect the important features of the target while protecting the complex structure; moreover, by designing the deep prior model into a network form, fast clear image reasoning processing can be achieved.

[0005] Technical solution: The present invention discloses an image deraining method based on a deep priori non-local network, comprising the following steps:

[0006] Step 1: Input the rain-degraded image to be processed;

[0007] Step 2: Use deep priors to replace artificially designed priors, integrate deep prior models and deep learning to propose an image deraining model based on a deep prior non-local network. The image deraining model is as follows:

[0008]

[0009] In the formula, and Φ(u) represent the depth prior of rain marks and the depth prior of clear background, respectively. Φ is the neural network operator corresponding to the depth prior of rain streak and the depth prior of clear background, α and β are the penalty parameters of the model, R represents the rain streak information, O represents the rain degradation map, and u represents the background information;

[0010] Step 3: Solve the image deraining model to obtain the k+1th rain mark information calculation result and the k+1th background information calculation result;

[0011] Step 4: According to the solution of step 3, a non-local network model is designed, wherein the non-local network model is composed of a non-local information processing module and four residual network modules connected in series, and the convolutional neural network operator in the solution of step 3 is replaced by the designed non-local network model;

[0012] Step 5: Design the model solved in step 3 into the non-local network model form of step 4, use the dataset to perform image deraining training, obtain appropriate depth priors and model parameters, and finally perform deraining and background information restoration processing on the input rainy image.

[0013] Furthermore, when solving the image deraining model in step 2, formula (1) is split into two single variable solution problems, namely:

[0014]

[0015] Among them, u k is the kth background information calculation result, u k+1 is the k+1th background information calculation result, R k+1 Indicates the calculation result of the k+1th rain mark information.

[0016] Furthermore, R in formula (2) k+1 The solution is:

[0017] S k+1 =R k -μ k (R k +u k -O) (4)

[0018]

[0019] In the formula, S k+1 represents the intermediate variable in the rain streak calculation process, represents soft threshold filtering, is a convolutional neural network operator, which is a convolutional neural network operator The transpose of μ k Indicates the iteration step size in the rain streak calculation process;

[0020] u in formula (3) k+1 The solution is:

[0021] P k+1 =u k -p k (u k +R k+1 -O) (6)

[0022]

[0023] Where P k+1 Represents the intermediate variables in the background information calculation process, represents soft threshold filtering, Φ T is the convolutional neural network operator, which is the transpose of the convolutional neural network operator Φ, p k Represents the iteration step size in the background information calculation process.

[0024] Furthermore, when designing the non-local network model in step 4, the algorithm to be solved is arranged into a network structure with multiple stage layers, and the structure corresponding to each stage layer of the network is represented by S k+1 , R k+1 , P k+1 、u k+1 Composition, convolutional neural network operator Φ, Φ T replaced by a designed non-local network model;

[0025] The k+1th stage of the network consists of R k 、u k And O as input, according to the number of iterations p k and μ k As well as formula (5) and formula (7), the intermediate variable S is introduced k+1 , P k+1 , the convolutional neural network operator Φ, Φ T Replaced with a non-local network model, the final output is R k+1 and u k+1 .

[0026] Furthermore, the non-local information processing module first calculates the input through three 1×1 convolution kernels to obtain three feature information, then multiplies the first two features, and inputs the result into the softmax function to obtain a new feature, and then multiplies the new feature with the third feature from the beginning, and calculates the result again using a 1×1 convolution kernel, and adds the final result to the initial input value to obtain the final result.

[0027] Furthermore, the residual network module calculates the input through three 3×3 convolution kernels, and then uses the ReLu activation function to calculate, and then the output value of the activation function is calculated through three 3×3 convolution kernels, and the final calculation result is added to the initial input value to obtain the final result.

[0028] Beneficial effects:

[0029] The present invention combines the advantages of traditional prior knowledge and deep networks, that is, it uses adaptive deep priors that can be learned through training to replace the traditional manually designed image deraining model, so as to protect the important features of the target while also protecting the complex structure; and by designing the deep prior model into a network form, it can achieve fast clear image reasoning processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 This is a diagram of the overall image deraining training network structure of the present invention;

[0031] Figure 2 for Figure 1 The calculation process corresponding to the kth stage in ;

[0032] Figure 3 for Figure 2 The structural diagram of the local network in China and Africa;

[0033] Figure 4 This is a structural diagram of the non-local information processing module of the present invention;

[0034] Figure 5 This is a structural diagram of the residual network module of the present invention;

[0035] Figure 6 : The figure shows a comparison of the rain removal results of the method of the embodiment of the present invention and other methods; (a) is a degraded image, (b) is a clear reference image, (c) is a dictionary learning restoration result, (d) is a convolutional neural network restoration result, (e) is a detail network restoration result, (f) is a simultaneous rain removal and restoration network restoration result, (g) is a directional gradient prior method restoration result, (h) is a two-step method restoration result, and (i) is a restoration result of the method of this patent. DETAILED DESCRIPTION

[0036] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0037] The present invention discloses an image deraining method based on a deep priori non-local network, which is mainly used for outdoor imaging systems working around the clock to achieve high-definition background information recovery, and includes the following steps:

[0038] Step 1: Input the rain-degraded image to be processed.

[0039] Step 2: In order to clearly restore the background information and remove rain marks in the image as much as possible, the deep prior is used to replace the artificially designed prior. The deep prior model and deep learning are integrated to propose an image deraining model based on a deep prior non-local network. The image deraining model is:

[0040]

[0041] In the formula, and Φ(u) represent the depth prior of rain streaks and the depth prior of the clear background, respectively. Φ is the neural network operator corresponding to the depth prior of rain marks and the depth prior of clear background, α and β are the penalty parameters of the model, R represents the rain mark information, O represents the rain degradation map, and u represents the background information.

[0042] Specifically, the embodiment of the present invention adopts an iterative shrinkage threshold algorithm to solve the problem. This is a prior art and is not the focus of the present invention. It will not be further described here. In order to obtain an effective iterative solution, the formula (1) is split into two single variable solution problems, namely:

[0043]

[0044] Among them, u k is the kth background information calculation result, u k+1 is the k+1th background information calculation result, R k+1 Indicates the calculation result of the k+1th rain mark information.

[0045] The solution of formula (2) is:

[0046] S k+1 =R k -μ k (R k +u k -O) (4)

[0047]

[0048] In the formula, S k+1 represents the intermediate variable in the rain streak calculation process, represents soft threshold filtering, is a convolutional neural network operator, which is a convolutional neural network operator The transpose of μ k Indicates the iteration step size in the rain streak calculation process.

[0049] The solution of formula (3) is:

[0050] P k+1 =u k -pk (u k +R k+1 -O) (6)

[0051]

[0052] Where P k+1 Represents the intermediate variables in the background information calculation process, represents soft threshold filtering, Φ T is the convolutional neural network operator, which is the transpose of the convolutional neural network operator Φ, p k Represents the iteration step size in the background information calculation process.

[0053] Φ T ,Φ four neural network operators, represents the neural network operator during iterative training of rain marks, Φ T , Φ represents the neural network operator when iteratively training the background information. Formulas (4)-(7) are designed into a network form using the addition, subtraction, multiplication and division operators corresponding to the neural network. The depth prior term in the network exists due to the convolutional neural network operator Φ and their transpose operators Φ T In order to utilize the non-local similar information in the image to achieve higher quality information protection, the present invention designs a non-local network model to replace the operator Φ Φ T .

[0054] See Network Form Figure 1 , Figure 1 This is the overall network framework for image deraining. The calculation process corresponding to the k+1th stage in the figure can be found in Figure 2 , each layer of the structure is composed of formulas (4)-(7). When designing the non-local network model, formulas (4)-(7) are arranged into a network structure with multiple stage layers. The structure corresponding to each stage layer of the network is composed of S k+1 , R k+1 , P k+1 、u k+1 Composition, convolutional neural network operator Φ, Φ T Replaced by the designed non-local network model.

[0055] See also Figure 2 , the k+1th stage layer of the network consists of R k 、u k And O as input, according to the number of iterations p k and μ kAs well as formula (5) and formula (7), the intermediate variable S is introduced k+1 , P k+1 , the convolutional neural network operator Φ, Φ T Replaced with a non-local network model, the final output is R k+1 and u k+1 . Figure 2 Where solverR corresponds to formula (5), and sloverU corresponds to formula (7).

[0056] Iterative solution of R k+1 When R k and O as input, according to the number of iterations p k Enter formula (5) and introduce the intermediate variable S k +1 ,Will Replaced with a non-local network model, while R k It is also used as the input of the non-local network and finally outputs R k+1 .

[0057] Iterative solution u k+1 When u k And O as input, according to the number of iterations μ k And the obtained R k+1 Enter formula (7) and introduce the intermediate variable S k+1 , P k+1 , the convolutional neural network operators Φ, Φ T Replaced with a non-local network model, the final output is u k+1 .

[0058] The specific form of the non-local network model is as follows Figure 3 ,In the figure, NLB represents the non-local information processing module of the network, such as Figure 4 As shown, RB represents the residual network module, such as Figure 5 shown.

[0059] The non-local network model consists of a non-local information processing module and four residual network modules in series. The non-local information processing module first calculates the input using three 1×1 convolution kernels to obtain three feature information, then multiplies the first two features, and brings the result into the softmax function to obtain a new feature, then multiplies the new feature with the third feature from the beginning, and then calculates the result using a 1×1 convolution kernel, and adds the final result to the initial input value to obtain the final result.

[0060] The residual network module calculates the input through three 3×3 convolution kernels, then uses the ReLu activation function to calculate, and then calculates the output value of the activation function through three 3×3 convolution kernels. The final calculation result is added to the initial input value to obtain the final result.

[0061] Figure 4 , Figure 5 In the formula, the softmax is: x is the input signal, conv represents the convolution operator, and Relu is the linear rectified unit activation function, and its formula is: represents the multiplication symbol, is the addition symbol.

[0062] The present invention uses the training data sets Rain100L and Rain100H for training. In the training, the initial learning rate η=0.001. The other parameters in the above deraining are automatically obtained by the designed model through training on the training samples in the experiment, without the need for parameter adjustment or manual setting. The above method is used for deraining. The deraining and information restoration performance of the present invention and other methods are as follows: Figure 6 ,It can be found from the figure that the method of the ,invention has better rain removal effect and higher information restoration ,quality.

[0063] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent transformation or modification made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. An image deraining method based on deep prior non-local network, characterized in that: The steps include: Step 1: Input the rain-degraded image to be processed; Step 2: Use deep priors to replace artificially designed priors, integrate deep prior models and deep learning to propose an image deraining model based on a deep prior non-local network. The image deraining model is as follows: In the formula, and Φ(u) represent the depth prior of rain marks and the depth prior of clear background, respectively. is the neural network operator corresponding to the depth prior of rain streak and the depth prior of clear background, α and β are the penalty parameters of the model, R represents the rain streak information, O represents the rain degradation map, and u represents the background information; Step 3: Solve the image deraining model to obtain the k+1th rain mark information calculation result and the k+1th background information calculation result; Step 4: According to the solution of step 3, a non-local network model is designed, wherein the non-local network model is composed of a non-local information processing module and four residual network modules connected in series, and the convolutional neural network operator in the solution of step 3 is replaced by the designed non-local network model; Step 5: Design the model solved in step 3 into the non-local network model form of step 4, use the dataset to perform image deraining training, obtain appropriate depth priors and model parameters, and finally perform deraining and background information restoration processing on the input rainy image.

2. The image deraining method based on deep prior non-local network according to claim 1, characterized in that: When solving the image deraining model in step 2, formula (1) is split into two single variable solution problems, namely: Among them, u k is the kth background information calculation result, u k+1 is the k+1th background information calculation result, R k+1 Indicates the calculation result of the k+1th rain mark information.

3. The image deraining method based on deep prior non-local network according to claim 2, characterized in that: R in formula (2) k+1 The solution is: S k+1 =R k -μ k (R k +u k -O) (4) In the formula, S k+1 represents the intermediate variable in the rain streak calculation process, represents soft threshold filtering, is a convolutional neural network operator, which is a convolutional neural network operator The transpose of μ k Indicates the iteration step size in the rain streak calculation process; u in formula (3) k+1 The solution is: P k+1 =u k -p k (u k +R k+1 -O) (6) Where P k+1 Represents the intermediate variables in the background information calculation process, represents soft threshold filtering, Φ T is the convolutional neural network operator, which is the transpose of the convolutional neural network operator Φ, p k Represents the iteration step size in the background information calculation process.

4. The image deraining method based on deep prior non-local network according to claim 3, characterized in that: When designing the non-local network model in step 4, the algorithm formulas (4) to (7) to be solved are arranged into a network structure with multiple stage layers. The structure corresponding to each stage layer of the network is represented by S k+1 , R k+1 , P k+1 、u k+1 Composition, convolutional neural network operator Φ, Φ T replaced by a designed non-local network model; The k+1th stage of the network consists of R k 、u k And O as input, according to the number of iterations p k and μ k As well as formula (5) and formula (7), the intermediate variable S is introduced k+1 , P k+1 , the convolutional neural network operator Φ, Φ T Replaced with a non-local network model, the final output is R k+1 and u k+1 .

5. The image deraining method based on deep prior non-local network according to claim 1 or 4, characterized in that: The non-local information processing module first calculates the input through three 1×1 convolution kernels to obtain three feature information, then multiplies the first two features, and inputs the result into the softmax function to obtain a new feature. Then, the new feature is multiplied by the third feature from the beginning, and the result is calculated using a 1×1 convolution kernel. The final result is added to the initial input value to obtain the final result.

6. The image deraining method based on deep priori non-local network according to claim 1 or 4, characterized in that: The residual network module calculates the input through three 3×3 convolution kernels, then uses the ReLu activation function to calculate, and then calculates the output value of the activation function through three 3×3 convolution kernels. The final calculation result is added to the initial input value to obtain the final result.

Citation Information

Patent Citations

  • Single image rain removing method based on optimization algorithm in combination with residual network

    CN110111267A

  • Dictionary learning rain removal method based on model driving and application thereof

    CN115393206A

  • Deep network image rain removal method based on gradient prior driving

    CN115393218A

  • Single image rain removal method based on gradient domain local binary model

    CN118037597A