Low-light image enhancement analysis method based on attention mechanism
By introducing a combination of multi-head self-attention mechanism and early stopping strategy in low-light image enhancement, the problems of insufficient detail processing and over-fitting in the existing technology are solved, and more refined feature representation and model generalization are achieved. Ensures enhanced image optimization.
Patent Information
- Application Number
- CN202411154572.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-22
AI Technical Summary
Existing low-light image enhancement methods are not precise enough at the detail level, and the model training process lacks an early stopping strategy, resulting in overfitting and waste of computing resources, and reducing generalization capabilities.
An enhanced network model based on the attention mechanism is used to decompose and reconstruct the image through the decomposition unit and the multi-head self-attention mechanism. The objective loss and sensory loss are combined for evaluation, and the ADAM optimizer and early stopping strategy are used to extract the optimal configuration parameters to ensure the model Generalizability and reliability.
It achieves a richer and more comprehensive feature representation, avoids over-fitting, improves the optimization of numerical values and visual effects of enhanced images, and ensures the stability and generalization of the model in practical applications.
Smart Images

Figure CN118657674B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of computer digital image processing and relates to a low-light image enhancement analysis method based on an attention mechanism. Background Art
[0002] With the popularization of smart devices and the continuous development of science and technology, the acquisition of multimedia data has become increasingly simple. However, in practical applications, due to factors such as insufficient ambient light, device performance limitations or improper human operation, the acquired images often have problems such as low brightness, poor contrast, dim colors, unclear details and obvious noise, which not only affects the visual effect of the image, but also reduces the performance of advanced visual tasks such as object detection, face recognition, and autonomous driving. Therefore, low-light image enhancement technology came into being.
[0003] The prior art introduces an attention mechanism on the basis of the developed low-light image enhancement method to compensate for the problems of introducing noise, color distortion and insufficient adaptability to specific scenes. For example, the patent application for a low-light image enhancement method with a dual attention mechanism with publication number CN117974476A adopts EDAformer to integrate a convolutional self-attention module and a self-attention module, so that the network pays attention to the local and global information of the low-light image at the same time, and adopts a recursive method to implement the network architecture, and finally fuses the network output features into a reconstructed image. By dynamically adjusting the weight of the loss function to constrain the network to achieve the optimal fusion result, the final enhanced image is obtained from the visible light image in a low-light environment. Although the problem that the enhancement method in the prior art is not easy to obtain a clear image with obvious detailed contour structure and excellent denoising results is solved, there are still limitations, specifically: 1. The performance of the dual attention mechanism adopted in the above scheme is mainly local and global fusion. Although it can cover a wider range of feature representations from a macro perspective, there are still some shortcomings that cannot be fully covered at the detail level, resulting in the enhancement processing results of the low-light image not being fine and accurate enough.
[0004] 2. The model training process of the above scheme fully executes the predetermined number of traversal training rounds and does not have the ability to execute the early stopping strategy of training. This means that even if the model has achieved good performance in earlier rounds and begins to show signs of overfitting, the training will continue, which may not only lead to a waste of computing resources, but also reduce the generalization ability of the model due to additional training rounds. Summary of the invention
[0005] In view of this, in order to solve the problems raised in the above background technology, a low-light image enhancement analysis method based on attention mechanism is proposed.
[0006] The purpose of the present invention can be achieved through the following technical solutions: The present invention provides a low-light image enhancement analysis method based on an attention mechanism, including: S1. An enhancement network model is constructed by a decomposition unit, an enhancement unit and a reconstruction unit that introduces a multi-head self-attention mechanism, and the input low-light image is enhanced through the enhancement network model.
[0007] S2. Extract each low-light image and its corresponding normal-light image from the LOL dataset stored in the WEB cloud, divide it into a training set and a validation set according to a predefined principle, input the training set into the enhanced network model to perform traversal training on the model, and the upper limit of the traversal training rounds is a preset number.
[0008] S3. Evaluate the loss performance of the enhanced images output by each low-light image in each batch and its corresponding normal-light image in each iteration of the training of the enhanced network model, and obtain the optimal configuration parameters of the enhanced network model based on the results of meeting the early stopping conditions.
[0009] S4. Input the verification set into the enhanced network model under the optimal configuration parameters to verify the image enhancement results of the model.
[0010] S5. If the image enhancement results of the enhanced network model are verified to be qualified, the optimal configuration parameters of the enhanced network model are saved, otherwise, steps S2-S4 are repeated until the verification is qualified.
[0011] Compared with the prior art, the present invention has the following beneficial effects: (1) The present invention introduces a multi-head self-attention mechanism to help the enhanced network model extract information from different feature subspaces of the input low-light image. Compared with other attention mechanisms cited in the prior art, it can capture more types of dependencies, which helps to generate richer and more comprehensive feature representations in low-light image enhancement processing.
[0012] (2) The present invention combines the two dimensions of objective loss and sensory loss to carry out loss performance evaluation of the enhanced image output from the low-light image during the training process of the enhancement network model and its corresponding normal-light image. The ADAM optimizer performs reverse real-time update of the model parameters. Based on the early stopping strategy, the optimal configuration parameters of the enhancement network model are accurately refined to avoid overfitting of the enhancement network model training, thereby ensuring that the enhanced image is optimized in terms of numerical indicators while ensuring its naturalness and comfort in visual perception.
[0013] (3) The present invention uses a validation set to verify the low-light image processing effect of the enhanced network model with the optimal configuration parameters, ensuring the generalization, stability and reliability of the enhanced network model with the optimal configuration parameters in practical applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0015] Figure 1 The present invention is a flowchart of the steps for implementing the method.
[0016] Figure 2 for Figure 1 Detailed implementation steps of step S1 in the flowchart.
[0017] Figure 3 It is a schematic diagram of the early stopping condition of the present invention. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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.
[0019] See also Figure 1 As shown, the present invention provides a low-light image enhancement analysis method based on an attention mechanism, including: S1. constructing an enhancement network model by a decomposition unit, an enhancement unit and a reconstruction unit introducing a multi-head self-attention mechanism, and enhancing the input low-light image through the enhancement network model.
[0020] See also Figure 2 As shown, specifically, the enhancement processing of the input low-light image by using the enhancement network model includes: S11. decomposing the input low-light image into an illumination map and a reflection map by a decomposition unit.
[0021] S12. The illumination component of the illumination map and the reflection component of the reflection map are concatenated to generate an input tensor, which is passed to the built-in convolution layer of the enhancement unit for preliminary feature extraction. The extracted preliminary features are continuously convolved for a preset number of times, and the illumination features and reflection characteristics are enhanced by adjusting the convolution kernel weights and using the ReLU activation function. The feature maps output by each convolution operation are upsampled to restore the original size of the low-light image and are fused with the feature map output by the previous convolution operation.
[0022] S13. The fused feature maps obtained after the preset number of convolution operations are spliced and passed into a reconstruction unit that introduces a multi-head self-attention mechanism, and the multi-head self-attention calculation results of the spliced feature map are obtained and used for splicing adjustment and linear transformation. The spliced feature map is then reconstructed using the built-in transposed convolution layer of the reconstruction unit, thereby obtaining an enhanced image of the input low-light image to achieve enhanced processing of the input low-light image.
[0023] Specifically, the decomposition unit decomposes the input low-light image into an illumination map and a reflection map, including: selecting the channel maximum value of each pixel of the input low-light image at the entrance of the decomposition unit, retaining the maximum channel dimension value of each pixel of the input low-light image to obtain a maximum value image, splicing the maximum value image with the input low-light image in the channel dimension to form an input tensor with an extended number of channels, and passing it into a network structure composed of a preset number of convolutional layers built into the decomposition unit. After a preset number of convolution and activation function combination operations, a specific convolution operation is used to decompose the low-light image into components corresponding to a preset number of output channels, extract the components corresponding to each output channel and perform a slicing operation to convert their value range to a preset range, and then extract the reflection map and illumination map from them according to the type of the components corresponding to each output channel.
[0024] Specifically, the method of obtaining the multi-head self-attention calculation result of the spliced feature map includes: dividing the spliced feature map into regional blocks of a preset window size, performing a convolution operation on each regional block using a preset multi-self-attention function, setting the number of output channels equal to the number of attention heads, generating a preliminary attention score map for each regional block for each attention head, performing a secondary convolution operation on each regional block, setting the number of output channels to 1, generating an integrated attention score map for each regional block, forming an attention score matrix of the spliced feature map according to the position of each regional block, thereby weighting the spliced feature map to obtain the multi-head self-attention calculation result of the spliced feature map.
[0025] It should be noted that the above preset multi-self-attention function is specifically the tf.layers.conv2d function.
[0026] The embodiment of the present invention introduces a multi-head self-attention mechanism to help the enhanced network model extract information from different feature subspaces of the input low-light image. Compared with other attention mechanisms cited in the prior art, it is capable of capturing more types of dependencies, which helps to generate richer and more comprehensive feature representations in the low-light image enhancement process.
[0027] S2. Extract each low-light image and its corresponding normal-light image from the LOL dataset stored in the WEB cloud, divide it into a training set and a validation set according to a predefined principle, input the training set into the enhanced network model to perform traversal training on the model, and the upper limit of the traversal training rounds is a preset number.
[0028] It should be noted that the above predefined principle is that the number of low-light images and their corresponding normal-light images in the training set accounts for the total number of low-light images and their corresponding normal-light images in the LOL dataset. The number of low-light images and their corresponding normal-light images in the validation set accounts for the total number of low-light images and their corresponding normal-light images in the LOL dataset. .
[0029] Specifically, the traversal training of the model includes: dividing the low-light images in the training set into batches according to a preset number of images, setting the number of iterations of a single traversal training of the enhanced network model to be equal to the number of divided batches of the training set, selecting a preset video memory GPU as the traversal training environment of the enhanced network model, and setting the initial learning rate of the existing ADAM optimizer in the enhanced network model before the training starts. As well as the initial state variables, in each iterative process of each traversal training, each low-light image in the corresponding batch is input into the enhanced network model, and enhanced processing is performed on it to output an enhanced image, and the loss performance of the enhanced image outputted by each low-light image in the corresponding batch of each iterative process of each traversal training and its corresponding normal light image is evaluated. The ADAM optimizer performs reverse update of the parameters of the enhanced network model according to the overall loss performance of the low-light images in the corresponding batch of each iterative process of each traversal training, and puts the updated parameters into the next iterative process until the traversal training is terminated when the early stopping condition is met.
[0030] Specifically, the evaluation of the loss performance of the enhanced image outputted by each weak-light image in each batch corresponding to each iteration process of each traversal training and its corresponding normal-light image comprises: Its corresponding normal light image Invest in pre-trained networks together, is the number of each training run, , is the number of each iteration, , is the number of each low-light image in the batch corresponding to the iterative process, , according to the formula The perceptual loss coefficients of the enhanced images output by each low-light image in each batch and its corresponding normal-light image are obtained in each iteration of each training, where represents the feature extractor of the pre-trained network, express Norm.
[0031] By formula The objective loss coefficients of the enhanced images output by each weak-light image in each batch and its corresponding normal-light image are obtained in each iteration of each training, where Respectively represent The first traversal of training The iteration process corresponds to the The peak signal-to-noise ratio and structural similarity of the enhanced image output from a low-light image and its corresponding normal-light image. is a natural constant.
[0032] It should be noted that the above The specific analysis process is as follows: the enhanced images output by each weak-light image in each iteration of each training batch and its corresponding normal-light image are converted into grayscale images, and the grayscale difference between each pixel of the enhanced image output by each weak-light image in each iteration of each training batch and its corresponding normal-light image is obtained. ,in To enhance the number of pixels in the image, , according to the formula The peak signal-to-noise ratio of the enhanced image output by each weak-light image in each batch corresponding to each iteration of the training and its corresponding normal-light image is obtained, where is the maximum pixel gray value of the preset image, To enhance the number of image pixels.
[0033] It should also be noted that the above The specific analysis process is as follows: the enhanced images output by each weak-light image in each iteration of each training batch and its corresponding normal-light image are converted into grayscale images, and the local average brightness and local standard deviation of the sliding window corresponding to the enhanced images output by each weak-light image in each iteration of each training batch and its corresponding normal-light image are obtained, which are recorded as and , and the covariance between the sliding windows of the enhanced image and its corresponding normal light image , according to the formula , , The local brightness similarity, local contrast similarity and local structure similarity between the enhanced images output by each low-light image in each iterative process of each traversal training and their corresponding normal-light images are obtained respectively, and the product of the three is taken as the structural similarity between the enhanced images output by each low-light image in each iterative process of each traversal training and their corresponding normal-light images.
[0034] It should be further explained that the above-mentioned local average brightness, local standard deviation and covariance can all be obtained through existing mature calculation formulas, which will not be elaborated here.
[0035] Will , Together they serve as loss performance evaluation indicators for the enhanced images output by each low-light image in each batch corresponding to each iterative process of each traversal training and their corresponding normal-light images.
[0036] Specifically, the ADAM optimizer performs reverse update of the enhanced network model parameters according to the overall loss performance of the corresponding batch of low-light images in each iteration of each training, including: , Calculate the mean value respectively , ,Will , The corresponding preset weight products are accumulated respectively to obtain the evaluation index of the overall loss performance of the batch of weak-light images corresponding to each iteration of each traversal training, and the overall loss performance of the batch of weak-light images corresponding to each iteration of each traversal training is automatically differentiated to obtain the gradient of the parameters of the enhanced network model. .
[0037] It should be noted that automatic differentiation processing to obtain gradients is an existing mature technology, which can be obtained by entering the loss function and model in pytorch.
[0038] Extract the state variables of each iteration of the ADAM optimizer training, including the first-order moment estimate of the gradient and the second moment estimate ,Depend on The ADAM optimizer state variables are updated to obtain the updated state variables of the overall loss performance of the ADAM optimizer corresponding to the batch of low-light images in each iteration of each traversal training, which is recorded as and .
[0039] It should be noted that the above , The calculation formulas are: , ,in They are the hyperparameters of the ADAM optimizer, and their default values are 0.9 and 0.999.
[0040] Extract the enhanced network model parameters during each iteration of each training , according to the formula The parameters of the ADAM optimizer for reverse updating the enhanced network model are obtained according to the overall loss performance of the batch of low-light images corresponding to each iteration of each training process, where It is a preset constant used to prevent the denominator from being 0.
[0041] S3. Obtain the optimal configuration parameters of the enhanced network model according to the early stopping condition compliance result.
[0042] See also Figure 3 As shown, specifically, the optimal configuration parameters of the enhanced network model are obtained according to the result of meeting the early stopping condition, including: if the evaluation index of the overall loss performance of a batch of weak-light images corresponding to a certain iteration process of a certain traversal training and the decrease rate of the evaluation index of the overall loss performance of a batch of weak-light images corresponding to a subsequent consecutive preset number of iteration processes are both less than a preset reasonable threshold of the decrease rate, it means that the iteration process of the traversal training has reached a fitting state and meets the early stopping condition, and the enhanced network model parameters of the iteration process of the traversal training are used as the optimal configuration parameters.
[0043] The embodiment of the present invention combines the two dimensions of objective loss and sensory loss to carry out loss performance evaluation of the enhanced image output of the low-light image and its corresponding normal-light image during the training process of the enhancement network model. The ADAM optimizer carries out reverse real-time update of the model parameters. On the basis of the early stopping strategy, the optimal configuration parameters of the enhancement network model are accurately refined to avoid overfitting of the enhancement network model training, thereby ensuring the optimization of the enhanced image in terms of numerical indicators while ensuring its naturalness and comfort in visual perception.
[0044] S4. Input the verification set into the enhanced network model under the optimal configuration parameters to verify the image enhancement results of the model.
[0045] Specifically, the image enhancement verification of the model includes: , The calculation method is consistent with that of the enhanced network model under the optimal configuration parameters to obtain the perceptual loss coefficient of the enhanced image output by each low-light image in the validation set and its corresponding normal-light image. and objective loss coefficient , is the number of each low-light image in the validation set, , calculate the image enhancement effect evaluation coefficient of the enhanced network model under the optimal configuration parameters , , in order to verify the model's image enhancement results, , are the perceptual loss coefficient and the permitted threshold of the objective loss coefficient of the image enhancement effect evaluation specification stored in the WEB cloud, respectively. is the number of low-light images in the validation set.
[0046] S5. If the image enhancement results of the enhanced network model are verified to be qualified, the optimal configuration parameters of the enhanced network model are saved, otherwise, steps S2-S4 are repeated until the verification is qualified.
[0047] Specifically, the qualified conditions for verification of the image enhancement results of the enhanced network model include: the image enhancement effect evaluation coefficient of the enhanced network model under the optimal configuration parameters is greater than or equal to the image enhancement effect evaluation coefficient reaching the standard threshold of the WEB cloud storage.
[0048] The embodiment of the present invention uses a validation set to verify the low-light image processing effect of the enhanced network model with the optimal configuration parameters, so as to ensure the generalization, stability and reliability of the enhanced network model with the optimal configuration parameters in practical applications.
[0049] The above contents are merely examples and explanations of the concept of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the concept of the invention or exceed the scope defined by the present invention, they shall all fall within the protection scope of the present invention.
Claims
1. A low-light image enhancement analysis method based on attention mechanism, characterized in that: The method includes: S1. An enhanced network model is constructed by a decomposition unit, an enhancement unit, and a reconstruction unit with a multi-head self-attention mechanism, and the input low-light image is enhanced by the enhanced network model; S2. Extract each low-light image and its corresponding normal-light image from the LOL dataset stored in the WEB cloud, divide it into a training set and a validation set according to a predefined principle, input the training set into the enhanced network model to perform traversal training on the model, and the upper limit of the traversal training round is a preset number of rounds; S3. Obtain the optimal configuration parameters of the enhanced network model according to the early stopping condition compliance result; S4. Input the validation set into the enhanced network model under the optimal configuration parameters to verify the image enhancement results of the model; S5. If the image enhancement result of the enhanced network model is verified to be qualified, the optimal configuration parameters of the enhanced network model are saved, and if not, steps S2-S4 are repeated until the verification is qualified; The step of enhancing the input low-light image by using the enhanced network model comprises: S11. decomposing the input low-light image into an illumination map and a reflection map by using a decomposition unit; S12. splicing the illumination component of the illumination map and the reflection component of the reflection map to generate an input tensor, passing it to the built-in convolution layer of the enhancement unit for preliminary feature extraction, continuously performing a preset number of convolution operations on the extracted preliminary features, respectively enhancing the illumination features and the reflection characteristics through convolution kernel weight regulation and ReLU activation function, and the feature map output by each convolution operation is upsampled to restore the original size of the low-light image, and is fused with the feature map output by the previous convolution operation; S13. The fused feature maps obtained after the preset number of convolution operations are spliced and transmitted to a reconstruction unit that introduces a multi-head self-attention mechanism, and the multi-head self-attention calculation results of the spliced feature map are obtained and splicing adjustment and linear transformation are performed based on them, and then the spliced feature map is reconstructed using the built-in transposed convolution layer of the reconstruction unit, so as to obtain an enhanced image of the input low-light image, so as to achieve enhanced processing of the input low-light image; The decomposition unit decomposes the input low-light image into an illumination map and a reflection map, including: selecting the maximum value of each pixel of the input low-light image at the entrance of the decomposition unit, retaining the maximum channel dimension value of each pixel of the input low-light image to obtain a maximum value image, splicing the maximum value image with the input low-light image in the channel dimension to form an input tensor with an extended number of channels, and passing the input tensor into a network structure composed of a preset number of convolutional layers built into the decomposition unit. After a preset number of convolution and activation function combination operations, a specific convolution operation is used to decompose the low-light image into a preset number of output channel corresponding components, extract the corresponding components of each output channel and perform a slicing operation to convert the value range to a preset interval, and then extract the reflection map and the illumination map according to the type of the corresponding components of each output channel. The method for obtaining the multi-head self-attention calculation result of the spliced feature map includes: dividing the spliced feature map into regional blocks of preset window size, performing convolution operation on each regional block using a preset multi-self-attention function, setting the number of output channels equal to the number of attention heads, generating a preliminary attention score map for each regional block for each attention head, performing a secondary convolution operation on each regional block, setting the number of output channels to 1, generating an integrated attention score map for each regional block, forming an attention score matrix of the spliced feature map according to the position of each regional block, thereby weighting the spliced feature map to obtain the multi-head self-attention calculation result of the spliced feature map.
2. The low-light image enhancement analysis method based on the attention mechanism according to claim 1, characterized in that: The traversal training of the model includes: dividing the low-light images in the training set into batches according to the preset number of images, setting the number of iterations of a single traversal training of the enhanced network model to be equal to the number of batches of the training set, selecting a preset video memory GPU as the traversal training environment of the enhanced network model, and setting the initial learning rate of the existing ADAM optimizer in the enhanced network model before the training starts. As well as the initial state variables, in each iterative process of each traversal training, each low-light image in the corresponding batch is input into the enhanced network model, and enhanced processing is performed on it to output an enhanced image, and the loss performance of the enhanced image outputted by each low-light image in the corresponding batch of each iterative process of each traversal training and its corresponding normal light image is evaluated. The ADAM optimizer performs reverse update of the parameters of the enhanced network model according to the overall loss performance of the low-light images in the corresponding batch of each iterative process of each traversal training, and puts the updated parameters into the next iterative process until the traversal training is terminated when the early stopping condition is met.
3. The low-light image enhancement analysis method based on the attention mechanism according to claim 2 is characterized in that: The evaluation of the loss performance of the enhanced image outputted by each weak-light image in each batch corresponding to each iterative process of each traversal training and its corresponding normal-light image comprises: comparing the enhanced image outputted by each weak-light image in each batch corresponding to each iterative process of each traversal training Its corresponding normal light image Invest in pre-trained networks together, is the number of each training run, , is the number of each iteration, , is the number of each low-light image in the batch corresponding to the iterative process, , according to the formula The perceptual loss coefficients of the enhanced images output by each low-light image in each batch and its corresponding normal-light image are obtained in each iteration of each training, where represents the feature extractor of the pre-trained network, express norm; By formula The objective loss coefficients of the enhanced images output by each weak-light image in each batch and its corresponding normal-light image are obtained in each iteration of each training, where Respectively represent The first traversal of training The iteration process corresponds to the The peak signal-to-noise ratio and structural similarity of the enhanced image output from a low-light image and its corresponding normal-light image. is a natural constant; Will , Together they serve as loss performance evaluation indicators for the enhanced images output by each low-light image in each batch corresponding to each iterative process of each traversal training and their corresponding normal-light images.
4. The low-light image enhancement analysis method based on the attention mechanism according to claim 3 is characterized in that: The ADAM optimizer performs reverse update of the enhanced network model parameters according to the overall loss performance of the corresponding batch of low-light images in each iteration of each training, including: , Calculate the mean value respectively , ,Will , The corresponding preset weight products are accumulated respectively to obtain the evaluation index of the overall loss performance of the batch of weak-light images corresponding to each iteration of each traversal training, and the overall loss performance of the batch of weak-light images corresponding to each iteration of each traversal training is automatically differentiated to obtain the gradient of the parameters of the enhanced network model. ; Extract the state variables of each iteration of the ADAM optimizer training, including the first-order moment estimate of the gradient and the second moment estimate ,Depend on The ADAM optimizer state variables are updated to obtain the updated state variables of the overall loss performance of the ADAM optimizer corresponding to the batch of low-light images in each iteration of each traversal training, which is recorded as and ; Extract the enhanced network model parameters during each iteration of each training , according to the formula The parameters of the ADAM optimizer for reverse updating the enhanced network model are obtained according to the overall loss performance of the batch of low-light images corresponding to each iteration of each training process, where is a preset constant.
5. The method for low-light image enhancement analysis based on the attention mechanism according to claim 4, characterized in that: The method of obtaining the optimal configuration parameters of the enhanced network model according to the result of meeting the early stopping condition includes: if the evaluation index of the overall loss performance of a batch of weak-light images corresponding to a certain iteration process of a certain traversal training and the decrease rate of the evaluation index of the overall loss performance of the batch of weak-light images corresponding to the subsequent consecutive preset number of iteration processes are both less than a preset reasonable threshold of the decrease rate, it means that the iteration process of the traversal training has reached a fitting state and meets the early stopping condition, and the enhanced network model parameters of the iteration process of the traversal training are used as the optimal configuration parameters.
6. The low-light image enhancement analysis method based on the attention mechanism according to claim 3 is characterized in that: The image enhancement verification of the model includes: obtaining the perceptual loss coefficients of the enhanced image output by the enhanced network model under the optimal configuration parameters for each low-light image in the verification set and its corresponding normal-light image and objective loss coefficient , is the number of each low-light image in the validation set, , calculate the image enhancement effect evaluation coefficient of the enhanced network model under the optimal configuration parameters , , in order to verify the model's image enhancement results, , are the perceptual loss coefficient and the permitted threshold of the objective loss coefficient of the image enhancement effect evaluation specification stored in the WEB cloud, respectively. is the number of low-light images in the validation set.
7. The method for low-light image enhancement analysis based on the attention mechanism according to claim 6, characterized in that: The qualified conditions for verification of the enhanced network model image enhancement results include: the image enhancement effect evaluation coefficient of the enhanced network model under the optimal configuration parameters is greater than or equal to the image enhancement effect evaluation coefficient reaching the standard threshold of the WEB cloud storage.
