Training method and device of image noise reduction model, noise reduction method and device, equipment and medium

Through the two-stage training method, image texture restoration and pseudo-texture removal training solve the problem in the existing technology that a single training is difficult to take into account the image quality requirements of different ISO segments, and achieve efficient noise reduction effects in each ISO segment.

CN118537255APending Publication Date: 2024-08-23HUNAN GOKE MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410857301.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing image noise reduction algorithms are difficult to take into account the image quality requirements of different ISO segments, and a single training process cannot simultaneously handle the rich texture features of the low ISO segment and the noise requirements of the high ISO segment.

Method used

A two-stage training method is adopted. First, the initial image denoising model is trained to restore image texture to obtain an intermediate image denoising model. Then, the intermediate model is trained to remove pseudo textures and residual noise to form rich texture requirements for low ISO segments and high ISO segments. Decoupled training process for noise requirements.

Benefits of technology

A target image denoising model with good noise reduction effect in each ISO segment is realized, which can restore texture details and improve noise artifacts, improving image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537255A
    Figure CN118537255A
Patent Text Reader

Abstract

The invention discloses an image noise reduction model training method and device, a noise reduction method and device, equipment and a medium, and the method comprises the steps: carrying out the image texture recovery training of an initial image noise reduction model, and obtaining an intermediate image noise reduction model; and carrying out false texture removal and residual noise training on the intermediate image noise reduction model to obtain a target image noise reduction model. According to the invention, during model training, texture recovery processing training is firstly carried out, and then noise and pseudo-texture removal training is carried out on the basis, so that decoupling training of rich texture requirements of a low ISO segment and noise requirements of a high ISO segment is realized, the effect of the finally obtained target image noise reduction model is improved, and the image noise reduction quality is indirectly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of computer vision and image processing, and in particular to a training method for an image denoising model, an image denoising method, a training device for an image denoising model, an electronic device and a computer-readable storage medium. Background Art

[0002] Since the original image data obtained by shooting has read noise (Read Noise) and shot noise (Shot Noise), it is necessary to perform noise reduction processing to obtain a high-quality output image. The current noise reduction processing technology for original image data mainly faces the following technical difficulties:

[0003] Most existing image denoising algorithms require building specialized noise models based on the characteristics of different image sensors and training the corresponding denoising networks based on sensitivity (ISO) segments, which is a cumbersome process.

[0004] In order to simplify the training, the industry generally uses calibrated ISO parameters to form a universal denoising network, but the universal denoising network obtained by this solution is difficult to take into account the denoising quality requirements of images in different ISO segments. It can be seen that when the network model capacity is limited, the above single training process is difficult to simultaneously handle the image quality requirements of different ISO segments. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a training method, denoising method, device, equipment and medium for an image denoising model, which solves the technical problem in the prior art that a single training process is difficult to take into account image quality requirements of different ISOs through a decoupled training process of rich texture requirements in low ISO segments and noise requirements in high ISO segments, thereby improving the image denoising quality.

[0006] In order to solve the above technical problems, the present invention provides a training method for an image denoising model, comprising:

[0007] Perform image texture restoration training on the initial image denoising model to obtain an intermediate image denoising model;

[0008] The intermediate image denoising model is trained to remove pseudo texture and residual noise to obtain a target image denoising model.

[0009] Optionally, the performing image texture restoration training on the initial image denoising model includes:

[0010] The initial image denoising model is trained for texture restoration using a strong texture response loss function and high-definition texture image samples as supervision.

[0011] Optionally, the training of removing pseudo texture and residual noise from the intermediate image denoising model includes:

[0012] The intermediate image denoising model is trained for removing noise pseudo-texture using a noise smoothing loss function and enhanced clean image samples corresponding to the high-definition texture image samples as supervision.

[0013] Optionally, the performing texture restoration training on the initial image denoising model includes:

[0014] Perform texture restoration training on the initial image denoising model according to the long training cycle and the first learning rate;

[0015] The performing noise pseudo-texture removal training on the intermediate image denoising model comprises:

[0016] Performing noise pseudo-texture removal training on the intermediate image denoising model based on a short training cycle and a second learning rate;

[0017] The long training cycle is greater than the short training cycle; and the first learning rate is greater than the second learning rate.

[0018] Optionally, the first learning rate has a plurality of adjustment cycles, each adjustment cycle being a cycle in which the first learning rate is initialized by the third learning rate and the first learning rate is gradually reduced during the model training process.

[0019] Optionally, when the sensitivity of the high-definition texture image sample is less than or equal to a sensitivity threshold, the enhanced clean image is the high-definition texture image sample;

[0020] When the sensitivity of the high-definition texture image sample is greater than the sensitivity threshold, the enhanced clean image is an image obtained after the high-definition texture image sample is denoised by a universal denoising model.

[0021] The present application also provides an image noise reduction method, comprising:

[0022] Acquire image data to be denoised;

[0023] The image data to be denoised is input into a target image denoising model for denoising processing to obtain denoised image data, wherein the target image denoising model is a target image denoising model trained using the method described in the above claims.

[0024] The present application also provides a training device for an image denoising model, comprising:

[0025] The first training module is used to perform image texture restoration training on the initial image denoising model to obtain an intermediate image denoising model;

[0026] The second training module is used to train the intermediate image denoising model to remove pseudo textures and residual noise to obtain a target image denoising model.

[0027] The present application also provides an electronic device, comprising:

[0028] Memory for storing computer programs;

[0029] A processor is used to implement the steps of the above-mentioned image denoising model training method or image denoising method when executing the computer program.

[0030] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the training method of the image denoising model or the steps of the image denoising method as described above are implemented.

[0031] It can be seen that the target image denoising model involved in the embodiment of the method of the present invention includes two training stages during training, wherein the initial image denoising model is first trained to restore image texture, and then, based on the training results, training is performed to remove pseudo texture and residual noise, thereby forming a decoupled training process for the rich texture requirement of the low ISO segment and the noise requirement of the high ISO segment, which can take into account the image quality requirements of different ISOs, so that the target image denoising model finally obtained has a good denoising effect in each ISO segment, and the image data to be denoised that is finally input into the target image denoising model can restore texture details and improve noise pseudo textures, thereby improving the image quality as a whole, thereby solving the technical problem in the prior art that a single training process is difficult to take into account the image quality requirements of different ISOs.

[0032] In addition, the present invention also provides an image denoising method, an image denoising model training device, an electronic device and a computer-readable storage medium, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0034] Figure 1 A flowchart of a method for training an image denoising model provided by an embodiment of the present invention;

[0035] Figure 2 This is an example diagram of an image denoising model training method involved in an embodiment of the present invention;

[0036] Figure 3 A schematic diagram of the structure of a training device for an image denoising model provided by an embodiment of the present invention;

[0037] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] Most existing image denoising algorithms, such as the RAWNR (Noise Reduction for Raw) algorithm, require building a specialized noise model for different image sensor characteristics and training the corresponding denoising network based on sensitivity segmentation, which is a cumbersome process.

[0040] To simplify training, the industry generally uses calibrated ISO parameters in the same network to form a universal denoising network model. However, this universal denoising network model is difficult to take into account the denoising quality requirements of images in different ISO ranges.

[0041] That is, when the network model capacity is limited, a single training process is difficult to simultaneously handle the image quality requirements of different ISO segments. For example, the low ISO segment requires richer texture features, while the high ISO segment requires smoother flat areas and fewer pseudo-textures. At this stage, there is a serious contradiction in requirements between the high and low ISO segments.

[0042] The inventors of this application have discovered that some solutions in the related art can perform two-stage fine-tuning based on a pre-trained model by adjusting data sample distribution and data enhancement. However, the second stage also faces the contradictory problem of insufficient texture in the low ISO segment and more pseudo-textures in the high ISO segment.

[0043] In view of the above difficulties, the embodiment of the present application uses the prior knowledge of the image restoration model that "texture details are difficult to restore, while flat areas are easy to restore" to design a two-stage image denoising network training scheme based on alienated target penalty. Specifically, a training method for an image denoising model, an image denoising method, a training device for an image denoising model, an electronic device and a computer-readable storage medium are provided. By executing a two-stage training method when training the target image denoising model, the decoupling of the rich texture requirement in the low ISO segment and the noise requirement in the high ISO segment is achieved in the lightweight model training process.

[0044] The following first introduces a training method for an image denoising model involved in an embodiment of the present application.

[0045] Please refer to Figure 1 , Figure 1 A flowchart of a method for training an image denoising model provided by an embodiment of the present invention. The method may include:

[0046] S101, performing image texture restoration training on the initial image denoising model to obtain an intermediate image denoising model.

[0047] S102, training the intermediate image denoising model to remove pseudo textures and residual noise to obtain a target image denoising model.

[0048] The execution subject of this embodiment is an electronic device. For example, the electronic device may be a computer; or the electronic device may also be a mobile phone; or the electronic device may also be a tablet.

[0049] Alternatively, the execution subject may be a chip or integrated circuit with image processing function, or may be a device equipped with the above chip or integrated circuit, and the device may be a front-end video surveillance device, for example.

[0050] The target image denoising model, the initial image denoising model and the intermediate image denoising model in this embodiment can be a lightweight denoising model Denoise, for example, the model can be based on DnCNN (Denoising Convolutional Neural Network, denoising convolutional neural network); or the model in this embodiment can also be a RIDNet (one-stage blind true image denoising network) model; or the model in this embodiment can also be a PMRID (Practical Deep Raw Image Denoising on Mobile Devices, transform domain image denoising) model.

[0051] It should be noted that this embodiment is different from the existing single-stage training scheme based on L1 / L2 loss. It designs a two-stage image denoising network model training scheme based on alienation target penalty. Specifically, the first training stage, that is, the stage of obtaining the intermediate image denoising model from the initial image denoising model training, is aimed at restoring complex semantic textures and weak textures, so that the trained intermediate image denoising model has better performance in restoring image texture. The second training stage, that is, the stage of obtaining the target image denoising model from the intermediate image denoising model training, is based on maintaining the texture performance of the first training stage, so as to achieve the purpose of removing the high ISO segment pseudo-grain and residual noise generated in the first training stage.

[0052] Overall, guided by the prior knowledge of the image restoration model that "texture details are difficult to restore, while flat areas are easy to restore", the two-stage alienation training goal of first restoring the texture and then removing the noise artifacts generated during the noise texture training process is achieved. This can effectively decouple the contradiction between the rich texture requirements in the low ISO segment and the noise requirements in the high ISO segment in the production process of the actual image denoising model.

[0053] In summary, the image denoising model involved in this embodiment includes two training stages during training, wherein the initial image denoising model is first trained to restore image texture, and then, based on the training results, training is performed to remove pseudo texture and residual noise, thereby forming a decoupled training process for the rich texture requirements of the low ISO segment and the noise requirements of the high ISO segment, which can take into account the image quality requirements of different ISOs, so that the target image denoising model finally obtained has a good denoising effect in each ISO segment, and the image data to be denoised that is finally input into the target image denoising model can restore texture details and improve noise pseudo textures, thereby improving the image quality as a whole, thereby solving the technical problem in the prior art that a single training process is difficult to take into account the image quality requirements of different ISOs.

[0054] It should be further explained that the intermediate image denoising model obtained by the above training can be an image denoising model after a convergence, that is, whether the intermediate image denoising model is formed can be determined according to the convergence of the model. Alternatively, it can also be determined whether the training is completed and the intermediate image denoising model is obtained according to the number of iterations of the model and / or the change of parameters during training.

[0055] For the two-stage training, the standard for obtaining the target image denoising model can also refer to the intermediate image denoising model, which will not be elaborated here.

[0056] The training process of the first training stage, that is, the process of training the initial image denoising model to restore image texture, may include:

[0057] With the strong texture response loss function and high-definition texture image samples as supervision, the initial image denoising model is trained for texture restoration to obtain the intermediate image denoising model.

[0058] The training process of the second training stage includes:

[0059] The intermediate image denoising model is trained for removing noise pseudo-texture using a noise smoothing loss function and enhanced clean image samples corresponding to the high-definition texture image samples as supervision to obtain a target image denoising model.

[0060] The above-mentioned strong texture response loss function is a loss function with strong texture response constructed before the start of the first training stage, which is helpful to greatly improve the model's performance for texture.

[0061] The strong texture response loss function may include at least one of a biased L1 function and a structural loss function, both of which can greatly improve the effect of the model on texture restoration when applied to model optimization.

[0062] For example, the strong texture response loss function in this embodiment may be Charloss, where Charloss is a biased L1 function commonly used in super-resolution models.

[0063] Alternatively, the strong texture response loss function in this embodiment may also be a structural loss function (SSIM).

[0064] Alternatively, the strong texture response loss function in this embodiment may also be a loss function formed by combining Charloss and SSIM.

[0065] Exemplarily, the above strong texture response loss function may be:

[0066] ;

[0067] in, is the output image of the target image denoising model during the training process, and L is the high-definition texture image sample.

[0068] The above-mentioned high-definition texture image samples are the clean samples involved in the first training stage of the model, that is, the stage from the initial image denoising model to the intermediate image denoising model. They and the corresponding noisy samples constitute a data training pair, which can be combined with the strong texture response loss function to optimize the texture recovery training of the model.

[0069] A high-quality training RGB image dataset required for an initial image denoising model can be obtained by collecting or sampling. The image data in the image dataset are high-definition texture image samples. The number of high-definition texture image samples in the dataset can be greater than or equal to 3,000, 5,000, or 6,000, and can also be greater than other numerical values.

[0070] Further, the parameters of Gaussian Poisson noise can be calibrated according to the general method, and noisy samples can be synthesized by combining high-definition texture image samples, and then the noisy samples can be input into the initial image denoising model in the first training stage to obtain the output image of the model. .

[0071] According to the output image The high-definition texture image sample L corresponding to the input noisy sample in the data training pair can be used to calculate the latest strong texture loss function, and texture restoration optimization training is performed based on the latest strong texture loss function until the model training is completed. The latest image denoising model obtained is the intermediate image denoising model.

[0072] After the first stage of training is completed and the intermediate image denoising model is obtained, the second stage of training can be started. In the second stage of training, the overall premise is to maintain the texture performance of the first training stage, so as to remove the high ISO segment pseudo-texture and residual noise generated in the first training stage. The target image denoising model obtained is the general image denoising model of the final output.

[0073] The noise smoothing loss function involved is a loss function that penalizes noise and artifacts. For example, the noise smoothing loss function mentioned above is a more stable mean absolute error L1 loss function that can smooth noise.

[0074] The enhanced clean image samples corresponding to the high-definition texture image samples can be GT data, which can be processed by segmentation of a general denoising model. It should be noted that the high-definition texture samples collected for the first training stage will introduce additional noise, which is helpful for texture recovery in the first training stage, but will cause pseudo-textures and excessive noise in the high ISO segment training results of the second training stage. This embodiment specifically uses enhanced clean image samples as supervision, which can enhance the model's ability to remove noise and pseudo-textures in the second training stage.

[0075] In addition, considering that the texture information lost in noisy samples is difficult to recover, a longer iteration period (epoch) can be set for the first training stage. It is also possible to combine hyperparameters such as the restarted cosine annealing learning rate adjustment strategy (RestartCosLR) to improve the model's fitting performance as much as possible, so as to maximize the restoration of image details and resolution.

[0076] Exemplarily, the long training cycle in this embodiment may be a long cycle of 80-220. For example, the iteration cycle (epoch) of the first stage training of this embodiment may be 80; or the iteration cycle of the first stage training of this embodiment may be 150; or the iteration cycle of the first stage training of this embodiment may be 220.

[0077] It should be noted that compared with texture restoration training, the model in the second training stage is easier to remove residual noise and pseudo-textures. Therefore, the iteration cycle designed in the second training stage in this embodiment is shorter than the iteration cycle designed in the first training stage, that is, a short training cycle is adopted in the second training stage, and the long training cycle is greater than the short training cycle.

[0078] Exemplarily, the short training cycle may be between 3 and 12. For example, the iteration cycle of this embodiment during the second stage training may be 3; or the iteration cycle of this embodiment during the second stage training may be 8; or the iteration cycle of this embodiment during the second stage training may also be 12.

[0079] Similarly, when setting the learning rate, the first learning rate in the first training stage is relatively large, and the second learning rate in the second training stage is relatively small, that is, the first learning rate is greater than the second learning rate.

[0080] Based on the above statements, in this embodiment, the process of performing texture restoration training on the initial image denoising model may include:

[0081] The initial image denoising model is trained for texture restoration according to a long training cycle and a first learning rate.

[0082] The process of training the intermediate image denoising model for removing noise and pseudo texture may include:

[0083] The intermediate image denoising model is trained for removing noise and pseudo texture based on a short training cycle and a second learning rate.

[0084] The long training cycle is greater than the short training cycle; and the first learning rate is greater than the second learning rate.

[0085] It should be noted that in order to improve the fitting performance of the model as much as possible in the first training stage, a cosine annealing learning rate adjustment strategy with restart is set in the first training stage, that is, the above-mentioned first learning rate has multiple adjustment cycles, each adjustment cycle is a cycle in which the third learning rate is used as the initial first learning rate and the first learning rate gradually decreases during the model training process.

[0086] Exemplarily, the maximum learning rate or the third learning rate in the first learning rate may be 1e-3 to 1e-4. For example, the maximum learning rate (Maxlr) in this embodiment may be 2e-4; or the maximum learning rate in this embodiment may be 1e-3.

[0087] Exemplarily, the maximum learning rate in the second learning rate may be 3e-5 to 1e-5. For example, the maximum learning rate in the second stage training of this embodiment may be 2e-5; or 1e-5.

[0088] This embodiment designs a shorter training cycle (epoch) and a smaller learning rate (Maxlr) for the second stage of training, and can also be combined with a more stable mean absolute error L1 loss that can smooth noise for supervision. The model obtained after the second training is the final output target image denoising model.

[0089] Please see Figure 2 , Figure 2 A training schematic diagram of the target image denoising model involved in an embodiment of the present application is shown, wherein the sample data is a high-definition texture image sample, and the noise parameter is a calibrated Gaussian Poisson noise parameter. After synthesis, the data training pair used in the first training stage, i.e., the first-stage training data, can be obtained.

[0090] In the first training stage, the model uses a long training period of 150, a maximum first learning rate of 1e-4, and a strong texture loss function of charloss+SSIM.

[0091] In the second training stage, the model uses a short training period of 8, a maximum second learning rate of 3e-5, and a loss function of L1.

[0092] In summary, this scheme adopts a long training cycle, a cosine annealing learning rate with restarts, a loss function centered on texture penalty (strong texture response loss function), and normal textured target data (image texture samples) as supervision in the first training stage to restore complex semantic textures and weak textures.

[0093] The second training stage adopts a short training cycle, a micro learning rate (the second learning rate), a loss function that penalizes noise and artifacts (noise smoothing loss function), and enhanced clean image samples corresponding to the high-definition texture image samples as supervision, with the texture performance of the first training stage as the premise, to achieve the purpose of removing high-segment artifacts and residual noise generated in the first training stage.

[0094] Overall, guided by the prior knowledge of the image restoration model that "texture details are difficult to restore, while flat areas are easy to restore", a two-stage alienation penalty training method was formed, which can effectively decouple the contradiction between the low-end ISO rich texture and high-end noise requirements in the production process of the actual image denoising model.

[0095] It should be further explained that, in order to obtain enhanced clean image samples corresponding to the high-definition texture image samples, this embodiment can also specifically use a universal denoising model to perform segmented processing on sample data of different ISOs.

[0096] That is, when the sensitivity of the high-definition texture image sample is less than or equal to the sensitivity threshold, the clean image is enhanced to be the high-definition texture image sample.

[0097] When the sensitivity of the high-definition texture image sample is greater than the sensitivity threshold, the enhanced clean image is an image obtained after the high-definition texture image sample is denoised by a universal denoising model.

[0098] For example, the sensitivity threshold in this embodiment may be 5w; or the sensitivity threshold in this embodiment may be 6w.

[0099] For another example, the sensitivity threshold is related to the model of the image sensor, for example, the sensitivity threshold of a 04a10 sensor may be 5w.

[0100] This embodiment does not limit the specific universal denoising model, as long as the universal denoising model can remove noise. For example, the universal denoising model in this embodiment can be SCUNet (super-resolution model); or the universal denoising model in this embodiment can also be a joint noise simulation and denoising model.

[0101] It should be noted that the use of high-definition texture images in the first training stage is helpful for texture recovery, but it will cause pseudo-textures and excessive noise in the high-end training results of the second training stage. This embodiment specifically processes sample data of different ISOs. In particular, it processes high-definition texture image samples with ISO greater than the sensitivity threshold, thereby achieving sample data enhancement, meeting the requirements for sample flatness, and preventing the occurrence of pseudo-textures and excessive noise in the second training stage, thereby improving the noise and pseudo-texture removal performance of the model in the second training stage.

[0102] The present application also provides an image noise reduction method, the method comprising:

[0103] Acquire image data to be denoised;

[0104] The image data to be denoised is input into a target image denoising model for denoising processing to obtain denoised image data.

[0105] The image data to be denoised in this embodiment may be image data with noise, for example, original image data obtained through shooting, and the original image data may be a RAW domain image.

[0106] The above-mentioned target image denoising model is a target image denoising model trained using the above-mentioned image denoising model training method, and therefore also has all the above-mentioned beneficial effects.

[0107] The following is an introduction to a training device for an image denoising model provided in an embodiment of the present invention. The training device for an image denoising model described below and the training method for an image denoising model described above can refer to each other.

[0108] Please refer to Figure 3 , Figure 3 A structural diagram of a training device for an image denoising model provided by an embodiment of the present invention may include:

[0109] The first training module 100 is used to perform image texture restoration training on the initial image denoising model to obtain an intermediate image denoising model;

[0110] The second training module 200 is used to train the intermediate image denoising model to remove pseudo textures and residual noise to obtain a target image denoising model.

[0111] Further, based on the above embodiment, the above first training module 100 is also used to perform texture restoration training on the initial image denoising model using a strong texture response loss function and high-definition texture image samples as supervision.

[0112] Furthermore, based on the above embodiment, the second training module 200 is also used to perform noise pseudo-texture removal training on the intermediate image denoising model using a noise smoothing loss function and enhanced clean image samples corresponding to the high-definition texture image samples as supervision.

[0113] Further, based on any of the above embodiments, the above first training module 100 is further used to perform texture restoration training on the initial image denoising model according to the long training cycle and the first learning rate;

[0114] The second training module 200 is also used to perform noise pseudo-texture removal training on the intermediate image denoising model based on a short training cycle and a second learning rate;

[0115] The long training cycle is greater than the short training cycle; and the first learning rate is greater than the second learning rate.

[0116] Further, based on the above embodiment, the first learning rate has multiple adjustment cycles, each adjustment cycle is a cycle in which the first learning rate is taken as the initial first learning rate by the third learning rate and the first learning rate gradually decreases during the model training process.

[0117] Further, based on any of the above embodiments,

[0118] When the sensitivity of the high-definition texture image sample is less than or equal to the sensitivity threshold, the enhanced clean image is the high-definition texture image sample;

[0119] When the sensitivity of the high-definition texture image sample is greater than the sensitivity threshold, the enhanced clean image is an image obtained after the high-definition texture image sample is denoised by a universal denoising model.

[0120] Furthermore, the above strong texture response loss function is ,in, is the output of the trained image denoising model, L is the clean data in the clean dataset; Charloss is the L1 function with bias, and SSIM is the structural loss function.

[0121] It should be noted that the order of the modules and units in the training device for the above-mentioned image denoising model can be changed without affecting the logic.

[0122] An image noise reduction device provided by an embodiment of the present invention is introduced below. The image noise reduction device includes:

[0123] An acquisition module, used for acquiring image data to be denoised;

[0124] The input module is used to input the image data to be denoised into the target image denoising model for denoising processing to obtain the denoised image data.

[0125] The target image denoising model is a target image denoising model trained using an image denoising model training method.

[0126] An electronic device provided by an embodiment of the present invention is introduced below. The electronic device described below and the training method of the image denoising model or the image denoising method described above can refer to each other.

[0127] Please refer to Figure 4 , Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention may include:

[0128] A memory 10, used for storing computer programs;

[0129] The processor 20 is used to execute a computer program to implement the above-mentioned image denoising model training method or image denoising method.

[0130] The memory 10 , the processor 20 , and the communication interface 30 all communicate with each other via a communication bus 40 .

[0131] In the embodiment of the present invention, the memory 10 is used to store one or more programs, and the program may include a program code, and the program code includes a computer operation instruction. In the embodiment of the present invention, the memory 10 may store a functional program for implementing the method of the above embodiment, for example, a program that can execute the following functions:

[0132] Perform image texture restoration training on the initial image denoising model to obtain an intermediate image denoising model;

[0133] The intermediate image denoising model is trained to remove pseudo texture and residual noise to obtain a target image denoising model.

[0134] In a possible implementation, the memory 10 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.

[0135] In addition, the memory 10 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include an NVRAM. The memory stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic tasks and processing hardware-based tasks.

[0136] The processor 20 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, a microprocessor or any conventional processor, etc. The processor 20 may call a program stored in the memory 10 .

[0137] The communication interface 30 may be an interface of a communication module, and is used to connect to other devices or systems.

[0138] Of course, it should be noted that Figure 4 The structure shown does not constitute a limitation on the electronic device in the embodiment of the present invention. In actual applications, the electronic device may include Figure 4 More or fewer components than shown, or combinations of certain components.

[0139] The computer-readable storage medium provided in an embodiment of the present invention is introduced below. The computer-readable storage medium described below and the training method of the image denoising model or the image denoising method described above can be referenced to each other.

[0140] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the training method of the above-mentioned image denoising model or the steps of the image denoising method are implemented.

[0141] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0142] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0143] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0144] Finally, it should be noted that, in this article, relationships such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0145] The above is a detailed introduction to the training method of an image denoising model, the image denoising method, the device, the equipment and the computer-readable storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A training method for an image denoising model, characterized in that: include: The initial image denoising model is trained to restore the image texture to obtain an intermediate image denoising model; The intermediate image denoising model is trained to remove pseudo texture and residual noise to obtain a target image denoising model.

2. The method for training an image denoising model according to claim 1, characterized in that: The initial image denoising model is trained to restore image texture, including: The initial image denoising model is trained for texture restoration using a strong texture response loss function and high-definition texture image samples as supervision.

3. The method for training an image denoising model according to claim 2, wherein: The step of training the intermediate image denoising model to remove pseudo texture and residual noise includes: The intermediate image denoising model is trained for removing noise pseudo-texture using a noise smoothing loss function and enhanced clean image samples corresponding to the high-definition texture image samples as supervision.

4. The method for training an image denoising model according to claim 3, characterized in that: The texture restoration training of the initial image denoising model includes: Perform texture restoration training on the initial image denoising model according to the long training cycle and the first learning rate; The performing noise pseudo-texture removal training on the intermediate image denoising model comprises: Performing noise pseudo-texture removal training on the intermediate image denoising model based on a short training cycle and a second learning rate; The long training cycle is greater than the short training cycle; and the first learning rate is greater than the second learning rate.

5. The method for training an image denoising model according to claim 4, characterized in that: The first learning rate has a plurality of adjustment cycles, each adjustment cycle being a cycle in which the first learning rate is taken as an initial first learning rate and the first learning rate is gradually reduced during the model training process.

6. The method for training an image denoising model according to claim 3, characterized in that: When the sensitivity of the high-definition texture image sample is less than or equal to the sensitivity threshold, the enhanced clean image is the high-definition texture image sample; When the sensitivity of the high-definition texture image sample is greater than the sensitivity threshold, the enhanced clean image is an image obtained after the high-definition texture image sample is denoised by a universal denoising model.

7. An image denoising method, characterized in that: include: Acquire image data to be denoised; The image data to be denoised is input into a target image denoising model for denoising processing to obtain denoised image data, wherein the target image denoising model is a target image denoising model trained using the method described in any one of claims 1 to 6.

8. A training device for an image denoising model, characterized in that: include: The first training module is used to perform image texture restoration training on the initial image denoising model to obtain an intermediate image denoising model; The second training module is used to train the intermediate image denoising model to remove pseudo textures and residual noise to obtain a target image denoising model.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the method for training an image denoising model as described in any one of claims 1 to 6, or the steps of the image denoising method as described in claim 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the training method of the image denoising model according to any one of claims 1 to 6 or the steps of the image denoising method according to claim 7 are implemented.