Sample enhancement method, model training method, equipment and storage medium

By using the superposition technology of high-definition texture images and real data in image denoising model training, enhanced data pairs are generated, which solves the problem of poor performance of the image denoising model in low-light scenes, improves the model effect, and reduces the need for real data. dependence.

CN118644413APending Publication Date: 2024-09-13HUNAN GOKE MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411019685.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In low-light scenes, image denoising models based on deep learning are prone to problems such as blur, artifacts, and green casts. Moreover, there are fewer texture samples based on real-collected clean-noisy data pairs, and the noise model is complex, resulting in model Poor performance.

Method used

By obtaining original data pairs of high-definition texture images and real images, matching shot noise parameters, generating noisy signals, superimposing to enhance denoised images and noisy images to form enhanced data pairs, which are used to train image denoising models to avoid damage Native noise distribution, enhanced image texture details, and expanded training data scale.

Benefits of technology

It effectively reduces over-blurring, artifacts, and green cast problems, improves the performance of the image denoising model in low-light scenes, reduces the dependence on a large amount of real data collection, increases the scale of training data, and improves the overall effect of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644413A
    Figure CN118644413A
Patent Text Reader

Abstract

The invention discloses a sample enhancement method, a model training method, equipment and a storage medium. The method comprises the following steps: acquiring a high-definition texture image, acquiring an original data pair obtained by a real image and shot noise parameters matched with the original data pair; the original data pair comprises an original de-noised image and an original noisy image corresponding to the original de-noised image; according to the shot noise parameter matched with the original data pair and the high-definition texture image, obtaining a noisy signal corresponding to the high-definition texture image; superposing the high-definition texture image and the original de-noised image to obtain an enhanced de-noised image, and superposing a noisy signal corresponding to the high-definition texture image and the original noisy image to obtain an enhanced noisy image corresponding to the enhanced de-noised image; the enhanced de-noised image and the enhanced noisy image form an enhanced data pair.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a sample enhancement method, a model training method, a device and a storage medium. Background Art

[0002] In recent years, deep learning-based image denoising technology has received widespread attention and attention in the field of image processing. At present, deep learning-based image denoising algorithms are mainly implemented by offline calibration of noise models. Specifically, the offline calibration of noise models mainly uses high-quality public image datasets to artificially superimpose different degrees of noise, thereby training a reliable denoising model.

[0003] However, for some scenes, such as low-light scenes, a larger gain is often required, and the difference between the approximate noise model and the true noise model becomes larger, which causes the noise reduction model to degrade in these scenes, and is prone to problems such as excessive blur, false lines, and green bias.

[0004] In contrast, based on the real collected clean-noisy data pairs, although the noise model is complete, the performance of the final trained model is not satisfactory due to the small number of texture samples and the complexity of the noise model. Summary of the invention

[0005] In view of this, the purpose of the present application is to provide a sample enhancement method, a model training method, a device and a storage medium, which can provide a sample image enhancement technology based on real data, while retaining the texture details of the real image to reduce problems such as excessive blur, pseudo-texture and green bias, and avoid destroying the noise distribution of the real data pair. It reduces the model's dependence on the collection of a large amount of real training data pairs, helps to significantly increase the scale of real denoising training data pairs, and thereby indirectly improves the effect of the denoising model obtained through training.

[0006] The specific plan is as follows:

[0007] In a first aspect, the present application discloses a sample enhancement method, comprising:

[0008] Acquire a high-definition texture image, an original data pair obtained by collecting a real image, and a shot noise parameter matched to the original data pair; the original data pair includes an original denoised image and an original noisy image corresponding to the original denoised image;

[0009] Obtaining a noisy signal corresponding to the high-definition texture image according to the shot noise parameter matched to the original data and the high-definition texture image;

[0010] The high-definition texture image is superimposed with the original denoised image to obtain an enhanced denoised image, and the noisy signal corresponding to the high-definition texture image is superimposed with the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image; the enhanced denoised image and the enhanced noisy image constitute an enhanced data pair.

[0011] In one embodiment, the step of superimposing the high-definition texture image with the original denoised image to obtain an enhanced denoised image, and superimposing the noisy signal corresponding to the high-definition texture image with the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image includes:

[0012] Randomly sampling the high-definition texture image and a noisy signal corresponding to the high-definition texture image;

[0013] The randomly sampled high-definition texture image is superimposed on the original denoised image to obtain an enhanced denoised image, and the randomly sampled noisy signal is superimposed on the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image.

[0014] In one embodiment, the randomly sampling the high-definition texture image and the noisy signal corresponding to the high-definition texture image includes:

[0015] Get random sampling coefficients;

[0016] The high-definition texture image and the noisy signal corresponding to the high-definition texture image are randomly sampled according to the random sampling coefficient.

[0017] In one embodiment, the randomly sampling the high-definition texture image and the noisy signal corresponding to the high-definition texture image according to the random sampling coefficient includes:

[0018] Multiplying the random sampling coefficient by the high-definition texture image to obtain a high-definition texture image after random sampling;

[0019] The random sampling coefficient is multiplied by the noisy signal corresponding to the high-definition texture image to obtain a noisy signal after random sampling.

[0020] In one embodiment, the step of superimposing the randomly sampled high-definition texture image with the original denoised image to obtain an enhanced denoised image includes:

[0021] Using the first formula, the randomly sampled high-definition texture image is superimposed on the original denoised image to obtain an enhanced denoised image;

[0022] Among them, the first formula is:

[0023] ;

[0024] represents the enhanced denoised image, represents the original denoised image, Represents a high-definition texture image after random sampling, represents the high-definition texture image.

[0025] In one embodiment, the step of superimposing the randomly sampled noisy signal with the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image includes:

[0026] Using the second formula, the randomly sampled noisy signal is superimposed on the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image;

[0027] Wherein, the second formula is:

[0028] ;

[0029] represents the enhanced noisy image, represents the original noisy image, represents the noisy signal after random sampling, K represents the shot noise parameter, represents the high-definition texture image.

[0030] In one embodiment, obtaining a high-definition texture image includes:

[0031] Acquire a target image set, wherein the target image set includes a plurality of initial high-definition images;

[0032] Using a general RGB denoising model, denoising the plurality of initial high-definition images in the target image set is performed to obtain a plurality of intermediate high-definition images;

[0033] The multiple intermediate high-definition images are subjected to inverse ISP processing to obtain multiple high-definition denoised images, wherein the multiple high-definition denoised images include the high-definition texture image.

[0034] In a second aspect, the present application discloses a model training method, comprising:

[0035] Acquire a training data pair, wherein the training data pair includes an enhanced data pair; the enhanced data pair is obtained according to the sample enhancement method described in the first aspect above;

[0036] The image denoising model is obtained by training using the enhanced data.

[0037] In a third aspect, the present application discloses a sample enhancement device, comprising:

[0038] An acquisition module, used to acquire a high-definition texture image, an original data pair obtained by collecting a real image, and a shot noise parameter matched to the original data pair; the original data pair includes an original denoised image and an original noisy image corresponding to the original denoised image;

[0039] A processing module, configured to obtain a noisy signal corresponding to the high-definition texture image according to the matched shot noise parameters of the original data and the high-definition texture image;

[0040] The superposition module is used to superimpose the high-definition texture image with the original denoised image to obtain an enhanced denoised image, and to superimpose the noisy signal corresponding to the high-definition texture image with the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image; the enhanced denoised image and the enhanced noisy image constitute an enhanced data pair.

[0041] In a fourth aspect, the present application discloses a model training device, comprising:

[0042] An acquisition module, used to acquire a training data pair, wherein the training data pair includes an enhanced data pair; the enhanced data pair is obtained according to the sample enhancement method involved in the above aspect;

[0043] The training module is used to obtain an image denoising model by training using the enhanced data.

[0044] In a fifth aspect, the present application discloses an electronic device, comprising a processor and a memory; wherein, when the processor executes a computer program stored in the memory, it implements the steps of the aforementioned sample enhancement method or the aforementioned model training method.

[0045] In a sixth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the steps of the aforementioned sample enhancement method or the aforementioned model training method.

[0046] It can be seen that the present application obtains the original data pair obtained by acquiring the high-definition texture image and collecting the real image, and the shot noise parameters matched by the original data pair; the original data pair includes the original denoised image and the original noisy image corresponding to the original denoised image; according to the shot noise parameters matched by the original data pair and the high-definition texture image, the noisy signal corresponding to the high-definition texture image is obtained; the high-definition texture image is superimposed with the original denoised image to obtain an enhanced denoised image, and the noisy signal corresponding to the high-definition texture image is superimposed with the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image; the enhanced denoised image and the enhanced noisy image constitute an enhanced data pair.

[0047] The enhanced denoised image in the enhanced data pair finally obtained is obtained by superimposing the high-definition texture image on the original denoised image in the original data pair obtained based on the real image, and the enhanced noisy image in the enhanced data pair is obtained by superimposing the original noisy image in the original data pair with the noisy signal corresponding to the high-definition texture image, and the noisy signal is obtained based on the shot noise parameters matched by the original data pair. Therefore, on the one hand, this scheme will not destroy the original noise distribution in the original data pair, and at the same time, with the help of the high-definition texture image and the corresponding noisy signal superposition, it can enhance the real texture detail features in the image. On the other hand, the use of sample enhancement methods can also increase the data scale of the training data pair, which helps to indirectly improve the model performance of the trained denoising model. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0049] Figure 1 This is an optional flow chart of a sample enhancement method disclosed in this application;

[0050] Figure 2 This is a schematic diagram of the structure of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0052] The present application provides a sample enhancement scheme, which involves a sample enhancement method, a model training method, an electronic device and a storage medium. The enhanced data pairs obtained thereby will not destroy the native noise distribution in the original data pairs, and at the same time, with the help of high-definition texture images and corresponding noisy signal superposition, the real texture detail features in the image can be enhanced. On the other hand, the use of the sample enhancement method can also increase the data scale of the training data pairs, helping to indirectly improve the model performance of the denoising model obtained by training.

[0053] Please see Figure 1 , Figure 1 : is an optional flow chart of a sample enhancement method in an embodiment of the present application. In this embodiment, the method includes the following steps:

[0054] S110, acquiring a high-definition texture image, an original data pair obtained by collecting a real image, and a shot noise parameter matched to the original data pair.

[0055] The original data pair includes an original denoised image and an original noisy image corresponding to the original denoised image.

[0056] S120, obtaining a noisy signal corresponding to the high-definition texture image according to the shot noise parameter matched to the original data and the high-definition texture image.

[0057] S130, superimposing the high-definition texture image with the original denoised image to obtain an enhanced denoised image, and superimposing the noisy signal corresponding to the high-definition texture image with the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image; the enhanced denoised image and the enhanced noisy image constitute an enhanced data pair.

[0058] The embodiment of the present application obtains a high-definition texture image, collects a real image to obtain an original data pair and a shot noise parameter that matches the original data pair; the original data pair includes an original denoised image and an original noisy image corresponding to the original denoised image; according to the shot noise parameter that matches the original data pair and the high-definition texture image, a noisy signal corresponding to the high-definition texture image is obtained; the high-definition texture image is superimposed with the original denoised image to obtain an enhanced denoised image, and the noisy signal corresponding to the high-definition texture image is superimposed with the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image; the enhanced denoised image and the enhanced noisy image constitute an enhanced data pair. The enhanced denoised image in the enhanced data pair finally obtained is obtained by superimposing the high-definition texture image on the original denoised image in the original data pair obtained based on the real image, and the enhanced noisy image in the enhanced data pair is obtained by superimposing the original noisy image in the original data pair with the noisy signal corresponding to the high-definition texture image, and the noisy signal is obtained based on the shot noise parameters matched by the original data pair. Therefore, on the one hand, this scheme will not destroy the original noise distribution in the original data pair, and at the same time, with the help of the high-definition texture image and the corresponding noisy signal superposition, it can enhance the real texture detail features in the image. On the other hand, the use of sample enhancement methods can also increase the data scale of the training data pair, which helps to indirectly improve the model performance of the trained denoising model.

[0059] The high-definition texture image can be understood as a clean texture sample image. For example, the high-definition texture image can be a clean texture image in the RGB domain, a clean texture image in the RAW domain, or a clean texture image in other domains.

[0060] The high-definition texture image may be included in a high-definition texture sample set, from which the high-definition texture image may be randomly extracted or obtained in sequence when acquiring the high-definition texture image. The high-definition texture sample set may be obtained through reasonable and legal means. For example, the high-definition texture sample set may be DIV2K, DF2K, etc.

[0061] The above-mentioned original data pair is a training data pair obtained through real acquisition, which can be obtained by acquiring real image data through an image sensor, or can be directly read from a storage module such as a memory. The original data pair includes an original denoised image and an original noisy image corresponding to the original denoised image, that is, Data pair.

[0062] In some examples, the above raw data pairs are raw data pairs based on the RAW domain. It should be noted that since RAW format images have a higher bit depth, the corresponding noise model is also simpler, so constructing raw data pairs for RAW images to train noise models can reduce the difficulty of model training.

[0063] The actual acquisition process of the above raw data pairs may include:

[0064] The long and short exposure images are respectively collected by an image sensor or a collection device including an image sensor at different image gains. The following exposure equivalence formula needs to be satisfied as a whole during collection, thereby constructing a raw data pair.

[0065] in, ;

[0066] Among them, EX is the specific time of long and short exposure, which is the value that needs to be calculated during the acquisition process. and is a fixed sensitivity parameter, such as and Can be set to 100 and 1550 respectively.

[0067] For example, taking the image gain under low light conditions as an example, long and short exposure images with image gains dgain of 5, 15, 30, 50 and 90 respectively may be collected to construct raw data pairs.

[0068] For example, the image sensor may be sensor 08a20 or sensor 04a10 and the like.

[0069] The shot noise can strictly follow the Poisson distribution, and correspondingly, the shot noise parameter can be a Poisson gain parameter K, which can be obtained by calibration of the Poisson-Gaussian model. The shot noise parameter is related to the image sensor that collects the original data pair, and therefore can also be understood as matching the original data pair.

[0070] Noise can be constructed for the high-definition texture image using the above-mentioned shot noise parameters to obtain a noisy signal corresponding to the high-definition texture image. The noisy signal can be the shot noise of the noisy image corresponding to the high-definition texture image.

[0071] It should be noted that in the field of image processing, especially in the field of RAW images, the common read-shot noise can be modeled as a Poisson-Gaussian mixed noise model, where the (shot) noise strictly follows the Poisson distribution, while the read-out (read) noise gradually deviates from the Gaussian distribution with the gain.

[0072] It is worth noting that the shot noise shot is correlated with the signal, while the read noise read is independent of the signal. In addition, the inventors of this application found that since the shot noise shot has the characteristics of independent additivity, for clean images , its noise model satisfies the Poisson-Gaussian model PG, that is, it satisfies the following formula:

[0073] .

[0074] Where K is the system gain of the calibrated Poisson noise, that is, the shot noise parameter, and P is the standard Poisson distribution sampling. is Gaussian noise.

[0075] For clean images Independent other clean samples , and its additive result satisfies the following formula: ; .

[0076] It can be seen from the above formula that for any clean sample I and the original data pair collected through real sampling, the noise calibration parameter can be combined with the above formula to assist in noise sample enhancement to obtain a new enhanced data pair.

[0077] That is, based on the above noise modeling principle analysis and assumptions, for the original data pairs obtained through real collection, based on high-quality high-definition texture samples and shot noise parameters, by superimposing high-definition texture images on the original denoised images, we can obtain enhanced denoised images, and superimposing noisy signals corresponding to high-definition texture images on the original noisy images, we can obtain enhanced noisy signals, which are obtained based on the shot noise parameters matched by the original data pairs. Therefore, compared with traditional data enhancement technology, this scheme will not destroy the original noise distribution in the original data pairs. At the same time, with the help of high-definition texture images and corresponding noisy signal superposition, the real texture detail features in the image can be enhanced. While improving the image processing performance, it can also reduce the dependence on the collection of a large number of real original data pairs, increase the data scale of training data pairs, and help indirectly improve the performance of the trained denoising model in various scenes, especially low-light scenes. Overall, this innovative data enhancement strategy has broad application prospects in the fields of image denoising and super-resolution reconstruction.

[0078] In some optional examples of S110, the process of acquiring the high-definition texture image may include:

[0079] S111, acquiring a target image set, wherein the target image set includes a plurality of initial high-definition images;

[0080] S112, performing denoising processing on the plurality of initial high-definition images in the target image set using a general RGB denoising model to obtain a plurality of intermediate high-definition images;

[0081] S113, performing inverse ISP processing on the plurality of intermediate high-definition images to obtain a plurality of high-definition denoised images, wherein the plurality of high-definition denoised images include the high-definition texture image.

[0082] The target image set in this embodiment can be understood as the high-definition texture sample set in the RGB domain mentioned above. In other examples, if the target image set is a high-definition texture sample set in the RAW domain, there is no need to perform anti-ISP processing. Of course, noise reduction processing can also be performed through other general noise reduction models in the RAW domain, which will not be elaborated here.

[0083] Taking the high-definition texture sample set in the RGB domain as the target image set as an example, the images in the target image set obtained above are the initial high-definition images. In order to avoid the interference of the noise in the initial high-definition images on sample enhancement and subsequent denoising model training, multiple initial high-definition images in the target image set can be targeted here. For example, each initial high-definition image in the target image set can be denoised by a general RGB denoising model to obtain multiple intermediate high-definition images.

[0084] For example, the general RGB denoising model mentioned above may be a SCUNet (Scale-Correlated Spatial-ChannelU-Net) model.

[0085] Assuming that the data enhancement strategy is executed in the RAW domain, after obtaining the multiple intermediate high-definition images, the ISP (Image Signal Processing) parameters of the image processor used when the actual raw data was collected can be obtained, and the multiple intermediate high-definition images can be reversely ISP processed according to the ISP parameters. The reverse ISP processing can include reverse Gamma (gamma correction), reverse CCM (Color Correction Matrix), reverse AWB (AutoWhite Balance) and mosaic, etc.

[0086] After the inverse ISP processing, multiple high-definition denoised images in the RAW domain can be finally obtained. Each high-definition denoised image can be used as a high-definition texture image for data enhancement. Therefore, multiple groups of enhanced data pairs corresponding to the original data pairs can be obtained by superimposing the image data. Only a small number of original data pairs are needed to greatly increase the scale of real denoised data pairs, reducing the dependence on the collection of a large number of real data pairs.

[0087] In some embodiments, in the above step S130, the high-definition texture image is superimposed with the original denoised image to obtain an enhanced denoised image, and the noisy signal corresponding to the high-definition texture image is superimposed with the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image, including:

[0088] S131, randomly sampling the high-definition texture image and the noisy signal corresponding to the high-definition texture image;

[0089] S132, superimposing the randomly sampled high-definition texture image with the original denoised image to obtain an enhanced denoised image, and superimposing the randomly sampled noisy signal with the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image.

[0090] In this embodiment, the high-definition texture image and the noisy signal can be randomly sampled. The proportion of image data superimposed on the original denoised image and the original noisy image can be controlled by random sampling to reduce or even prevent overexposure of the superimposed image, so that the final enhanced data pair can be more consistent with the actual sample performance.

[0091] Exemplarily, in order to better control the ratio of randomly sampled image data superimposed on the original data pair, a random sampling coefficient may also be set, that is, the random sampling of the high-definition texture image and the noisy signal corresponding to the high-definition texture image may include:

[0092] Get random sampling coefficients;

[0093] The high-definition texture image and the noisy signal corresponding to the high-definition texture image are randomly sampled according to the random sampling coefficient.

[0094] The random sampling coefficient can be expressed as d. The random sampling coefficient can be obtained by random sampling addition gain d, and then the proportion of image data superimposed on the original data pair can be adjusted when constructing enhanced data pairs based on the Poisson noise model. For example, the proportion range of d can be between 0 and 0.5.

[0095] On the basis of setting the random sampling coefficient, the random sampling coefficient can be multiplied by the high-definition texture image to obtain the high-definition texture image after random sampling; the random sampling coefficient can be multiplied by the noisy signal corresponding to the high-definition texture image to obtain the noisy signal after random sampling. It can be understood that the process can be performed synchronously, sequentially or in reverse order.

[0096] It should be noted that, for data enhancement schemes that form the same set of enhanced data pairs, the random sampling coefficients when randomly sampling noisy signals and high-definition texture images should be consistent; for data enhancement schemes that form different groups of enhanced data pairs, the random sampling coefficients set between different groups may be different.

[0097] After random sampling, the high-definition texture image after random sampling can be superimposed with the original denoised image according to the following first formula in combination with the above noise modeling principle analysis and assumptions to obtain an enhanced denoised image.

[0098] Among them, the first formula is:

[0099] ;

[0100] represents the enhanced denoised image, represents the original denoised image, Represents a high-definition texture image after random sampling, represents the high-definition texture image, d is the random sampling coefficient, which is equivalent to the mixing degree of two different samples, and is mixed with the original data in proportion to enrich the sample diversity.

[0101] Using the second formula, the randomly sampled noisy signal is superimposed on the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image;

[0102] Wherein, the second formula is:

[0103] ;

[0104] represents the enhanced noisy image, represents the original noisy image, represents the noisy signal after random sampling, K represents the shot noise parameter, represents the high-definition texture image, and d is the random sampling coefficient.

[0105] It should be noted that the enhanced denoised image is obtained based on the first formula and the second formula respectively. and enhance noisy images , thus forming an enhanced data pair .

[0106] It should also be noted that, for the case where the random sampling coefficient is not set, that is, d=1, the above first formula and second formula can be simplified as follows, and the details will not be repeated.

[0107] in, ;

[0108] .

[0109] In summary, without considering the number of original data pairs actually collected, this scheme can theoretically obtain sufficient real data pairs required to train the real denoising model by referring to the above method and modeling assumptions, helping to reduce the dependence on the collection of a large number of real data pairs and greatly increase the scale of real denoising data pairs.

[0110] The present application also discloses a model training method, including:

[0111] S140, obtaining a training data pair, wherein the training data pair includes an enhanced data pair;

[0112] S150, using the enhanced data to train an image denoising model.

[0113] It should be noted that the above-mentioned enhanced data pairs can be obtained according to the above-mentioned sample enhancement method embodiment, so the model training method of this scheme can also include all the beneficial effects of the above-mentioned method embodiment.

[0114] In addition, the above training data pairs include not only enhanced data pairs, but also original data pairs obtained through real collection. The image denoising model trained by multiple sets of enhanced data pairs or multiple sets of enhanced data pairs combined with original data pairs has good performance in various scenes, especially low-light scenes, and can reduce the degradation of the model in various scenes, and reduce the probability of problems such as blur, false lines and green bias.

[0115] Accordingly, the embodiment of the present application further discloses a sample enhancement device, which includes:

[0116] An acquisition module, used to acquire a high-definition texture image, an original data pair obtained by collecting a real image, and a shot noise parameter matched to the original data pair; the original data pair includes an original denoised image and an original noisy image corresponding to the original denoised image;

[0117] A processing module, configured to obtain a noisy signal corresponding to the high-definition texture image according to the matched shot noise parameters of the original data and the high-definition texture image;

[0118] The superposition module is used to superimpose the high-definition texture image with the original denoised image to obtain an enhanced denoised image, and to superimpose the noisy signal corresponding to the high-definition texture image with the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image; the enhanced denoised image and the enhanced noisy image constitute an enhanced data pair.

[0119] In some embodiments, the stacking module may include:

[0120] A sampling unit, used for randomly sampling the high-definition texture image and a noisy signal corresponding to the high-definition texture image;

[0121] The superposition unit is used to superimpose the randomly sampled high-definition texture image with the original denoised image to obtain an enhanced denoised image, and to superimpose the randomly sampled noisy signal with the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image.

[0122] In some implementations, the sampling unit may also be used to obtain a random sampling coefficient; and randomly sample the high-definition texture image and the noisy signal corresponding to the high-definition texture image according to the random sampling coefficient.

[0123] In some embodiments, the sampling unit can also be used to multiply the random sampling coefficient by the high-definition texture image to obtain a high-definition texture image after random sampling; and multiply the random sampling coefficient by the noisy signal corresponding to the high-definition texture image to obtain a noisy signal after random sampling.

[0124] In some embodiments, the superposition unit is further used to superimpose the randomly sampled high-definition texture image with the original denoised image using the first formula to obtain an enhanced denoised image;

[0125] Among them, the first formula is:

[0126] ;

[0127] represents the enhanced denoised image, represents the original denoised image, Represents a high-definition texture image after random sampling, represents the high-definition texture image.

[0128] In some embodiments, the superposition unit is further configured to superimpose the randomly sampled noisy signal with the original noisy image using a second formula to obtain an enhanced noisy image corresponding to the enhanced denoised image;

[0129] Wherein, the second formula is:

[0130] ;

[0131] represents the enhanced noisy image, represents the original noisy image, represents the noisy signal after random sampling, K represents the shot noise parameter, represents the high-definition texture image.

[0132] In some embodiments, the acquisition module includes:

[0133] An acquisition unit, configured to acquire a target image set, wherein the target image set includes a plurality of initial high-definition images;

[0134] A denoising unit, configured to perform denoising processing on the plurality of initial high-definition images in the target image set using a general RGB denoising model to obtain a plurality of intermediate high-definition images;

[0135] The processing unit is used to perform inverse ISP processing on the multiple intermediate high-definition images to obtain multiple high-definition denoised images, wherein the multiple high-definition denoised images include the high-definition texture image.

[0136] Furthermore, the present application also discloses a model training device, including:

[0137] An acquisition module, used to acquire a training data pair, wherein the training data pair includes an enhanced data pair; the enhanced data pair is obtained according to the above-mentioned sample enhancement method embodiment;

[0138] The training module is used to obtain an image denoising model by training using the enhanced data.

[0139] Furthermore, the embodiment of the present application also discloses an electronic device, Figure 2 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0140] Figure 2 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the sample enhancement method or model training method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0141] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0142] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0143] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the sample enhancement method or model training method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0144] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the sample enhancement method or model training method disclosed above is implemented. For the specific steps of the method, reference can be made to the corresponding contents disclosed in the above embodiments, and no further description will be given here.

[0145] 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.

[0146] 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 this application.

[0147] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0148] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used 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", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including 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. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0149] The above is a detailed introduction to a sample enhancement method, device, equipment and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, 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 application.

Claims

1. A sample enhancement method, characterized in that: include: Acquire a high-definition texture image, an original data pair, and a shot noise parameter matched to the original data pair; the original data pair includes an original denoised image and an original noisy image corresponding to the original denoised image; Obtaining a noisy signal corresponding to the high-definition texture image according to the shot noise parameter matched to the original data and the high-definition texture image; The high-definition texture image is superimposed with the original denoised image to obtain an enhanced denoised image, and the noisy signal corresponding to the high-definition texture image is superimposed with the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image; the enhanced denoised image and the enhanced noisy image constitute an enhanced data pair.

2. The method according to claim 1, characterized in that The method of superimposing the high-definition texture image with the original denoised image to obtain an enhanced denoised image, and superimposing the noisy signal corresponding to the high-definition texture image with the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image, includes: Randomly sampling the high-definition texture image and a noisy signal corresponding to the high-definition texture image; The randomly sampled high-definition texture image is superimposed on the original denoised image to obtain an enhanced denoised image, and the randomly sampled noisy signal is superimposed on the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image.

3. The method according to claim 2, characterized in that The randomly sampling the high-definition texture image and the noisy signal corresponding to the high-definition texture image includes: Get random sampling coefficients; The high-definition texture image and the noisy signal corresponding to the high-definition texture image are randomly sampled according to the random sampling coefficient.

4. The method according to claim 3, characterized in that The randomly sampling the high-definition texture image and the noisy signal corresponding to the high-definition texture image according to the random sampling coefficient includes: Multiplying the random sampling coefficient by the high-definition texture image to obtain a high-definition texture image after random sampling; The random sampling coefficient is multiplied by the noisy signal corresponding to the high-definition texture image to obtain a noisy signal after random sampling.

5. The method according to claim 2, characterized in that: The step of superimposing the randomly sampled high-definition texture image with the original denoised image to obtain an enhanced denoised image includes: Using the first formula, the randomly sampled high-definition texture image is superimposed on the original denoised image to obtain an enhanced denoised image; Among them, the first formula is: ; represents the enhanced denoised image, represents the original denoised image, Represents a high-definition texture image after random sampling, represents the high-definition texture image.

6. The method according to claim 2, characterized in that The step of superimposing the randomly sampled noisy signal with the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image includes: Using the second formula, the randomly sampled noisy signal is superimposed on the original noisy image to obtain an enhanced noisy image corresponding to the enhanced denoised image; Wherein, the second formula is: ; represents the enhanced noisy image, represents the original noisy image, represents the noisy signal after random sampling, K represents the shot noise parameter, represents the high-definition texture image.

7. The method according to any one of claims 1 to 6, characterized in that: The obtaining of a high-definition texture image comprises: Acquire a target image set, wherein the target image set includes a plurality of initial high-definition images; Using a general RGB denoising model, denoising the plurality of initial high-definition images in the target image set is performed to obtain a plurality of intermediate high-definition images; The multiple intermediate high-definition images are subjected to inverse ISP processing to obtain multiple high-definition denoised images, wherein the multiple high-definition denoised images include the high-definition texture image.

8. A model training method, characterized in that: include: Acquire a training data pair, wherein the training data pair includes an enhanced data pair; the enhanced data pair is obtained according to the sample enhancement method according to any one of claims 1 to 7; The image denoising model is obtained by training using the enhanced data.

9. An electronic device, characterized in that: It comprises a processor and a memory; wherein, when the processor executes the computer program stored in the memory, it implements the steps of the sample enhancement method according to any one of claims 1 to 7 or the model training method according to claim 8.

10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the sample enhancement method according to any one of claims 1 to 7 or the model training method according to claim 8 are implemented.