Adversarial Generation Method of Airport Crack Images Based on UDWGAN++ Network
High-quality airport pavement crack images are generated through the UDWGAN++ network, which solves the problems of small scale and low quality of the data set, improves the accuracy and speed of disease detection, and meets the detection needs of large traffic sites.
Patent Information
- Application Number
- CN202111413965.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-11-25
AI Technical Summary
Existing technology is difficult to effectively solve the problems of small scale and low quality of data sets in airport pavement disease detection, resulting in insufficient detection accuracy and data generation rate, inability to detect subtle diseases in a timely manner, and affecting traffic safety.
The UDWGAN++ network based on UNet++ and Wasserstein GAN is used to generate high-quality data images through image preprocessing and adversarial networks. It combines random noise, data labels and reference sketches, uses the patchGAN discriminator for training, and backpropagates the adjusted generator to generate high-quality data images. Realistic images with high resolution, expanded data sets, and improved detection accuracy and speed.
It realizes the augmentation and repair of airport pavement disease data sets, improves detection accuracy and model training speed, meets the strict disease detection requirements of large traffic sites, and alleviates the problem of shortage of sample sets.
Smart Images

Figure CN114049538B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of computer vision and relates to an airport crack image adversarial generation method based on a UDWGAN++ network. Background Art
[0002] At present, a lot of manpower and material resources have been invested in vigorously developing transportation construction. However, airports, roads, bridges, etc. have been used for a long time, and the geographical structure and natural disasters have caused the resistance of the pavement structure to decay and safety hazards. Due to the large-scale transportation places such as airports, the requirements for pavement disease detection are extremely high. Small cracks may threaten the life and health of passengers through the heavy pressure of aircraft. Therefore, regular maintenance and inspection are indispensable; the diseases of airport pavements are various, mainly due to the excessive fatigue of asphalt pavements and the influence of the environment, which leads to the weakening of the material's compressive capacity and shrinkage, or the quality problems of asphalt materials cause huge resistance, resulting in cracks, collapses, peeling and sanding on the pavement. If they are not discovered in time, traffic accidents will occur. Therefore, detection is the premise of maintenance and rectification. However, in order to detect airport pavement diseases, a large amount of data is required. Since airports and other places involve the safety of passengers, close-up photography is not allowed, and data collection will be difficult. Generative adversarial networks can generate effective data, so as to train models and achieve high-precision detection.
[0003] In the detection of road defects, generative adversarial networks are a new research direction, which mainly improves the robustness and accuracy of detection from the source of data samples, and at the same time can expand the scope of application of the algorithm and solve many problems caused by low sample quality. However, most generative adversarial networks are now combined with UNet networks for semantic segmentation to repair and enhance original images. For example, patent number CN202110375243.3 is an image enhancement method, which fails to solve the problem from the source for objects with difficult data sets. Summary of the invention
[0004] Purpose of the invention: In order to overcome the deficiencies in the prior art, the purpose of the present invention is to provide an adversarial generation method for airport crack images based on the UDWGAN++ network, which can solve the problem of small-scale data sets, repair and restore image features, generate high-quality and realistic data images, and improve the average accuracy of detection of subtle diseases through image generation. At the same time, through improvements, the rate of data image generation can be accelerated to improve performance.
[0005] Technical solution: The airport crack image adversarial generation method based on UDWGAN++ network described in the present invention has the following specific operation steps:
[0006] (1) Build a data set, collect multiple high-resolution and low-resolution airport crack images, perform image preprocessing to fill in the data, and use Labelme software to annotate the data features to form a small data set;
[0007] (2) Build a new generative adversarial network to generate images based on the adversarial network structure based on UNet++ and Wasserstein GAN;
[0008] (3) Random noise, data label category information, and reference sketch are combined as features and input into the generator to obtain a fake image with a label;
[0009] (4) Connect the labeled fake data, reference sketches, and real image data through channels and pass them into the patchGAN discriminator for training to judge authenticity;
[0010] (5) Propagate the false part in the reverse direction to adjust the generator, and change the input data until it cannot be judged;
[0011] (6) After the training is completed, the parameters of the trained generator are fixed to generate images, generate higher quality samples, and achieve data set augmentation.
[0012] Furthermore, in step (1), the image preprocessing to fill in data specifically includes:
[0013] The image data processing includes purifying the training samples to eliminate the influence of "bad data"; performing data enhancement, preprocessing the training samples, increasing the diversity of the data, and expressing the spatial diversity of the images through cropping, flipping and normalization;
[0014] In addition, to address the influence of noise, a spatial pixel feature denoising algorithm is used to analyze whether there is a relationship between the central pixel and the neighboring pixels in the grayscale space within a window distribution of a specific size. Arithmetic mean filtering, Gaussian filtering, and statistical median filtering are used. The spatial proximity of the image and the similarity of pixel values are combined, and guidance information is added during the filtering process to obtain the final output image after filtering.
[0015] Furthermore, in step (2), in the adversarial network structure based on UNet++ and Wasserstein GAN, the generator in the Wasserstein GAN is replaced by the UNet++ network, and deep supervision is flexibly used. A spatial attention mechanism is introduced after the first convolutional layer of downsampling and after the second to last convolutional layer of upsampling in the UNet++ network; the GAN adversarial network is used to train D and G in a "confrontation and game" mode, so that the GAN reaches a state of dynamic equilibrium, that is, the generated image cannot be distinguished from the real image, and the probability value of the discriminator predicting a given image as a real image is close to 0.5; after the training is completed, the pseudo crack map output by the generator is used to fill the data set;
[0016] The specific training process is as follows:
[0017] 1. Randomly sample from the set random noise, input into the generator G, and obtain the forged crack map G(z);
[0018] Second, perform random sampling in the real image data as the real data x;
[0019] 3. The data generated in one of the first two steps is used as the input of the discriminator D. At this time, the discriminator D can easily distinguish the difference between the two, that is, D(G(z)) is close to 0 and D(x) is close to 1.
[0020] 4. Then calculate the loss function based on the obtained probability value, and the loss function is:
[0021]
[0022] Among them, P data (x) is the real data distribution, P g (x) is the data distribution of generator G, E(·) represents the mathematical expectation; then the loss function Obj of generator G is G (θ G )=-Obj D (θ D ,θ G );
[0023] 5. According to the loss function of the discriminator and the generator, the back propagation optimization method is adopted, that is, the parameters of the generator G are fixed first, and the discriminator D is optimized to maximize its accuracy; then the parameters of the discriminator D are fixed unchanged, and the generator G is optimized to minimize its accuracy. The result is P data (x) = P g , the optimal state is reached and the training is completed.
[0024] Furthermore, the specific method of using UNet++ as the generator of the adversarial network is as follows: the downsampling part of UNet++ is replaced by the Densenet network, that is, the DenseNet network, a deep convolutional network, is used as the backbone part of UNet++ for feature extraction. After the i layer is discarded, the i+1 layer is directly connected to the i-1 layer; when the 2nd to the i-th layers are discarded, the i+1 layer directly uses the features of the 1st layer, tightly connecting the features of different modules.
[0025] Furthermore, in step (3), the random noise, data label category information and reference sketch are combined as features and input into the generator to obtain a fake image with a label:
[0026] 100-dimensional random noise, data label category information and a reference sketch of 256×256×3 size are combined and input into the generator instead of the original image as features, where 3 is the image depth, to obtain a labeled fake image.
[0027] Furthermore, in step (4), the patchGAN discriminator clusters complaints: it is in the form of full convolution, and the image is mapped into an N*N matrix through many convolutions. Each point in the N*N matrix, i.e., true or false, represents the evaluation value of each small area in the original image, i.e., patch;
[0028] Originally, a single value was used to determine whether the generated image was real or fake. Now, a matrix composed of each small grid is used to make the judgment, and the loss is calculated at the same time, so that the judgment can be made while paying attention to more areas.
[0029] Furthermore, in step (5), the reverse propagation is the optimization model stage, specifically: the judged results are transmitted back to the generator and the discriminator, and then the generator and the discriminator are optimized. The optimization formula is:
[0030]
[0031] The optimized D formula is:
[0032]
[0033] The optimized G formula is:
[0034]
[0035] The model is optimized through the discriminant result matrix and the model parameters are updated. At the same time, the hyperparameters are adjusted, and the SGD optimizer and CrossEntropyLoss are selected as the loss function.
[0036] By combining UNet++ and WGAN, the deep convolutional generative adversarial network can learn the characteristics of pavement cracks, and the generative adversarial network can generate reasonable pavement crack images as the data set for the pavement crack detection model using deep learning. Relying on this network model, an image data set close to the real pavement crack image can be better generated, that is, a reliable sample set that can be used for model training can be obtained, alleviating the problem of shortage of sample sets in pavement crack identification work using deep learning, and then using the deep learning detection model to solve the shortcomings of traditional manual visual inspection, so that pavement maintenance work is guaranteed.
[0037] The invention is used to improve the integrity and quantity of airport crack image data sets, which can improve the accuracy of training models, expand training sets, and improve sample diversity. First, multiple airport crack images with high resolution and low resolution are collected, and data features are annotated by Labelme software to form a small data set. UNet++ is used as a generator and Wasserstein is used to generate the data. The GAN-based generative adversarial network uses the DenseNet network as the backbone of UNet++ to generate images; 100-dimensional random noise, data label category information and a 256×256 reference sketch are combined as features and input into the generator to obtain a labeled fake image; the labeled fake data, reference sketch and real image data are channel-connected and passed into the Markov discriminator (patchGAN) for training to judge the true and false; the judged false part is propagated in the reverse direction to adjust the generator, and the input data is replaced until it cannot be judged; after the training is completed, the parameters of the trained generator are fixed to generate images, generate higher quality samples, and realize the augmentation of the data set; the present invention solves the overfitting phenomenon caused by the imperfection of the data set in various fields, and at the same time improves the accuracy and running speed of the model training on the basis of realizing the augmentation of the data set, thereby generating ultra-high resolution image data.
[0038] Beneficial effects: Compared with the prior art, the present invention has the following features: Through the adversarial generation method of airport crack images based on the UDWGAN++ network described in the present invention, it is possible to augment and repair the airport disease data set, judge the diseases more accurately, and better meet the requirements of disease detection and maintenance management in large and demanding occasions such as airports. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a preparation flow chart of the present invention;
[0040] Figure 2 It is a network structure diagram of Unet in the present invention;
[0041] Figure 3It is the network structure diagram of Unet++ in the present invention;
[0042] Figure 4 It is a partial structural diagram of the DenseNet network introduced in the present invention to improve the generation of ultra-high quality images;
[0043] Figure 5 Schematic diagram of the CBAM channel spatial attention module in the present invention;
[0044] Figure 6 It is the overall adversarial network model diagram in the present invention;
[0045] Figure 7 This is a graph showing the training results of the overall adversarial network model in the present invention. DETAILED DESCRIPTION
[0046] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.
[0047] As shown in the figure, the adversarial generation method of airport crack images based on UDWGAN++ network described in the present invention has the following specific operation steps:
[0048] (1) Build a data set, collect multiple high-resolution and low-resolution airport crack images, perform image preprocessing to fill in the data, and use Labelme software to annotate data features to form a small data set for generating adversarial networks and subsequent target detection;
[0049] The image preprocessing is used to fill the data. Image data processing generally includes three channels RGB, i.e., three primary colors. The training samples are purified. There may be "bad data" in the training samples, which will affect the accuracy of the detection results. Through data preprocessing, that is, artificially processing the data before training, this part of the bad data is eliminated to eliminate the impact on the training results; data enhancement is performed, and the training samples are preprocessed to increase the diversity of the data. The spatial diversity of the image is shown by means of cropping, flipping, normalization, etc. This process is also a method of data enhancement, and the trained model is more robust; and the most important step is to solve the influence of noise. The spatial pixel feature denoising algorithm is used to analyze whether there is a direct relationship between the central pixel and the neighboring pixels in the grayscale space within a window distribution of a specific size. Arithmetic mean filtering and Gaussian filtering, statistical median filtering, combined with the spatial proximity of the image and the similarity of pixel values, guiding information is added during the filtering process to obtain the final output image after filtering;
[0050] (2) Build a new type of generative adversarial network, which is based on the use of UNet++ as a generator and the adversarial convolutional neural network structure based on Wasserstein GAN to generate images ( Figure 3 shown);
[0051] Specifically, we use UNet++ as the generator and Wasserstein GAN-based adversarial network structure to generate images and build a training model. However, due to simple symmetrical up and down sampling, a large amount of internal data is lost, and the feature information of small targets cannot be reconstructed, and the extracted features are sparse. Therefore, we use the DenseNet network to replace the downsampling layer, which not only solves the data loss problem and strengthens the hierarchical transmission of features, but also alleviates the gradient disappearance and reduces the number of parameters.
[0052] GAN is composed of a generator G and a discriminator D. The generator G receives a random noise vector z and uses it to generate new sample images through training, which are recorded as G(z). The discriminator tries to distinguish the generated image from the real image, and the output is the true probability of the fake image. If the input is a real sample, the output probability is closer to 1, and if the input is a generated fake sample, the output probability is closer to 0. In the application of the network, through training, D and G are in a "confrontation and game" mode, so that GAN reaches a state of dynamic balance, that is, the generated image cannot be distinguished from the real image, and the probability value of the discriminator predicting a given image as a real image is close to 0.5. After the training is completed, the pseudo crack map output by the generator is used to fill the data set; Figure 1 As shown, the specific training process is as follows:
[0053] 1. Randomly sample from the set random noise, input into the generator G, and obtain the forged crack map G(z);
[0054] 2. Randomly sample the real image data as the real data x;
[0055] 3. The data generated in one of the first two steps is used as the input of the discriminator D. At this time, the discriminator D can easily distinguish the difference between the two, that is, D(G(z)) is close to 0 and D(x) is close to 1.
[0056] 4. Then calculate the loss function based on the obtained probability value, and the loss function is:
[0057]
[0058] Among them, P data (x) is the real data distribution, P g (x) is the data distribution of generator G, E(·) represents the mathematical expectation; then the loss function Obj of generator G is G (θ G )=-Obj D (θ D ,θ G );
[0059] 5. According to the loss function of the discriminator and the generator, the back propagation optimization method is adopted, that is, the parameters of the generator G are fixed first, and the discriminator D is optimized to maximize its accuracy; then the parameters of the discriminator D are fixed unchanged, and the generator G is optimized to minimize its accuracy. The result is P data (x) = P g , the optimal state is reached and the training is completed;
[0060] In addition, for the generator using UNet++ as the adversarial network, the downsampling part of UNet++ is replaced with the Densenet network, that is, the DenseNet network, a deep convolutional network, is used as the backbone part of UNet++ for feature extraction. After the i layer is discarded, the i+1 layer is directly connected to the i-1 layer; when the 2nd to the i-th layers are discarded, the i+1 layer directly uses the features of the 1st layer, tightly connecting the features of different modules;
[0061] (3) Random noise, data label category information, and reference sketch are combined as features and input into the generator to obtain a fake image with a label;
[0062] That is, 100-dimensional random noise, data label category information, and a 256×256 reference sketch are combined as features and input into the generator to obtain a fake image with a label; this improves the diversity and guidance of the generated images;
[0063] Specifically, the present invention combines 100-dimensional random noise, data label category information and a 256×256 reference sketch as features and inputs them into the generator to obtain a labeled fake image. In this step, the original image is replaced by the data label information and the reference sketch. Although the feature extraction is relatively slow during the initial training process, the image data generated by the generative adversarial network in the present invention must be diverse and authentic. If the original image is used as the basis for generating the image, the generated image data is relatively similar and single, which does not meet the purpose of the present invention; the downsampling part of UNet++ uses the idea of DenseNet ( Figure 4 As shown in the figure, it not only solves the problem of data loss and strengthens the hierarchical transmission of features, but also alleviates the gradient disappearance and the reduction of parameters, strengthens the feature extraction part, and improves the robustness of the model. The DenseNet network is a deep convolutional network, which is used as the backbone part of UNet++ for feature extraction. At the same time, the CBAM spatial channel attention mechanism is introduced after the first layer of downsampling and the second to last layer of upsampling in the UNet++ network model ( Figure 5As shown in the figure, the performance of the generated network is improved, while the spatial dimension and the channel dimension are better integrated to achieve close interaction of mutual dependence, and the acquisition of small target information in a larger receptive field. This process meets the detection requirements of high-demand places such as airports, thereby improving the accuracy of the generated model;
[0064] (4) The labeled counterfeit data, reference sketches, and real image data are connected through channels and passed into the discriminator for training to determine the authenticity. The discriminator uses the patchGAN structure to score each small block of the real image and the generated image and finally take the average value to determine the authenticity, which reduces the amount of calculation and improves the discrimination rate.
[0065] The patchGAN (fully convolutional GAN) is designed in the form of full convolution. The image is mapped into an N*N matrix through many convolutions instead of being input into a fully connected layer or activation function. It is similar to the evaluation value of the evaluation generator in GAN. Each point in the N*N matrix, that is, true or false, represents the evaluation value of each small area in the original image, that is, patch. Originally, one value was used to judge the true or false of the generated image, but now the matrix composed of each small grid is used to judge, and the loss is calculated at the same time. The judgment is made under the premise of paying attention to more areas.
[0066] (5) Propagate the false parts in the reverse direction to adjust the generator, changing the input data until the generated image and the real image cannot be distinguished;
[0067] Specifically, the reverse propagation is the stage of optimizing the model; the judged results are transmitted back to the generator and the discriminator, and then the generator and the discriminator are optimized. The optimization formula is:
[0068]
[0069] The optimized D formula is:
[0070]
[0071] The optimized G formula is:
[0072]
[0073] By optimizing the model through the discriminant result matrix, a precise model can be trained more accurately and quickly. On the basis of the original model, reverse training of the results is added to correct the errors and update the model parameters.
[0074] (6) After the training is completed, the parameters of the trained generator are fixed to generate images, generating higher quality samples and achieving data set augmentation and repair ( Figure 6 shown).
[0075] Furthermore, UNet++ is used as the generator and the adversarial network structure based on Wasserstein GAN is used to generate images. The discriminator adopts the patchGAN structure, which scores each small block of the real image and the generated image and finally takes the average value to judge the authenticity, reducing the amount of calculation and improving the discrimination rate.
[0076] Furthermore, 100-dimensional random noise, data label information and a 256×256 reference sketch are combined with label categories as features and input into the generator to obtain labeled fake images, which improves the diversity and guidance of the generated images.
[0077] Furthermore, the backbone of UNet++ uses the DenseNet network (the downsampling part of UNet++ uses the idea of DenseNet, which not only solves the data loss problem and strengthens the hierarchical transmission of features, but also alleviates the gradient disappearance and the reduction of parameters); the feature extraction part is strengthened to improve the robustness of the model.
[0078] Furthermore, deep supervision is flexibly used, and the deep convolutional network DenseNet with a huge number of parameters is used to significantly reduce the parameters within an acceptable accuracy range and improve the model training rate.
[0079] Furthermore, the CBAM spatial channel attention mechanism was introduced after the first downsampling layer and the penultimate upsampling layer of the UNet++ network model, which improved the performance of the generated network and better integrated the spatial dimension and channel dimension to achieve interdependent and tight interactivity, thereby improving the accuracy of the generated model.
[0080] The experimental data set is an airport crack map collected in Zhenjiang City, Jiangsu Province. The original image is a grayscale image of 1920×941 size, with a total of 5000 images. Data preprocessing was performed before training, and the image size was uniformly normalized to 256×256 to reduce the computational complexity of the adversarial network process. UDWGAN++ was trained for a total of 4000 rounds, and finally 600 test data images were used to test the trained model. The experimental results are shown in Figure 7 .
[0081] The above are only preferred embodiments of the present invention, and the protection scope thereof is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.
Claims
1. The adversarial generation method of airport crack images based on UDWGAN++ network is characterized by: The specific steps are as follows: (1) Build a data set, collect multiple high-resolution and low-resolution airport crack images, perform image preprocessing to fill in the data, and use Labelme software to annotate the data features to form a small data set; (2) Build a new generative adversarial network to generate images based on the adversarial network structure based on UNet++ and Wasserstein GAN; In step (2), in the adversarial network structure based on UNet++ and Wasserstein GAN, the generator in the Wasserstein GAN is replaced by the UNet++ network, and deep supervision is used to enhance the training effect. In addition, a spatial attention mechanism is introduced after the first convolutional layer of the downsampling and the second to last convolutional layer of the upsampling of the UNet++ network; the GAN adversarial network is used to train D and G in a "confrontation and game" mode, so that the GAN reaches a state of dynamic equilibrium, that is, the generated image cannot be distinguished from the real image, and the probability value of the discriminator predicting a given image as a real image is close to 0.5; after the training is completed, the pseudo crack map output by the generator is used to fill the data set; The training process is as follows:
1. Randomly sample from the set random noise, input into the generator G, and obtain the forged crack map G(z); Second, perform random sampling in the real image data as the real data x; 3. The data generated in one of the first two steps is used as the input of the discriminator D. At this time, the discriminator D can easily distinguish the difference between the two, that is, D(G(z)) is close to 0 and D(x) is close to 1.
4. Then calculate the loss function based on the obtained probability value. The loss function is: Among them, P data (x) is the real data distribution, P g (x) is the data distribution of generator G; the loss function Obj of generator G G (θ G )=-ObjD(θ D ,θ G ); 5. According to the loss function of the discriminator and the generator, the back propagation optimization method is adopted, that is, the parameters of the generator G are fixed first, and the discriminator D is optimized to maximize its accuracy; then the parameters of the discriminator D are fixed unchanged, and the generator G is optimized to minimize its accuracy. The result is P data (x) = P g When the optimal state is reached, the training is completed; In addition, using UNet++ as the generator of the adversarial network is to replace the downsampling part of UNet++ with the Densenet network, that is, the DenseNet network, a deep convolutional network, is used as the backbone part of UNet++ for feature extraction. After discarding the i-th layer, the i+1-th layer is directly connected to the i-1-th layer; when the 2nd to the i-th layers are discarded, the i+1-th layer directly uses the features of the 1st layer, tightly connecting the features of different modules; (3) Random noise, data label category information, and reference sketch are combined as features and input into the generator to obtain a fake image with a label; (4) Connect the labeled fake data, reference sketches, and real image data through channels and pass them into the patchGAN discriminator for training to judge authenticity; The patchGAN discriminator is in the form of full convolution. The image is mapped into an N*N matrix after many convolutions. Each point in the N*N matrix, i.e. true or false, represents the evaluation value of each small area in the original image, i.e. patch. Originally, a single value was used to determine whether the generated image was real or fake. Now, a matrix composed of each small grid is used to determine whether the image was real or fake. The loss is calculated at the same time, and the determination is made while focusing on more areas. (5) Propagate the false part in the reverse direction to adjust the generator, and change the input data until it cannot be judged; (6) After the training is completed, the parameters of the trained generator are fixed to generate images, generate higher quality samples, and achieve data set augmentation.
2. The airport crack image adversarial generation method based on UDWGAN++ network according to claim 1 is characterized in that: In step (1), the image preprocessing to fill in data is specifically: The image data processing includes purifying the training samples to eliminate the influence of "bad data"; performing data enhancement, preprocessing the training samples, increasing the diversity of the data, and expressing the spatial diversity of the images through cropping, flipping and normalization; In addition, to address the influence of noise, a spatial pixel feature denoising algorithm is used to analyze whether there is a relationship between the central pixel and the neighboring pixels in the grayscale space within a window distribution of a specific size. Arithmetic mean filtering, Gaussian filtering, and statistical median filtering are used. The spatial proximity of the image and the similarity of pixel values are combined, and guidance information is added during the filtering process to obtain the final output image after filtering.
3. The airport crack image adversarial generation method based on UDWGAN++ network according to claim 1 is characterized in that: In step (3), random noise, data label category information and reference sketch are combined as features and input into the generator to obtain a fake image with a label: 100-dimensional random noise, data label category information and a reference sketch of 256×256×3 size are combined as features instead of the original image and input into the generator, where 3 is the image depth, to obtain a labeled fake image.
4. The airport crack image adversarial generation method based on UDWGAN++ network according to claim 1 is characterized in that: in step (5), the reverse propagation is the optimization model stage, specifically: the judged results are reversely transmitted to the generator and the discriminator, and then the generator and the discriminator are optimized, and the optimization formula is: min G max D V(D,G)=E x~Pdata(x) [logD(x)]+E z~pz(z) [log(1-D(G(z)))] The optimized D formula is: max D V(D,G)=E x~Pdata(x) [logD(x)]+E z~pz(z) [log(1-D(G(z)))] The optimized G formula is: min G V(D,G)=E z~pz(z) [log(1-D(G(z)))] The model is optimized through the discriminant result matrix and the model parameters are updated. At the same time, the hyperparameters are adjusted, and the SGD optimizer and CrossEntropyLoss are selected as the loss function.
Citation Information
Patent Citations
Image enhancement system and image enhancement method based on generative adversarial network
CN113034417A
A dam image crack detection method based on transfer learning
CN109345507A
Pavement crack defect detection method based on generative adversarial network
CN110120038A
