Guided face image editing method and system based on skip connection attention
By using a method based on skip connection attention in face image editing, combined with the guidance conditions of edges and colors, the problem of insufficient face image editing quality in the existing technology is solved, and high-quality image editing effects are achieved.
Patent Information
- Application Number
- CN202110779150.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-09
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-07-09
AI Technical Summary
Existing technology makes it difficult to perform high-quality guided editing of facial images, especially in the shape editing of facial expressions, and is prone to the problem of blurred image reconstruction textures.
A guided face image editing method based on skip connection attention is adopted. Through the guidance conditions of edges and colors, combined with the weighted multi-scale loss function and the residual upsampling module embedding the skip connection attention mechanism, the encoding features and decoding features are improved. Blended to produce coherent and clear textures.
It achieves high-quality face image editing guided by colors and edges, avoids local texture distortion, and achieves excellent guided editing effects.
Smart Images

Figure CN113724340B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of computer vision and image processing, and in particular to a guided face image editing method and system based on skip-connected attention. Background Art
[0002] Face image editing refers to editing a given face image for a specified purpose and making the generated image look real and natural. It is an important task in computer vision. Face images are the most widely used type of images in life. Advertisements, magazines and websites need to process a large number of face images every day. Although there are some commercial editing software (such as Adobe Photoshop), for most people, editing face images is still a time-consuming and laborious task. Some commercial software in the prior art, such as Meitu XiuXiu, Qingyan Camera, etc., can be operated with one button. However, these image editing software only edits the face locally, and the scope of change is small; and it cannot effectively edit the facial features (such as editing the shape of the eyes and mouth).
[0003] Generally, the shallow feature maps in the generative network have clear textures but lack semantic information, while the deep feature maps contain abstract semantic information but lack texture details. In the encoding process, the input image is inevitably lost after a large amount of downsampling. In the process of the decoding network reconstructing the abstract semantic features into a face image, due to the limitations of the guidance conditions, guided face image editing is more likely to have the problem of blurred texture in image reconstruction. Skip connection is a widely used method in image processing tasks and plays an important role in improving the quality of image generation. Skip connection establishes a feature fusion channel between the encoding features and the decoding features, and the decoding network can fuse the encoding features to improve the quality of the generated image. However, ordinary skip connection is a direct concatenation or addition of features at the same position, which has limited improvement in image generation quality. Summary of the invention
[0004] The present invention provides a guided face image editing method and system based on skip connection attention, which overcomes the problem that it is difficult to perform guided editing on face images in the prior art. The guided face image editing method based on edges and colors performs face image editing according to given colors and edges to obtain the expected results of guided editing. The present invention adopts a new guided training method and proposes a new multi-scale weighted loss function to ensure the effectiveness of the guided conditions, and combines the new skip connection attention mechanism with the residual upsampling module to select important features from complex features, improve the fusion of encoding features and decoding features, and generate coherent and clear textures under the guidance of colors and edges to avoid local texture distortion caused by input guided conditions, thereby achieving excellent guided editing effects.
[0005] Specifically, the embodiment of the present invention provides the following technical solutions:
[0006] In a first aspect, an embodiment of the present invention provides a guided face image editing method based on skip connection attention, comprising:
[0007] Obtain the face image to be edited and the guide map;
[0008] Inputting the face image to be edited and the guide map into a trained guided face image editing model based on skip connection attention to obtain an edited face image output by the guided face image editing model based on skip connection attention, wherein the guided face image editing model based on skip connection attention is obtained by randomly extracting guiding conditions in terms of edge lines and colors from sample face images, and conducting guided face image editing training from the two aspects of edge lines and colors in an adversarial manner;
[0009] Among them, the guided face image editing model based on jump connection attention is used to perform guided editing on the face image to be edited to obtain the edited face image based at least on a weighted multi-scale loss function and a residual upsampling module embedded with a jump connection attention mechanism.
[0010] Furthermore, the guided face image editing method based on skip connection attention also includes:
[0011] The skip-connected attention-based guided face image editing model includes a generative network layer and a discriminative network layer;
[0012] The generating network layer includes an encoding network layer and a decoding network layer, and the generating network layer is used to fuse the encoding features of different positions and / or different channels based on the cross-correlation attention of the encoding features and the decoding features by the residual upsampling module embedded in the skip connection attention mechanism, and transfer the encoding features from the encoding network to the decoding network, and is used to perform guided editing on the face image to be edited from the two aspects of edge and color based on the weighted multi-scale loss function to obtain the edited face image;
[0013] The discriminant network layer is used to discriminate the authenticity of the edited face image output by the generative network layer.
[0014] Furthermore, the guided face image editing method based on skip connection attention also includes:
[0015] The guided face image editing model based on skip connection attention is obtained by randomly extracting guiding conditions in terms of edge and color from sample face images, and conducting guided face image editing training from the two aspects of edge and color in an adversarial manner, including:
[0016] Select the true value of the image;
[0017] Generate a random mask;
[0018] Randomly generate edge guidance conditions;
[0019] Randomly generate color-guided conditions;
[0020] Fix the generative network layer, input the random mask, the edge guide condition, and the color guide condition to the generative network layer to obtain an edited face image, and based on the loss function L D Optimizing the discriminative network layer; and
[0021] Fix the discriminant network layer and based on the loss function L G The generated network layer is optimized.
[0022] Furthermore, the guided face image editing method based on skip connection attention also includes:
[0023] The weighted multi-scale loss function is determined by the following steps:
[0024] Determine dynamic weights;
[0025] Extracting image content from the multi-scale feature map of the decoding network layer using convolution;
[0026] Use the canny algorithm to extract image edges;
[0027] The weighted multi-scale loss function is determined.
[0028] Furthermore, the guided face image editing method based on skip connection attention also includes:
[0029] The residual upsampling module based on the embedded skip connection attention mechanism fuses the encoding features of different positions and / or different channels based on the cross-correlation attention of the encoding features and the decoding features, and transfers them from the encoding network to the decoding network, including:
[0030] By using a skip connection position attention mechanism, the features of the Nth layer of the encoding network layer in the generating network layer are respectively introduced into the Mth layer of the decoding network layer through skip connections, the correlation between the encoding features and the decoding features at different positions is calculated by using the attention mechanism, and multiple features at different positions are fused based on the correlation, wherein the values of N and M are different; and
[0031] Through the jump connection channel attention mechanism, the encoding features and the decoding features of the corresponding size are spliced through jump connections respectively. The channel attention mechanism is used to calculate the correlation between the encoding features and decoding features of different channels. Based on the correlation, multiple features of different channels are fused.
[0032] Furthermore, the guided face image editing method based on skip connection attention also includes:
[0033] The skip connection position attention mechanism is used to introduce the features of the Nth layer of the encoding network layer in the generating network layer into the Mth layer of the decoding network layer through skip connections, and the attention mechanism is used to calculate the correlation between the encoding features and the decoding features at different positions, and multiple features at different positions are fused based on the correlation, wherein the values of N and M are different, including:
[0034] The block matching fusion method is adopted to crop the feature maps into 3×3 feature blocks, and the convolution blocks are used as convolution kernels for convolution and deconvolution calculations to perform feature fusion with the decoded features respectively.
[0035] Furthermore, the guided face image editing method based on skip connection attention also includes:
[0036] The skip connection channel attention mechanism is used to splice the encoding features and the decoding features of the corresponding size through skip connections, and the channel attention mechanism is used to calculate the correlation between the encoding features and the decoding features of different channels. Based on the correlation, multiple features of different channels are fused, including:
[0037] Perform channel splicing to expand the number of channels to N times, where N is a positive integer;
[0038] The channel weights are obtained by using a 3×3 convolution and global average pooling of a branch, and the channel weights are subjected to two layers of 1×1 convolution to obtain the final channel weights, wherein the 3×3 convolution is used for feature extraction and dimensionality reduction, and the two layers of 1×1 convolution are used to calculate the relationship between different channel features; and
[0039] The z convolution is reduced in dimension using the 3×3 convolution of another branch, and the channel features and the final channel weights are correspondingly multiplied to obtain the output features, and the number of channels is restored to the number of channels of the decoded features.
[0040] Furthermore, the guided face image editing method based on skip connection attention also includes:
[0041] It is characterized in that the loss function L G for:
[0042] L G=λ rec L rec +λ gen L gen +λ per L per +λ style L style +λ wm L wm
[0043] Among them, L rec is the reconstruction loss function, L per is the perceptual loss function, L style is the style loss function, L gen is the adversarial loss function, L wm is the multi-scale reconstruction loss function, λ rec is the corresponding weight of the reconstruction loss function, λ gen is the corresponding weight of the adversarial loss function, λ per The corresponding weight of the perceptual loss function, λ style is the corresponding weight of the style loss function, λ wm is the corresponding weight of the multi-scale reconstruction loss function.
[0044] Furthermore, the guided face image editing method based on skip connection attention also includes:
[0045] The loss function L D for:
[0046] L D =λ dis L dis
[0047] Among them, L dis is the discriminant network loss function, λ dis is the corresponding weight of the discriminant network loss function.
[0048] In a second aspect, an embodiment of the present invention further provides a guided face image editing system based on skip connection attention, comprising:
[0049] A face image acquisition module, used to acquire a face image to be edited; and
[0050] A face image editing module is used to input the face image to be edited into a trained guided face image editing model based on skip connection attention to obtain an edited face image output by the guided face image editing model based on skip connection attention, wherein the guided face image editing model based on skip connection attention is obtained by randomly extracting guiding conditions in terms of edges and colors from sample face images, and performing guided face image editing training from the two aspects of edges and colors in an adversarial manner, wherein the guided face image editing model based on skip connection attention is used to perform guided editing on the face image to be edited to obtain the edited face image based on at least a weighted multi-scale loss function and a residual upsampling module embedded with a skip connection attention mechanism.
[0051] It can be seen from the above technical solutions that the guided face image editing method and system based on skip connection attention provided by the embodiment of the present invention overcomes the problem that it is difficult to perform guided editing on face images in the prior art. The guided face image editing method based on edges and colors performs face image editing according to given colors and edges to obtain the expected results of guided editing. The present invention adopts a new guided training method and proposes a new multi-scale weighted loss function to ensure the effectiveness of the guided conditions, and combines the new skip connection attention mechanism with the residual upsampling module to select important features from complex features, improve the fusion of encoding features and decoding features, and generate coherent and clear textures under the guidance of colors and edges to avoid local texture distortion caused by input guided conditions, thereby achieving excellent guided editing effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 A flowchart of a guided face image editing method based on skip-connected attention provided by an embodiment of the present invention;
[0054] Figure 2 A schematic diagram of the structure of a guided face image editing model based on skip-connected attention provided by an embodiment of the present invention;
[0055] Figure 3 A schematic diagram of the structure of an improved residual structure provided by an embodiment of the present invention;
[0056] Figure 4A schematic diagram of the structure of a residual upsampling module embedded with an attention mechanism provided in one embodiment of the present invention;
[0057] Figure 5 A schematic diagram of a skip connection position attention mechanism provided by an embodiment of the present invention;
[0058] Figure 6 A schematic diagram of a skip connection channel attention mechanism provided by an embodiment of the present invention;
[0059] Figure 7 A schematic diagram of the structure of a guided face image editing system based on skip-connected attention provided by an embodiment of the present invention; and
[0060] Figure 8 A schematic diagram of an electronic device provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0062] The various terms or phrases used in the present invention have the general meanings known to those of ordinary skill in the art. Even so, the present invention still hopes to provide a more detailed description and explanation of these terms or phrases. If the terms and phrases involved in this article are inconsistent with the commonly known meanings, the meanings expressed in the present invention shall prevail; and if not defined in the present invention, they have the meanings commonly understood by those of ordinary skill in the art.
[0063] In the prior art, the shallow feature map in the generative network has clear texture but lacks semantic information, while the deep feature map contains abstract semantic information but lacks texture details. During the encoding process, the input image is inevitably lost after a large amount of downsampling. In the process of the decoding network reconstructing the abstract semantic features into a face image, due to the limitations of the guidance conditions, guided face image editing is more prone to the problem of blurred texture in image reconstruction. Jump connection is a widely used method in image processing tasks and plays an important role in improving the quality of image generation. Jump connection establishes a feature fusion channel between the encoding features and the decoding features, and the decoding network can fuse the encoding features to improve the quality of the generated image. However, ordinary jump connection is a direct splicing or addition of features at the same position, which has limited improvement in image generation quality.
[0064] In view of this, in the first aspect, an embodiment of the present invention proposes a guided face image editing method and system based on skip connection attention, which overcomes the problem of difficulty in guided editing of face images in the prior art, and is based on a guided face image editing method of edges and colors, and performs face image editing according to given colors and edges to obtain the expected results of guided editing. The present invention adopts a new guided training method and proposes a new multi-scale weighted loss function to ensure the effectiveness of the guided conditions, and combines the new skip connection attention mechanism with the residual upsampling module to select important features from complex features, improve the fusion of encoding features and decoding features, and generate coherent and clear textures under the guidance of colors and edges to avoid local texture distortion caused by input guided conditions, thereby achieving excellent guided editing effects.
[0065] Combine the following Figure 1 The present invention describes a guided face image editing method based on skip-connected attention.
[0066] Figure 1 A flowchart of a guided face image editing method based on skip-connected attention provided by an embodiment of the present invention.
[0067] In this embodiment, it should be noted that the guided face image editing method based on skip connection attention may include the following steps:
[0068] S1: Obtain the face image to be edited and the guide map;
[0069] S2: inputting the face image to be edited and the guide map into the trained guided face image editing model based on skip connection attention, and obtaining the edited face image output by the guided face image editing model based on skip connection attention, wherein the guided face image editing model based on skip connection attention is obtained by randomly extracting guiding conditions in terms of edge and color from the sample face image, and conducting guided face image editing training from the two aspects of edge and color in an adversarial manner;
[0070] Among them, the guided face image editing model based on skip connection attention is used to perform guided editing on the face image to be edited to obtain the edited face image based on at least a weighted multi-scale loss function and a residual upsampling module embedded with a skip connection attention mechanism.
[0071] Specifically, with respect to S1, obtaining the guide face image to be edited may include but is not limited to: erasing a portion of the original face image to simulate a missing portion, and inputting edges and colors in the erased region to obtain the guide face image to be edited.
[0072] Specifically, with respect to S1, the guidance image may be an image including guidance conditions.
[0073] More specifically, the guiding conditions may include but are not limited to edge lines and colors. The present invention performs guided editing on the face image to be edited by applying a guiding map including guiding conditions such as edge lines and colors to the face image to be edited.
[0074] Combine the following Figure 2 , Table 1 and Table 2 describe the guided face image editing model based on skip connection attention provided by an embodiment of the present invention.
[0075] Figure 2 A schematic diagram of the structure of a guided face image editing model based on skip-connected attention provided by an embodiment of the present invention.
[0076] Table 1 is a detailed structural parameter table of the generated network structure.
[0077]
[0078]
[0079] Table 1
[0080] Table 2 is a detailed structural parameter table of the discriminant network structure.
[0081]
[0082] Table 2
[0083] In this embodiment, it should be noted that the guided face image editing method based on jump connection attention may also include: the guided face image editing model based on jump connection attention includes a generation network layer and a discrimination network layer, wherein the generation network layer includes an encoding network layer and a decoding network layer, and the generation network layer is used to fuse the encoding features of different positions and / or different channels based on the cross-correlation attention of the encoding features and the decoding features based on the residual upsampling module embedded in the jump connection attention mechanism, and pass them from the encoding network to the decoding network, and is used to perform guided editing on the face image to be edited from the two aspects of edge and color based on the weighted multi-scale loss function to obtain the edited face image; the discrimination network layer is used to judge the authenticity of the edited face image output by the generation network layer.
[0084] Specifically, the generation network layer further includes an encoding network layer En and a decoding network layer De, wherein the encoding network layer En and the decoding network layer De constitute an improved residual structure and are used to perform guided editing of face images.
[0085] As shown in Tables 1 and 2, the generative network layer consists of 7 layers of convolution, 4 layers of residual downsampling, and 4 layers of residual upsampling. Among them, the generative network layer can be divided into encoding network, decoding network, and skip connection attention. The encoding network compresses the 128×128 face image into a 2×2 feature map, and the decoding network reconstructs the feature map into a face image. The skip connection attention is between the encoding network and the decoding network, and transmits the encoding features of different levels to the decoding network; while the discriminative network layer consists of 6 layers of convolution, mapping the 128×128 face image into an 8×8 matrix, and the receptive field of each element in the matrix is 69. During the editing process, the input of the generative network is the guide map, and the output of the generative network is the image editing result.
[0086] Combine the following Figure 3 and 4 An improved residual structure and a residual upsampling module provided by embodiments of the present invention are described.
[0087] Figure 3 A schematic diagram of the structure of an improved residual structure provided by an embodiment of the present invention, and Figure 4 A schematic diagram of the structure of a residual upsampling module embedded with an attention mechanism provided in one embodiment of the present invention.
[0088] Specifically, in order to enhance the feature encoding and feature decoding capabilities of the generated network layer, the present invention, based on the ResNet residual block, combines maximum pooling Max-pooling, instance normalization Instanced Norm, mirror padding Ref-Padding, etc. to construct residual upsampling and residual downsampling modules.
[0089] Among them, the advantage of Max-pooling is that the downsampling step is 1, which can effectively retain detail information, select the maximum eigenvalue and retain its corresponding position information through the position matrix, which can better model the position relationship between different features; the advantage of Instanced Norm is that although its calculation method is similar to BatchNorm, Instanced Norm uses a single sample as the calculation unit, which avoids mutual interference between different samples in a batch, and helps to learn the pixel distribution law in a single image; the advantage of Ref-Padding is that it reflects and fills the internal elements of feature maps at all levels to the edge, which better retains the edge information in feature maps at all levels.
[0090] In this embodiment, it should be noted that the guided face image editing method based on jump connection attention may also include: based on the residual upsampling module embedded in the jump connection attention mechanism, based on the cross-correlation attention of the encoding features and the decoding features, the encoding features of different positions and / or different channels are fused and passed from the encoding network to the decoding network, including: through the jump connection position attention mechanism, the features of the Nth layer of the encoding network layer in the generation network layer are respectively introduced into the Mth layer of the decoding network layer through jump connections, and the attention mechanism is used to calculate the correlation between the encoding features and the decoding features at different positions, and multiple features at different positions are fused based on the correlation, wherein the values of N and M are different; and through the jump connection channel attention mechanism, the encoding features and the decoding features of the corresponding sizes are spliced through jump connections respectively, and the channel attention mechanism is used to calculate the correlation between the encoding features and the decoding features of different channels, and based on the correlation, multiple features of different channels are fused.
[0091] Specifically, the present invention introduces the features of layers 1, 2, and 3 of the encoding network layer Encoder of the generating network into layers 3, 2, and 1 of the decoding network layer Decoder through jump connections, and uses the position attention mechanism to perform feature fusion. The decoding network decodes the deep semantic features and reconstructs them into a face image. It is difficult to avoid information loss in the process of encoding to decoding. Compared with the decoding feature map, the encoding feature map contains more texture and structural information of the original image. With regard to the ordinary jump connection in the prior art, it can only fuse the features at the same position, and cannot fuse the related features at different positions; the present invention proposes a position attention mechanism to fuse the encoding features and the decoding features. The position attention mechanism can calculate the correlation between each decoding feature and the encoding features at different positions, which not only improves the clarity of the generated image, but also the long-distance feature fusion is also conducive to learning the semantic information of the face image and enhancing the structural coherence of the face image.
[0092] Specifically, the channel attention mechanism and the position attention mechanism have different focuses on feature fusion. In the feature map, each feature channel represents a type of feature. The position attention mechanism focuses on the fusion of features at different positions in the corresponding channel, while the channel attention mechanism focuses on the fusion of features from different channels. Channel attention can explore the relationship between the features of different channels of the encoding features and the decoding features, strengthen the fusion of useful features, and help suppress image noise and improve the quality of generated images.
[0093] Combine the following Figure 5 The skip connection position attention mechanism provided by an embodiment of the present invention is described.
[0094] Figure 5 A schematic diagram of a skip connection position attention mechanism provided for an embodiment of the present invention.
[0095] In this embodiment, it should be noted that the guided face image editing method based on jump connection attention may also include: through the jump connection position attention mechanism, the features of the Nth layer of the encoding network layer in the generation network layer are introduced into the Mth layer of the decoding network layer through jump connections, and the attention mechanism is used to calculate the correlation between the encoding features and the decoding features at different positions, and multiple features at different positions are fused based on the correlation, wherein the values of N and M are different, including: using block matching fusion to crop the feature map into 3×3 feature blocks respectively, and using the convolution block as the convolution kernel for convolution and deconvolution calculations to perform feature fusion with the decoding features respectively.
[0096] The skip connection position attention mechanism proposed in this invention is a kind of cross-correlation attention based on encoding features and decoding features, which is used to strengthen the feature transfer and fusion between encoding and decoding. For face image editing tasks, the feature fusion between encoding and decoding features is more important than the optimization of the feature map itself. Figure 4 As shown, the present invention adopts the block matching fusion method to cut the feature map into 3×3 feature blocks, and use these convolution blocks as convolution kernels for convolution and deconvolution calculations to perform feature fusion with the decoding features. For the decoding feature x and the encoding feature y, the calculation method is:
[0097] x'=θ(x)*g(y) (1)
[0098] Among them, θ represents 1×1 convolution; g represents 1×1 convolution, Sigmoid, and feature map splitting; * represents convolution. The output z can be expressed as:
[0099] z=x'*f(y)=θ(x)*g(y)*f(y) (2)
[0100] Among them, f represents 1×1 convolution, Sigmoid, and feature map splitting, and z represents the output.
[0101] Combine the following Figure 6 The skip connection channel attention mechanism provided by an embodiment of the present invention is described.
[0102] Figure 6 A schematic diagram of a skip connection channel attention mechanism provided by an embodiment of the present invention.
[0103] In this embodiment, it should be noted that the guided face image editing method based on jump connection attention may also include: splicing the encoded features and the decoding features of the corresponding size through jump connections through the jump connection channel attention mechanism, using the channel attention mechanism to calculate the correlation between the encoded features and the decoding features of different channels, and based on the correlation, fusing multiple features of different channels, including: performing channel splicing to expand the number of channels to N times, where N is a positive integer; using a 3×3 convolution and global average pooling of a branch to obtain the channel weight, and obtaining the final channel weight through two layers of 1×1 convolution of the channel weight, where the function of the 3×3 convolution is feature extraction and dimensionality reduction, and the two layers of 1×1 convolution are to calculate the relationship between different channel features; and using the 3×3 convolution of another branch to reduce the dimension of the z convolution, multiplying the channel features and the final channel weights correspondingly to obtain the output features, and the number of channels restores the number of channels of the decoding features.
[0104] Specifically, the encoded features of Conv2 and Conv3 are concatenated with the decoded features of Conv5 and Decoder4 of corresponding sizes through skip connections, and the channel attention mechanism is used to achieve feature fusion.
[0105] Specifically, for the decoding feature x and the encoding feature y, channel concatenation is first performed, and the number of channels is doubled. More specifically, the calculation is divided into two branches. One branch calculates the channel weight, and uses 3×3 convolution and global average pooling to obtain the channel weight. The channel weight is then convolved through two layers of 1×1 convolution to obtain the final channel weight. The function of 3×3 convolution is feature extraction and dimensionality reduction. The two layers of 1×1 convolution are to calculate the relationship between different channel features, and the two-layer network can realize the XOR relationship. The other branch uses 3×3 convolution to reduce the dimension of z convolution. Finally, the channel features and channel weights are multiplied correspondingly to obtain the output features, and the number of channels restores the number of channels of the decoding features.
[0106] For the discriminant network layer, as the key to stable training and improving image generation quality, Patch-GAN, WGAN-GP and SNGAN are combined to design the discriminant network from three aspects: network structure, loss function and optimization method.
[0107] Specifically, in terms of network structure, the output of the discriminant network in the original GAN is a single value between 0 and 1, representing the authenticity of the generated image, while the discriminant output of Patch-GAN is a matrix, each element in the matrix maps a local area in the image, and the matrix as a whole maps the entire image. Missing images of different shapes and positions require the discriminant network to evaluate the texture and semantics of the entire image, while the single value in the original discriminant network maps the entire image, which may focus too much on semantic information and ignore the local texture details of the image. Patch-GAN can take into account both semantic information and texture information, is not limited by the shape and position of the missing image, and assists in optimizing the generation network. The present invention adopts the network structure of Patch-GAN, uses 6 layers of convolution, maps a 256×256 image to an 8×8 matrix, and the receptive field of each element in the matrix is 129.
[0108] Specifically, in terms of optimization method, WGAN-GP uses gradient penalty for Lipschitz constraint and cannot strictly follow the Lipschitz constraint condition, while the optimization method of SNGAN can meet the Lipschitz constraint condition, and the convergence speed and convergence effect are better than WGAN-GP. Based on this, the discriminant network of the present invention adopts the optimization method of SNGAN. Assume that the discriminant network parameters are w, w l Represents the parameters of the lth convolution layer of the discriminant network. The specific method of discriminant network optimization is to combine the parameter update of the discriminant network with the maximum singular value of the parameter matrix, and alternately perform spectral normalization of the parameter matrix and the parameter weight w.
[0109] Specifically, in terms of loss function, the original Patch-GAN loss function is a cross-entropy loss function, and the element values in the output matrix are between 0 and 1. The cross-entropy loss function has problems such as unstable training and gradient disappearance. Compared with the cross-entropy loss function, the loss function of WGAN-GP can not only stabilize the training, but also better learn the distribution law of face image data. Based on this, the present invention uses the loss function of WGAN-GP to optimize the discriminant network, and defines the loss function as:
[0110]
[0111] Where M represents a binary mask, simulating the missing domain and the retained domain of the face image. The value of 1 represents the retained domain, and the value of 0 represents the missing domain. gt represents the true value of the face image; ⊙ represents the multiplication of the corresponding elements. (M⊙I gt ) simulates randomly missing face images. G represents the generation network, D represents the discriminant network, G(M⊙I gt ) represents the generated image. N 2 is the number of elements in the Patch-GAN output matrix, where N is 8.
[0112] Specifically, for the number of discriminant network layers l = 1, 2, 3, ... 6, a random vector initialization vector is sampled from an isotropic distribution For each layer parameter w l Perform the following operations: Use the power iteration method to iterate and obtain w l The singular value approximate solution of :
[0113]
[0114]
[0115] Calculate the normalized parameters:
[0116]
[0117]
[0118] With learning rate α, loss function L dis , update the parameter w l :
[0119]
[0120] Furthermore, the loss function is described in more detail below.
[0121] In this embodiment, it should be noted that the guided face image editing method based on jump connection attention can also include: the weighted multi-scale loss function is determined by the following steps: determining the dynamic weight; extracting the image content from the multi-scale feature map of the decoding network layer by convolution; extracting the image edge by the canny algorithm; determining the weighted multi-scale loss function.
[0122] Specifically, in order to make full use of the guidance information, the present invention proposes a weighted multi-scale loss. The loss function contains two parts: edge and color. It can provide a dynamic weight, gradually strengthening the loss weight from the boundary of the missing area to the inside of the missing area. Experiments have shown that giving a higher weight to the missing area is conducive to improving the quality of image generation. We use Figure 2 The convolution shown extracts image content from the multi-scale feature map of the decoding network and uses the Canny algorithm to extract the edges in the image to ensure that the edges and colors of the interactive input play a guiding role.
[0123] More specifically, for an image with a mask of M (the retained area value is 0 and the missing area value is 1), the height and width are (h, w); according to the sampling factor s (s is less than 1 and greater than 0), the mask M with a size of (h×s, w×s) is downsampled using bilinear interpolation. (s) , and binarize it:
[0124]
[0125] Where m i,j Indicates M (s) The pixel value at position (i, j) in the middle, avg(M (s) ) indicates M (s) Then initialize a convolution kernel with each element value of 1 and a size of 2×r+1, and use mirror padding to fill M (s) Expand to (h+2r,w+2r). We let r=h×s÷4.
[0126] M (s) =f ref (M (s) ,r) (10)
[0127]
[0128] where f ref Indicates mirror filling, f conv represents convolution. Finally, we (s) Perform normalization and lower bound constraints:
[0129]
[0130]
[0131] Among them, M norm (s) represents the normalized weight, m ij norm Indicates the value of the element at position (i, j), and the threshold is set to 0.5. The last four layers of the decoding network in the generative network compress the feature map into a three-channel image through a convolution in each layer. The parameters between the four convolutions are not shared, and the canny algorithm is used to extract edge information from images of different scales. The weighted multi-scale loss can be expressed as:
[0132]
[0133] Among them I s Represented by the original image I gt The image obtained by bilinear interpolation downsampling, represents the graph extracted from the feature map by convolution, C s and Respectively represent the canny algorithm from I s and The edge information extracted from .
[0134] In addition, the present invention adopts the reconstruction loss L rec , Perceptual loss Lper , style loss L style , against the loss L gen and L dis , multi-scale reconstruction loss L wm There are six loss functions.
[0135] Specifically, reconstruction loss is the most basic and important loss function in the image reconstruction task, which is the L1 or L2 distance between the image generated content and the image true value. The present invention selects the L1 distance. The reconstruction loss function is defined as:
[0136] L rec =||I gt -G(M⊙I gt )||1 (15)
[0137] Where M represents a binary mask, simulating the missing domain and the retained domain of the face image. The value of 1 represents the retained domain, and the value of 0 represents the missing domain. gt represents the true value of the face image; ⊙ represents the multiplication of the corresponding elements. (M⊙I gt ) simulates randomly missing face images. G represents the generative network, G(M⊙I gt ) represents the generated image.
[0138] Specifically, perceptual loss is used to measure the semantic difference between two images. For example, for a picture, if each pixel is moved one position to the right, to the human eye, these are two almost identical pictures, but the reconstruction loss values of the two are huge. Perceptual loss requires the use of an additional network to obtain semantic features, and the VGG-19 network is used to extract features. Among them, the present invention uses the features after the ReLU activation function of the third, fourth, and fifth layers of VGG-19 as image semantic features, and calculates the L1 distance of these features. Among them, the perceptual loss is defined as:
[0139]
[0140] Where φ represents the trained VGG-19 network, φ i Represents the i-th layer output of the network, I gen Represents the generated image, I gt Indicates a good image.
[0141] Specifically, style loss is similar to perceptual loss, and also uses VGG-19 to extract semantic features; the difference is that style loss calculates the Gram Matrix for the extracted features. The Gram Matrix focuses on the correlation between features, such as which features appear at the same time and which features are mutually exclusive. Style loss helps to improve the checkerboard effect of the reconstructed image, where the style loss is defined as:
[0142]
[0143] in It means that the Gram matrix is calculated using the i-th layer output of the φ(VGG-19) network.
[0144] Specifically, the adversarial loss is derived from the generative adversarial network and is divided into the generative network loss function and the discriminative network loss function. For the discriminative network, the discriminative loss function is shown in formula (3); and for the generative network, the generative loss function is defined as:
[0145]
[0146] Among them, N 2 is the number of elements in the Patch-GAN output matrix.
[0147] In this embodiment, it should be noted that the guided face image editing method based on skip connection attention may also include: the loss function L G for:
[0148] L G =λ rec L rec +λ gen L gen +λ per L per +λ style L style +λ wm L wm
[0149] Among them, L rec is the reconstruction loss function, L per is the perceptual loss function, L style is the style loss function, L gen is the adversarial loss function, L wm is the multi-scale reconstruction loss function, λ rec is the corresponding weight of the reconstruction loss function, λ gen is the corresponding weight of the adversarial loss function, λ per The corresponding weight of the perceptual loss function, λ style is the corresponding weight of the style loss function, λ wm is the corresponding weight of the multi-scale reconstruction loss function.
[0150] Specifically, for the generative network, its total loss L G for:
[0151] L G =λ rec L rec +λ gen L gen +λper L per +λ style L style +λ wm L wm (19)
[0152] In this embodiment, it should be noted that the guided face image editing method based on skip connection attention may also include:
[0153] Among them, λ rec ,λ gen ,λ per ,λ style ,λ wm They represent the weights of the corresponding losses.
[0154] In this embodiment, it should be noted that the guided face image editing method based on skip connection attention may also include: the loss function L G for:
[0155] L D =λ dis L dis
[0156] Among them, L dis is the discriminant network loss function, λ dis is the corresponding weight of the discriminant network loss function.
[0157] Specifically, for the discriminant network, its total loss L D for:
[0158] L D =λ dis L dis (20)
[0159] where λ dis Represents the weight of the discriminant network loss function.
[0160] In this embodiment, it should be noted that the guided face image editing method based on skip connection attention may also include: the guided face image editing model based on skip connection attention is obtained by randomly extracting guiding conditions in terms of edge and color from the sample face image, and conducting guided face image editing training from the two aspects of edge and color in an adversarial manner, including: selecting the true value of the image; generating a random mask; randomly generating edge guiding conditions; randomly generating color guiding conditions; fixing the generation network layer, inputting the random mask, edge guiding conditions, and color guiding conditions into the generation network layer to obtain the edited face image, and based on the loss function L D Optimize the discriminative network layer.
[0161] The following is combined with Table 3 to further illustrate the training process of the guided face image editing model based on skip connection attention.
[0162] During the training process, the input of the generative network is the guide map, and the output is the generated image; the discriminative network evaluates the generated image, and the generative network and the discriminative network are alternately optimized through adversarial training. After the training is completed, the trained generative network can realize guided image editing.
[0163] Specifically, the guided face image editing model based on skip-connected attention in the present invention is an interactive model, which requires a large number of images containing prior information such as color and edge lines for training. The present invention uses the Canny algorithm to extract edge lines from the original face image as edge line guiding conditions, wherein the color information acquisition method is divided into the following steps: ① First, randomly select several positions in the image ② At each position, a circular area is defined with a random length r as the radius ③ Calculate the average color in each circular area, and use this value as the color guiding condition.
[0164] More specifically, as shown in Table 3, the guided face image editing model based on skip-connected attention is trained by the following steps:
[0165]
[0166]
[0167] Table 3
[0168] Where m=6, the algorithm in this chapter is iterated and optimized 2e+6 times. The present invention adds a certain amount of randomness in the process of obtaining edge line and color guiding conditions, which improves the adaptability of the model to different guiding conditions.
[0169] Furthermore, in order to demonstrate the effectiveness of the guided face image editing method based on skip-connected attention proposed in the present invention, the editing results under different guided conditions are described below.
[0170] For example, face image editing with different effects can be performed under the following guiding conditions: (1) adding different edge conditions; (2) adding different color conditions under the same edge condition; (3) adding different edge and color conditions.
[0171] For (1), the image editing area reaches 25%, and the eyes and hair are changed at the same time, achieving good results. The present invention also edits the glasses and eyebrows in a small local area and changes the shape of the eyes and eyebrows. For (2), the present invention changes the hair style of a small area through the edge line, and generates hair of different colors through color guidance. The editing area reaches 50% of the image, and sunglasses are generated using edge line guidance, and the color of the sunglasses is fine-tuned. For (3), the present invention simultaneously edits the glasses, eyebrows, and hair under different edge line and color conditions, and fine-tunes the hair color, and guides the editing of the mouth shape and color. Regardless of the size and shape of the editing area, the present invention can complete effective editing under the guidance of edge lines and colors.
[0172] In summary, the guided face image editing method based on skip-connected attention of the present invention can perform guided editing on editing areas of any size and shape in face images.
[0173] Based on the same inventive concept, on the other hand, an embodiment of the present invention proposes a guided face image editing system based on skip connection attention.
[0174] Combine the following Figure 7 The guided face image editing system based on skip connection attention provided by the present invention is described. The guided face image editing system based on skip connection attention described below and the guided face image editing method based on skip connection attention described above can be referenced to each other.
[0175] Figure 7 A schematic diagram of the structure of a guided face image editing system based on skip-connected attention provided by an embodiment of the present invention.
[0176] In this embodiment, it should be noted that the guided face image editing system 1 based on skip connection attention includes: a face image acquisition module 10, used to acquire a face image to be edited and a guidance map; a face image editing module 20, used to input the face image to be edited and the guidance map into a trained guided face image editing model based on skip connection attention, and obtain an edited face image output by the guided face image editing model based on skip connection attention, wherein the guided face image editing model based on skip connection attention is obtained by randomly extracting guiding conditions in terms of edges and colors from sample face images, and performing guided face image editing training from the two aspects of edges and colors in an adversarial manner, wherein the guided face image editing model based on skip connection attention is used to perform guided editing on the face image to be edited based on at least a weighted multi-scale loss function and a residual upsampling module embedded with a skip connection attention mechanism to obtain an edited face image.
[0177] Since the guided face image editing system based on skip connection attention provided by the embodiment of the present invention can be used to execute the guided face image editing method based on skip connection attention described in the above embodiment, its working principle and beneficial effects are similar, so they will not be described in detail here. For specific contents, please refer to the introduction of the above embodiment.
[0178] In this embodiment, it should be noted that the various modules in the system of the embodiment of the present invention can be integrated into one or deployed separately. The above modules can be combined into one module or further divided into multiple sub-modules.
[0179] The system embodiment described above is merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0180] On the other hand, based on the same inventive concept, another embodiment of the present invention provides an electronic device.
[0181] Figure 8 A schematic diagram of an electronic device provided according to an embodiment of the present invention.
[0182] In this embodiment, it should be noted that the electronic device may include: a processor (processor) 810, a communication interface (Communications Interface) 820, a memory (memory) 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call the logic instructions in the memory 830 to execute the guided face image editing method based on skip connection attention, which includes: obtaining a face image to be edited and a guidance map; inputting the face image to be edited and the guidance map into a trained guided face image editing model based on skip connection attention to obtain an edited face image output by the guided face image editing model based on skip connection attention, wherein the guided face image editing model based on skip connection attention is obtained by randomly extracting guiding conditions in terms of edges and colors from sample face images, and performing guided face image editing training from the two aspects of edges and colors in an adversarial manner, wherein the guided face image editing model based on skip connection attention is used to perform guided editing on the face image to be edited based on at least a weighted multi-scale loss function and a residual upsampling module embedded with a skip connection attention mechanism to obtain an edited face image.
[0183] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0184] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform a guided face image editing method based on skip connection attention, the method comprising: obtaining a face image to be edited and a guidance map; inputting the face image to be edited and the guidance map into a trained guided face image editing model based on skip connection attention, to obtain an edited face image output by the guided face image editing model based on skip connection attention, wherein the guided face image editing model based on skip connection attention is obtained by randomly extracting guiding conditions in terms of edges and colors from sample face images, and performing guided face image editing training from both edges and colors in an adversarial manner, wherein the guided face image editing model based on skip connection attention is used to perform guided editing on the face image to be edited to obtain an edited face image based on at least a weighted multi-scale loss function and a residual upsampling module embedded with a skip connection attention mechanism.
[0185] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0186] In addition, in the present invention, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0187] In addition, in the present invention, the description with reference to the terms "embodiment", "present embodiment", "another embodiment", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0188] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A guided face image editing method based on skip connection attention, characterized in that: include: Obtain the face image to be edited and the guide map; Inputting the face image to be edited and the guide map into a trained guided face image editing model based on skip connection attention to obtain an edited face image output by the guided face image editing model based on skip connection attention, wherein the guided face image editing model based on skip connection attention is obtained by randomly extracting guiding conditions in terms of edge lines and colors from sample face images, and conducting guided face image editing training from the two aspects of edge lines and colors in an adversarial manner; Among them, the guided face image editing model based on jump connection attention is used to perform guided editing on the face image to be edited to obtain the edited face image based at least on a weighted multi-scale loss function and a residual upsampling module embedded with a jump connection attention mechanism.
2. The guided face image editing method based on skip connection attention according to claim 1 is characterized in that: The skip-connected attention-based guided face image editing model includes a generative network layer and a discriminative network layer; The generating network layer includes an encoding network layer and a decoding network layer, and the generating network layer is used to fuse the encoding features of different positions and / or different channels based on the cross-correlation attention of the encoding features and the decoding features by the residual upsampling module embedded in the skip connection attention mechanism, and transfer the encoding features from the encoding network to the decoding network, and is used to perform guided editing on the face image to be edited from the two aspects of edge and color based on the weighted multi-scale loss function to obtain the edited face image; The discriminant network layer is used to discriminate the authenticity of the edited face image output by the generative network layer.
3. The guided face image editing method based on skip connection attention according to claim 2 is characterized in that: The guided face image editing model based on skip connection attention is obtained by randomly extracting guiding conditions in terms of edge and color from sample face images, and conducting guided face image editing training from the two aspects of edge and color in an adversarial manner, including: Select the true value of the image; Generate a random mask; Randomly generate edge guidance conditions; Randomly generate color-guided conditions; Fix the generative network layer, input the random mask, the edge guide condition, and the color guide condition to the generative network layer to obtain an edited face image, and based on the loss function L D Optimizing the discriminative network layer; and Fix the discriminant network layer and based on the loss function L G The generated network layer is optimized.
4. The guided face image editing method based on skip connection attention according to claim 2 is characterized in that: The weighted multi-scale loss function is determined by the following steps: Determine dynamic weights; Extracting image content from the multi-scale feature map of the decoding network layer using convolution; Use the canny algorithm to extract image edges; The weighted multi-scale loss function is determined.
5. The guided face image editing method based on skip connection attention according to claim 2 is characterized in that: The residual upsampling module based on the embedded skip connection attention mechanism fuses the encoding features of different positions and / or different channels based on the cross-correlation attention of the encoding features and the decoding features, and transfers them from the encoding network to the decoding network, including: By using a skip connection position attention mechanism, the features of the Nth layer of the encoding network layer in the generating network layer are respectively introduced into the Mth layer of the decoding network layer through skip connections, the correlation between the encoding features and the decoding features at different positions is calculated by using the attention mechanism, and multiple features at different positions are fused based on the correlation, wherein the values of N and M are different; and Through the jump connection channel attention mechanism, the encoding features and the decoding features of the corresponding size are spliced through jump connections respectively. The channel attention mechanism is used to calculate the correlation between the encoding features and decoding features of different channels. Based on the correlation, multiple features of different channels are fused.
6. The guided face image editing method based on skip connection attention according to claim 5 is characterized in that: The skip connection position attention mechanism is used to introduce the features of the Nth layer of the encoding network layer in the generating network layer into the Mth layer of the decoding network layer through skip connections, and the attention mechanism is used to calculate the correlation between the encoding features and the decoding features at different positions, and multiple features at different positions are fused based on the correlation, wherein the values of N and M are different, including: The block matching fusion method is adopted to crop the feature maps into 3×3 feature blocks, and the convolution blocks are used as convolution kernels for convolution and deconvolution calculations to perform feature fusion with the decoded features respectively.
7. The guided face image editing method based on skip connection attention according to claim 5, characterized in that: The skip connection channel attention mechanism is used to splice the encoding features and the decoding features of the corresponding size through skip connections, and the channel attention mechanism is used to calculate the correlation between the encoding features and the decoding features of different channels. Based on the correlation, multiple features of different channels are fused, including: Perform channel splicing to expand the number of channels to N times, where N is a positive integer; The channel weights are obtained by using a 3×3 convolution and global average pooling of a branch, and the channel weights are subjected to two layers of 1×1 convolution to obtain the final channel weights, wherein the 3×3 convolution is used for feature extraction and dimensionality reduction, and the two layers of 1×1 convolution are used to calculate the relationship between different channel features; and The z convolution is reduced in dimension using the 3×3 convolution of another branch, and the channel features and the final channel weights are correspondingly multiplied to obtain the output features, and the number of channels is restored to the number of channels of the decoded features.
8. The guided face image editing method based on skip connection attention according to claim 3 is characterized in that: The loss function L G for: L G =λ rec L rec +λ gen L gen +λ per L per +λ style L style +λ wm L wm Among them, L rec is the reconstruction loss function, L per is the perceptual loss function, L style is the style loss function, L gen is the adversarial loss function, L wm is the multi-scale reconstruction loss function, λ rec is the corresponding weight of the reconstruction loss function, λ gen is the corresponding weight of the adversarial loss function, λ per The corresponding weight of the perceptual loss function, λ style is the corresponding weight of the style loss function, λ wm is the corresponding weight of the multi-scale reconstruction loss function.
9. The guided face image editing method based on skip connection attention according to claim 8, characterized in that: The loss function L D for: L D =λ dis L dis Among them, L dis is the discriminant network loss function, λ dis is the corresponding weight of the discriminant network loss function.
10. A guided face image editing system based on skip connection attention, characterized in that: include: A face image acquisition module, used to acquire the face image to be edited and the guide map; as well as A face image editing module is used to input the face image to be edited and the guide map into a trained guided face image editing model based on skip connection attention to obtain an edited face image output by the guided face image editing model based on skip connection attention, wherein the guided face image editing model based on skip connection attention is obtained by randomly extracting guiding conditions in terms of edges and colors from sample face images, and performing guided face image editing training from the two aspects of edges and colors in an adversarial manner, wherein the guided face image editing model based on skip connection attention is used to perform guided editing on the face image to be edited to obtain the edited face image based on at least a weighted multi-scale loss function and a residual upsampling module embedded with a skip connection attention mechanism.
Citation Information
Patent Citations
Face image super-resolution restoration and reconstruction method and system based on generative adversarial network
CN113723174A
