Unsupervised generative attention network model training method, imaging method and device
Through the unsupervised generative attention network model training method, the problem of field of view limitation and poor model generalization ability in dynamic scattering medium imaging is solved, high-quality image reconstruction under dynamic conditions is achieved, and a more effective imaging solution is provided. .
Patent Information
- Application Number
- CN202410768096.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology has problems in imaging dynamic scattering media, such as the system field of view is limited by the optical memory effect, the model generalization ability is poor, and the reconstruction performance depends on high-quality data sets, and there is a lack of effective solutions.
The unsupervised generative attention network model training method is adopted, by obtaining the training data set and the test data set, iteratively training the model and sampling and saving parameters in the iteration times, and using multiple evaluation indicators such as mean square error, structural similarity index and peak signal. Noise ratio determines the best saved checkpoint, enabling image reconstruction of dynamic scattering media.
It realizes the reconstruction of target images from unpaired speckle images under dynamic scattering conditions, provides an imaging method that is closer to practical applications, has better reconstruction performance and image details, and surpasses the performance of traditional physical modeling and conditional generative adversarial networks. .
Smart Images

Figure CN118747720A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of optical imaging technology, and in particular to an unsupervised generative attention network model training method, an imaging method and a device. Background Art
[0002] Imaging in dynamic scattering media is a long-standing and extremely challenging problem in the field of optics, with urgent application demands in aerospace, defense and military, atmospheric science, underwater surveying, and biomedicine.
[0003] In recent years, people have proposed a variety of methods for imaging through scattering media. Typical techniques include wavefront shaping, transfer matrix, point spread function, speckle correlation and deep learning. Wavefront shaping and transfer matrix methods are relatively complex in experimental setup and calibration, and are not suitable for dynamic scattering conditions. Point spread function and speckle correlation imaging techniques based on optical memory effect perform well in overcoming deep scattering imaging. Their drawback is that the field of view of the system is limited by the range of optical memory effect. The rain curtain effect imaging model is introduced in the speckle correlation technology, which can reconstruct static objects under dynamic scattering conditions. However, this method is based on the rain curtain effect in the Fourier domain and needs to meet the far-field conditions under speckle illumination. It is not suitable for scenes where objects are close to scattering media. Data-driven deep learning algorithms are widely used in imaging processing due to their stable fitting ability. Their drawback is that the generalization ability of the model is poor, and excellent reconstruction performance depends on high-quality data sets.
[0004] In summary, the problem of imaging dynamic scattering media is extremely challenging and there is currently no very effective solution. Summary of the invention
[0005] The purpose of the present invention is to overcome the defects of the prior art and propose an unsupervised generative attention network model training method and an imaging method. The present invention also proposes an unsupervised generative attention network model training device and a dynamic scattering medium imaging device based on the unsupervised generative attention network model.
[0006] An unsupervised generative attention network model training method, comprising:
[0007] Obtain a training data set and a test data set, wherein each data set includes a speckle image and a paired target image;
[0008] The unsupervised generative attention network model is iteratively trained using the training data set, and the complete parameters of the model are sampled and saved based on the total number of iterations during the iteration process. The training is stopped after the set number of iterations to obtain the sampled set of complete parameters, where a set of complete parameters corresponds to one model.
[0009] Use the same test data set to test the model under each set of complete parameters and obtain the model array test results;
[0010] Calculate multiple evaluation index values between the target image and the reconstructed image of the same speckle in each set of test results;
[0011] Using the values of each evaluation indicator at each iteration number, determine the best save checkpoint for the model;
[0012] Substituting the unsupervised generative attention network model with the complete parameters of the model under the optimal saved checkpoint is used as the trained unsupervised generative attention network model.
[0013] As an improvement of the above-mentioned model training method, the multiple evaluation indicators include: part or all of mean square error, structural similarity index and peak signal-to-noise ratio.
[0014] As an improvement to the above model training method, the complete parameters of the model are sampled and saved based on the total number of iterations during the iteration process, and the training is stopped after the set number of iterations to obtain the complete parameters of the sampled number of iterations, including:
[0015] In the iterative process, based on the total number of iterations M times, the frequency of saving the complete parameters of the model every N iterations is obtained, and a total of M / N groups of complete parameters of the model are obtained, where M is greater than N, and M and N are both positive integers.
[0016] As an improvement to the above model training method, the method of using the values of each evaluation index at each iteration number to determine the best save checkpoint of the model includes:
[0017] For each evaluation index, the number of iterations is used as the horizontal axis and the evaluation index value is used as the vertical axis to draw a curve of the change of the evaluation index with the number of iterations;
[0018] The best evaluation index value in the change curve corresponds to the iteration number as the best save checkpoint of the model.
[0019] A dynamic scattering medium imaging method based on an unsupervised generative attention network model, comprising:
[0020] Acquire a speckle image;
[0021] The acquired speckle image is input into a trained unsupervised generative attention network model to obtain a reconstructed image of the speckle image, wherein the trained unsupervised generative attention network model is obtained by any of the above-mentioned model training methods.
[0022] An unsupervised generative attention network model training device, comprising:
[0023] An acquisition module, used to acquire a training data set and a test data set, wherein each data set includes a speckle image and a paired target image;
[0024] The training module is used to iteratively train the unsupervised generative attention network model using the training data set, and sample and save the complete parameters of the model based on the total number of iterations during the iteration process, stop the training after the set number of iterations, and obtain the sampled set of complete parameters, where a set of complete parameters corresponds to one model;
[0025] The test module is used to test the model under each set of complete parameters using the same test data set to obtain the model array test results;
[0026] A calculation module, used for calculating multiple evaluation index values between the target image and the reconstructed image of the same speckle in each set of test results;
[0027] A determination module is used to determine the best saving checkpoint of the model by using the values of each evaluation indicator at each iteration number;
[0028] The model generation module is used to substitute the unsupervised generative attention network model with the complete parameters of the model under the optimal saved checkpoint as the trained unsupervised generative attention network model.
[0029] As an improvement of the above-mentioned model training device, the multiple evaluation indicators include: part or all of mean square error, structural similarity index and peak signal-to-noise ratio.
[0030] As an improvement of the above-mentioned model training device, the training module is specifically used to save the complete parameters of the model once every N iterations based on the total number of iterations M during the iteration process, and obtain a total of M / N groups of complete parameters of the model, where M is greater than N, and M and N are both positive integers.
[0031] As an improvement of the above-mentioned model training device, the determination module is specifically used to draw a curve of the change of the evaluation indicator with the number of iterations for each evaluation indicator, with the number of iterations as the horizontal axis and the evaluation indicator value as the vertical axis; the number of iterations corresponding to the best evaluation indicator value in the change curve is used as the best save checkpoint of the model.
[0032] A dynamic scattering medium imaging device based on an unsupervised generative attention network model, comprising:
[0033] An input module, used for acquiring a speckle image;
[0034] The image reconstruction module is used to input the acquired speckle image into the trained unsupervised generative attention network model to obtain a reconstructed image of the speckle image, wherein the trained unsupervised generative attention network model is trained using the above-mentioned model training device.
[0035] Compared with the prior art, the advantages of the present invention are:
[0036] 1. Traditional imaging methods are based on physical modeling methods and have limitations in imaging performance and usage scenarios. The present invention uses an unsupervised generative attention network to achieve end-to-end reconstruction of target images from unpaired speckle images, providing a more practical method for solving computational imaging problems under dynamic scattering conditions.
[0037] 2. By finding the best preservation checkpoint of the unsupervised model among multiple evaluation indicators, and using the unsupervised generative attention network to reconstruct the image of the dynamic scattering medium under the condition of the best preservation checkpoint. Compared with the supervised learning model Pix2Pix of the conditional generative adversarial network, the method proposed in this invention has better reconstruction performance indicators and image details. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 is a flow chart of the unsupervised generative attention network model training method in Example 1 of the present invention;
[0039] Figure 2 Schematic diagram of the structure of the unsupervised generative attention network model in Example 1 of the present invention;
[0040] Figure 3 is a flow chart of a method for imaging a dynamic scattering medium based on an unsupervised generative attention network model in Example 2 of the present invention;
[0041] Figure 4 is a schematic diagram of the structure of the unsupervised generative attention network model training device in Example 3 of the present invention;
[0042] Figure 5 Schematic diagram of the structure of a dynamic scattering medium imaging device based on an unsupervised generative attention network model in Example 4 of the present invention;
[0043] Figure 6 is a light path diagram of the scattering experiment system in Example 5 of the present invention;
[0044] Figure 7 is the collected speckle pattern and target image in Embodiment 5 of the present invention;
[0045] Figure 8 This is a 4PSNR variation diagram in Example 5 of the present invention;
[0046] Fig. 9 is a SSIM variation diagram in Example 5 of the present invention;
[0047] Fig.10 is a graph showing changes in MSE in Example 5 of the present invention;
[0048] Fig.11 This is a diagram of the reconstructed image effect in Example 5 of the present invention. DETAILED DESCRIPTION
[0049] The technical solution of the present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0050] Example 1
[0051] like Figure 1 As shown, it is an unsupervised generative attention network model training method of embodiment 1 of the present invention, comprising the following steps:
[0052] Step 101: Obtain a training data set and a test data set, wherein each data set contains a speckle image and a paired target image. Step 102: Iteratively train the unsupervised generative attention network model using the training data set, and sample and save the complete parameters of the model based on the total number of iterations during the iteration process, stop training after the set number of iterations, and obtain the complete parameters of the sampled number of iterations.
[0053] Among them, a complete set of parameters corresponds to a model. Different from the traditional computational imaging method driven by physical modeling, the data-driven deep learning technology can automatically extract high-dimensional features from a large amount of image data, establish the mapping relationship between the incident light field and the outgoing light field, and cleverly avoid the two major problems of solving highly ill-conditioned nonlinear inverse problems and accurate physical modeling, and realize end-to-end reconstruction of the target image. The present invention uses a deep learning technology called an unsupervised generative attention network model.
[0054] The Unsupervised Generative Attention Network Based on Adaptive Layer-Instance Normalization (UGATIT) model was first proposed by Junho Kim et al. to achieve the style transfer task of portraits and anime characters. The model consists of two generators G s→t and G t→s And two discriminators D s and D t The composition integrates an attention module and a learnable normalization function in an end-to-end manner.
[0055] like Figure 2As shown, the UGATIT model for processing speckle images according to an embodiment of the present invention is shown. Here, the generator G is similar to the U-Net architecture and consists of two paths, namely the encoding path and the decoding path. Both paths are symmetrical to ensure that the image can be reconstructed to its original size. In addition, each layer of the two paths has symmetrical jump connections, which is more conducive to feature fusion. In order to reduce information loss, convolution with a stride of 2 is selected for downsampling in the encoding path. Each decoding path includes four layers: upsampling, convolution, normalization, and connection. After three layers of convolution with a stride of 2 and two layers of convolution with a stride of 1, the input size is downsampled from 64×64 to 1×1. The initial convolution layer uses a 7x7 convolution kernel to capture a wider range of contextual information, and the subsequent convolution layers use a 3×3 convolution kernel. Both use instance normalization to keep the distribution of each batch of data consistent. The bottleneck layer adds multiple residual blocks to keep the input features and the residuals of the features after two layers of convolution, which helps to solve the gradient disappearance problem in deep network training. It uses reflection padding to avoid edge information loss and uses instance normalization and ReLU activation function.
[0056] Each layer of the encoder extracts features from the input image to obtain an encoder feature map. The encoder feature map is multiplied by the weight parameter after global average pooling and global maximum pooling, and finally summed to obtain a class activation map, which is normalized to obtain an attention feature map. The generator network structure is designed to extract high-level features through downsampling, retain details using a residual structure, and then restore the image size through upsampling. At the same time, the class activation map technology is used to highlight important areas of the image to generate high-quality images. The discriminator and the generator have the same downsampling process and attention feature map calculation process. Finally, a normalized convolution is added with an output channel of 1, corresponding to the single output of the discriminant task.
[0057] Below Figure 2 The process of speckle image processing is described in .
[0058] Take the speckle image 1 as input and input it to the first generator G s→t After being processed by the encoder and decoder, target image 1 is obtained. Target image 1 and the newly added target image 2 are input to the first discriminator D s In the example, after being processed by the encoder, target image 1 and target image 2 are discriminated to determine whether target image 1 and target image 2 belong to the same distribution, that is, whether they have similar attention feature maps. Target image 2 is input to the second discriminator D s After being processed by the encoder and decoder, speckle image 2 is obtained, and speckle image 2 and speckle image 3 are input into the second discriminator D s In the example, after being processed by the encoder, speckle image 2 and speckle image 3 are discriminated to determine whether they belong to the same distribution, that is, whether they have similar attention feature maps.
[0059] The UGATIT loss function is defined as follows:
[0060] Adversarial loss: An adversarial loss is used to match the distribution of translated images with that of target images:
[0061]
[0062] Cycle Loss: To alleviate the mode collapse problem, a cycle consistency constraint is applied to the generator. Given an image x∈X s , change x from X s To X t and from X t To X s After the sequence of translations, the image should be successfully translated back to the original domain:
[0063]
[0064]
[0065] Identity loss: To ensure that the color distribution of the input image and the output image is similar, an identity consistency constraint is imposed on the generator. Given an image x∈X t , when using G s→t After translating x, the image should not change.
[0066]
[0067] The CAM loss is achieved by utilizing the s and η Dt Information, given an image x∈{X s ,X t}. It is mainly used to update the weight parameters of the auxiliary classifier, hoping to distinguish the characteristics of the source domain from the characteristics of the target domain:
[0068]
[0069] The complete loss function finally jointly trains the encoder, decoder, discriminator, and auxiliary classifier to optimize the final goal:
[0070]
[0071] Among them, λ1=1, λ2=10, λ3=10, λ4=1000. Here L cycle , L identity , L cam Similar definitions.
[0072] Here, sampling can be based on the amount of data and the characteristics of the speckle image, combined with practical experience, and can be performed using simple random sampling, systematic sampling, equidistant sampling and other methods.
[0073] Specifically, during the iteration process, based on the total number of iterations M, the frequency of saving the complete parameters of the model every N iterations can be used to obtain a total of M / N groups of complete parameters of the model, where M is greater than N, and both M and N are positive integers.
[0074] Step 103: Use the same test data set to test the model under each set of complete parameters to obtain a set of model test results.
[0075] Step 104: Calculate multiple evaluation index values between the target image and the reconstructed image of the same speckle in each set of test results.
[0076] Preferably, the multiple evaluation indicators include: part or all of mean square error, structural similarity index and peak signal-to-noise ratio.
[0077] The mean square error (MSE) measures the image reconstruction quality by calculating the square of the intensity difference between the reconstructed image pixels and the target image pixels and then summing the average. The smaller the value, the better the image reconstruction quality. Its expression is:
[0078]
[0079] in, is the predicted value, y i is the true value.
[0080] Structural Similarity Index Measure (SSIM) is an indicator used to quantify the structural similarity between two images. The SSIM value ranges from 0 to 1, and the larger the value, the better the image reconstruction quality. Its expression is:
[0081]
[0082] Among them, μ x and μ y represent the average values of x and y respectively, and represent the variance of x and y respectively, σ xy Represents the covariance of x and y. C1=(k1L) 2 ,C2=(k2L) 2 It is a constant used to maintain stability, k1=0.01, k2=0.03, and L is the dynamic range of pixel values.
[0083] Peak Signal to Noise Ratio (PSNR) is a ratio of the maximum possible signal power to the destructive noise power that affects its representation accuracy. The larger the value, the better the image reconstruction quality. Its expression is:
[0084]
[0085] Among them, MSE is the mean square error, and max is the signal peak, which is the maximum pixel value in the image.
[0086] Step 105: Determine the best save checkpoint of the model using the values of each evaluation indicator at each iteration number.
[0087] Specifically, for each evaluation indicator, a curve showing the change of the evaluation indicator with the number of iterations is drawn, with the number of iterations as the horizontal axis and the evaluation indicator value as the vertical axis; the number of iterations corresponding to the best evaluation indicator value in the change curve is taken as the best save checkpoint for the model.
[0088] Step 106: Substitute the unsupervised generative attention network model with the complete model parameters under the optimal saved checkpoint as the trained unsupervised generative attention network model.
[0089] The following is a description of the images needed for training and testing:
[0090] The unsupervised generative attention network model is unsupervised during training and requires speckle images and target images as input, but the target image does not have to be paired with the speckle image; when testing the trained model, in order to find the best save checkpoint during testing, the speckle image and the target image paired with it are required as input.
[0091] The solution of Example 1 of the present invention proposes a method for training a model using an unsupervised generative attention network for computational imaging problems under dynamic scattering media conditions. The advantage of unsupervised networks is that they can learn rich features and hidden patterns from unlabeled data, which is closer to actual application scenarios, but unsupervised networks are difficult to evaluate the training effect of the model, so that the best model cannot be selected, which makes it difficult to apply it in the field of computational imaging. The method of the present invention overcomes technical bias and applies it to dynamic scattering medium imaging. During model training, the complete parameters of the model are stored at a fixed frequency, and then the model under each set of complete parameters is tested using the same test set after the model training is completed. Finally, the mean square error, structural similarity index and peak signal-to-noise ratio between the target image and the reconstructed image of the same speckle in the test results are calculated to find the best save checkpoint of the model, thereby achieving the purpose of using unsupervised networks to realize computational imaging under dynamic scattering conditions, and providing a new solution to the computational imaging problem under dynamic scattering media conditions.
[0092] Example 2
[0093] Based on the same inventive concept as Example 1, Example 2 of the present invention provides a dynamic scattering medium imaging method based on an unsupervised generative attention network model, such as Figure 3 As shown, the following steps are included:
[0094] Step 201: Acquire a speckle image;
[0095] Step 202: input the acquired speckle image into the trained unsupervised generative attention network model to obtain a reconstructed image of the speckle image.
[0096] Among them, the trained unsupervised generative attention network model is obtained by any model training method in the above-mentioned embodiment 1.
[0097] Example 3
[0098] like Figure 4 As shown, it is an unsupervised generative attention network model training device of embodiment 3 of the present invention, comprising:
[0099] An acquisition module 31 is used to determine a training data set and a test data set, wherein each data set includes a speckle image and a paired target image;
[0100] A training module 32 is used to iteratively train the unsupervised generative attention network model using the training data set, and sample and save the complete parameters of the model based on the total number of iterations during the iteration process, stop the training after the set number of iterations, and obtain a sampled set of complete parameters, wherein a set of complete parameters corresponds to one model;
[0101] A testing module 33 is used to test the model under each set of complete parameters using the same test data set to obtain a set of model test results;
[0102] A calculation module 34, used to calculate multiple evaluation index values between the target image and the reconstructed image of the same speckle in each set of test results;
[0103] A determination module 35 is used to determine the best saving checkpoint of the model by using each evaluation index value at each iteration number;
[0104] The model generation module 36 is used to substitute the unsupervised generative attention network model with the complete parameters of the model under the optimal saved checkpoint as the trained unsupervised generative attention network model.
[0105] Preferably, the multiple evaluation indicators include: part or all of mean square error, structural similarity index and peak signal-to-noise ratio.
[0106] Preferably, the training module is specifically used to save the complete parameters of the model once every N iterations based on the total number of iterations M times during the iteration process, and obtain a total of M / N groups of complete parameters of the model, wherein M is greater than N, and M and N are both positive integers.
[0107] Preferably, the determination module is specifically used to draw a curve of the change of the evaluation index with the number of iterations for each evaluation index, with the number of iterations as the horizontal axis and the evaluation index value as the vertical axis; the number of iterations corresponding to the best evaluation index value in the change curve is used as the best save checkpoint of the model.
[0108] Example 4
[0109] like Figure 5 As shown, it is a dynamic scattering medium imaging device based on an unsupervised generative attention network model according to embodiment 4 of the present invention, comprising:
[0110] An input module 41, used to obtain a speckle image;
[0111] The image reconstruction module 42 is used to input the acquired speckle image into the trained unsupervised generative attention network model to obtain a reconstructed image of the speckle image, wherein the trained unsupervised generative attention network model is trained using any unsupervised generative attention network model training device in Example 3.
[0112] Example 5
[0113] This embodiment 5 demonstrates the technical effect of the present invention by combining simulation and experiment.
[0114] The data set needs to include speckle images and target images. In order to meet the above requirements, an optical experimental measurement system with scattering imaging and data acquisition functions is required. The dynamic scattering medium is realized by building a water mist simulation device, which mainly consists of a water mist generator, a small fog chamber, and a freely rotating electric fan, such as Figure 6 As shown. The dynamic characteristics of water mist are simulated by a 360° rotating fan. The target image is displayed by a digital micromirror device (DMD). DMD is a micro-electromechanical system with electronic input and photon output using a micromirror array. It is a fully digital flat-panel display device. Both the speckle image and the target image are captured by a charge coupled device (CCD). The display content of the DMD is the MNIST handwritten digit data set, which is first rotated 90 degrees counterclockwise and then flipped left and right when injected into the DMD. The target image is taken by the CCD through a fog chamber without water mist, and the speckle image is taken by the CCD through a fog chamber with dynamic water mist. A total of 7,000 pairs of speckle images and target images were collected in the experiment. The collected data images are shown in the figure. Figure 7 shown.
[0115] Past studies have shown that a single Unet network cannot restore the image behind the dynamic scattering medium well. In contrast, the Generative Adversarial Network (GAN) is a neural network that can be dynamically trained based on game theory and performs better in computational imaging tasks.
[0116] The speckle image is used as the input data of the generator to generate an image similar to the target image. The discriminator is used to distinguish the generated target image from the real target image. The generator and the discriminator will alternately train the dynamic game. After the data collection is completed, the data set is divided into a training data set, a verification data set, and a test data set in a ratio of 5:1:1. The test data set does not participate in the training, and all data are normalized before training. The structure of the model is as follows Figure 2 As shown in the figure, the training and testing environment is based on PyTorch2.1.1, Python 3.8.18 and CUDA11.8 on an NVIDIA GeForce GTX 4090 GPU. After the UGATIT model was iterated 800,000 times, the complete model parameters were saved every 50,000 iterations. The model under each set of complete parameters was tested using the same test set. Finally, the mean square error, structural similarity index and peak signal-to-noise ratio between the target image and the reconstructed image of the same speckle in each set of test results were calculated. Figure 8 , Fig. 9 and Fig.10 shown. Figure 8 The larger the PSNR value, the better the image quality. Fig. 9 The larger the SSIM value, the better the image quality. Fig.10 The smaller the MSE value, the better the image quality. When the model parameters are optimally saved at 200,000 iterations, the average PSNR value of the image reconstruction results obtained from the test set is 26.183. In the computational imaging task, the supervised learning model pix2pix network performs well. When the model parameters are adjusted to the optimal value, the average PSNR value of the image reconstruction results obtained using the same test set after model training is 26.033. The effect of the reconstructed image is shown in the figure below. Fig.11 As shown, (a) is the test set speckle (b) the test set target image (c) the pix2pix model reconstructed image (d) the UGATIT model reconstructed image at the general preservation checkpoint (e) the UGATIT model reconstructed image at the best preservation checkpoint. By comparison, it can be seen that the target image reconstructed by the UGATIT model at the best preservation checkpoint has clear edges and sufficient details.
[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention is described in detail with reference to the embodiments, it should be understood by those skilled in the art that any modification or equivalent replacement of the technical solutions of the present invention does not depart from the spirit and scope of the technical solutions of the present invention and should be included in the scope of the claims of the present invention.
Claims
1. An unsupervised generative attention network model training method, comprising: Obtain a training data set and a test data set, wherein each data set includes a speckle image and a paired target image; The unsupervised generative attention network model is iteratively trained using the training data set, and the complete parameters of the model are sampled and saved based on the total number of iterations during the iteration process. The training is stopped after the set number of iterations to obtain the sampled set of complete parameters, where a set of complete parameters corresponds to one model. Use the same test data set to test the model under each set of complete parameters and obtain the model array test results; Calculate multiple evaluation index values between the target image and the reconstructed image of the same speckle in each set of test results; Using the values of each evaluation indicator at each iteration number, determine the best save checkpoint for the model; Substituting the unsupervised generative attention network model with the complete parameters of the model under the optimal saved checkpoint is used as the trained unsupervised generative attention network model.
2. The unsupervised generative attention network model training method according to claim 1, characterized in that: The multiple evaluation indicators include: part or all of mean square error, structural similarity index and peak signal-to-noise ratio.
3. The unsupervised generative attention network model training method according to claim 1, characterized in that: In the iterative process, the complete parameters of the model are sampled and saved based on the total number of iterations, and the training is stopped after the set number of iterations to obtain the complete parameters of the sampling times group, including: In the iterative process, based on the total number of iterations M times, the frequency of saving the complete parameters of the model every N iterations is obtained, and a total of M / N groups of complete parameters of the model are obtained, where M is greater than N, and M and N are both positive integers.
4. The unsupervised generative attention network model training method according to claim 1, characterized in that: Determining the best saving checkpoint of the model by using each evaluation index value at each iteration number includes: For each evaluation index, the number of iterations is used as the horizontal axis and the evaluation index value is used as the vertical axis to draw a curve of the change of the evaluation index with the number of iterations; The best evaluation index value in the change curve corresponds to the iteration number as the best save checkpoint of the model.
5. A method for imaging dynamic scattering media based on an unsupervised generative attention network model, comprising: Acquire a speckle image; The acquired speckle image is input into a trained unsupervised generative attention network model to obtain a reconstructed image of the speckle image, wherein the trained unsupervised generative attention network model is obtained by using any of the methods described in claims 1-4.
6. An unsupervised generative attention network model training device, characterized in that: include: An acquisition module, used to acquire a training data set and a test data set, wherein each data set includes a speckle image and a paired target image; The training module is used to iteratively train the unsupervised generative attention network model using the training data set, and sample and save the complete parameters of the model based on the total number of iterations during the iteration process, stop the training after the set number of iterations, and obtain the sampled set of complete parameters, where a set of complete parameters corresponds to one model; The test module is used to test the model under each set of complete parameters using the same test data set to obtain the model array test results; A calculation module, used for calculating multiple evaluation index values between the target image and the reconstructed image of the same speckle in each set of test results; A determination module is used to determine the best saving checkpoint of the model by using the values of each evaluation indicator at each iteration number; The model generation module is used to substitute the unsupervised generative attention network model with the complete parameters of the model under the optimal saved checkpoint as the trained unsupervised generative attention network model.
7. The unsupervised generative attention network model training device according to claim 6, characterized in that: The multiple evaluation indicators include: part or all of mean square error, structural similarity index and peak signal-to-noise ratio.
8. The unsupervised generative attention network model training device according to claim 6, characterized in that: The training module is specifically used to save the complete parameters of the model once every N iterations based on the total number of iterations M times during the iteration process, and obtain a total of M / N groups of complete parameters of the model, where M is greater than N, and M and N are both positive integers.
9. The unsupervised generative attention network model training device according to claim 6, characterized in that: The determination module is specifically used to draw a curve of the change of the evaluation index with the number of iterations for each evaluation index, with the number of iterations as the horizontal axis and the evaluation index value as the vertical axis; the number of iterations corresponding to the best evaluation index value in the change curve is used as the best saving checkpoint of the model.
10. A dynamic scattering medium imaging device based on an unsupervised generative attention network model, characterized in that: include: An input module, used for acquiring a speckle image; An image reconstruction module is used to input the acquired speckle image into a trained unsupervised generative attention network model to obtain a reconstructed image of the speckle image, wherein the trained unsupervised generative attention network model is trained using the training device described in any one of claims 5-9.
Citation Information
Patent Citations
DBN parameter selection method for birotor misalignment fault identification
CN113033601A
Unknown hidden target positioning method and system based on data decoupling and storage medium
CN115984368A
CMUT ultrasonic image quality enhancement method based on unsupervised learning model
CN116596778A
