Method for constructing print style migration model

Through HFFS-GAN generation adversarial network, combined with multi-head attention mechanism and high-frequency suppression algorithm, the problem of semantic confusion and unreasonable black areas in print style transfer is solved, high-quality print style transfer is achieved, and the application of the model is improved. Sex and flexibility.

CN118967431APending Publication Date: 2024-11-15NORTHWEST UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411053966.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing print style transfer technology has the problem of semantic style confusion and unreasonable black areas, and requires a large amount of manual annotation and complicated data preprocessing, making it difficult to effectively inherit and popularize the unique artistic characteristics of Chinese prints.

Method used

The adversarial network is generated by HFFS-GAN, and the frequency domain and spatial domain features are extracted through the encoder. The adaptive feature fusion network uses the multi-head attention mechanism for efficient fusion, and the model is trained through the high-frequency suppression algorithm and the PatchGAN discriminator to generate high-quality Print style images that reduce semantic confusion and improve model applicability.

Benefits of technology

Without manual annotation and text information guidance, a variety of print style images are generated, which improves the applicability and flexibility of the print style transfer model, ensures the quality of the generated image and the loyalty to the original content, and conforms to the artistic characteristics of the print.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118967431A_ABST
    Figure CN118967431A_ABST
Patent Text Reader

Abstract

The invention discloses a print style migration model construction method, which comprises the following steps that a print style migration model is established, the print style migration model is an HFFS-GAN generative adversarial network, the HFFS-GAN generative adversarial network is provided with a generator and a discriminator, and the generator is provided with an encoder, an adaptive feature fusion network and a decoder; the encoder is used for extracting spatial domain features of an input image, acquiring frequency domain features through the high-frequency feature suppression module and processing the frequency domain features; the adaptive feature fusion network efficiently fuses the frequency domain features and the spatial domain features extracted by the encoder by using a multi-head attention mechanism to obtain a fused image, and feeds the fused image into the decoder to generate a print style image; and the discriminator is used for training the print style migration model through the loss function, so that the quality of the generated print style image and the loyalty of the original image content are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer vision and relates to a method for constructing a printmaking style transfer model. Background Art

[0002] At present, the production process of traditional printmaking is complicated and requires extremely high skills, which to a certain extent restricts its popularization and inheritance. However, with the rise of deep learning and the substantial improvement of GPU computing performance, image style transfer algorithms have developed rapidly. Among them, neural network image style transfer technology is a technology that uses deep learning models to transfer the style features of one image to another image. By studying the style transfer technology of prints, the artistic style of prints can be protected and inherited. However, due to the unique artistic characteristics of Chinese prints such as the black retention mechanism and the engraved texture, the model can extract relatively little image feature information, so the existing style transfer of prints has the following defects:

[0003] 1) The composition of print images is ingenious, which leads to the uncertainty of the semantic style of the characters and scenes in the prints. The complex semantic style will cause the semantic style confusion problem in the style transfer image of the prints. The existing print style transfer algorithm needs a lot of semantic segmentation assistance or text information guidance to solve the above problems. Such methods require manual annotation and tedious data preprocessing, which is very time-consuming and labor-intensive.

[0004] 2) Print images will use the black-leaving technique to perform special processing on shapes with different symbolic meanings. For example, in addition to the facial features, other areas of the face usually need to be left blank to highlight the simple and rustic style of the print. However, due to the light and shadow problems of the camera in natural images, there is a lot of facial details, which will lead to unreasonable black areas in the style transfer images of prints. At the same time, due to the rarity of prints, it is difficult to obtain a large number of data sets for training, resulting in the model not fully learning the characteristics of prints, causing the problem of semantic confusion in the generated images. Summary of the invention

[0005] In view of this, an object of the present invention is to provide a method for constructing a print style transfer model to solve the technical problems mentioned in the prior art.

[0006] A method for constructing a print style transfer model includes the following steps:

[0007] Establish a printmaking style transfer model;

[0008] The print style transfer model is a HFFS-GAN generative adversarial network, and the HFFS-GAN generative adversarial network has a generator and a discriminator, wherein;

[0009] The generator has an encoder, an adaptive feature fusion network and a decoder;

[0010] The encoder is used to extract frequency domain features and spatial domain features of an input image;

[0011] The adaptive feature fusion network uses a multi-head attention mechanism to efficiently fuse the frequency domain features and spatial domain features extracted by the encoder to obtain a fused image and feed it into the decoder to generate a printmaking style image;

[0012] The discriminator is used to train the print style transfer model through a loss function to improve the quality of the generated print style image and the fidelity to the original image content.

[0013] Optionally, a style image dataset of black and white prints is established as P y Domain training set;

[0014] Get part of the CelebAMask-HQ input image dataset as P x Domain training set;

[0015] Through the P x domain training set and the P y The print style transfer model is trained using a domain training set.

[0016] Optionally, the encoder extracts frequency domain features and spatial domain features of the input image by:

[0017] The encoder uses the VGG pre-trained network as a feature extractor to extract the spatial domain features x1 of the input image;

[0018] Feed the spatial domain feature x1 into the high-frequency feature suppression network, and map the spatial domain feature x1 from the spatial domain to the frequency domain through the inverse transform of the discrete cosine algorithm to obtain the frequency domain feature;

[0019] Constructing a frequency domain decomposition network through octave convolution, and decomposing the frequency domain features into high-frequency features and low-frequency features through the frequency domain decomposition network;

[0020] The high-frequency features decomposed are suppressed by a high-frequency suppression algorithm module, while retaining the low-frequency features;

[0021] The suppressed high-frequency feature and the low-frequency feature are concatenated to obtain the frequency domain feature f.

[0022] Optionally, the method in which the high-frequency suppression algorithm module suppresses the decomposed high-frequency features is:

[0023] Setting the suppression frequency threshold r of the high frequency suppression algorithm module;

[0024] The high-frequency features in the frequency domain features that are greater than the frequency threshold r are filtered, and the low-frequency contour features in the frequency domain features are retained.

[0025] Optionally, the encoder uses a pre-trained VGG19 network as a feature extractor.

[0026] Optionally, the method in which the adaptive feature fusion network uses a multi-head attention mechanism to efficiently fuse the frequency features and spatial domain features extracted by the encoder is:

[0027] The frequency domain feature f is converted back to the spatial domain feature x by the inverse transform of the discrete cosinuosation algorithm f ;

[0028] The spatial domain feature x f and the spatial domain feature x1 are fed into the adaptive feature fusion network respectively, and the spatial domain feature x1 and the spatial domain feature x f The multi-head attention mechanism is applied respectively, and then the spatial domain feature x1 and the spatial domain feature x are captured by the multi-head attention mechanism. f The long-distance dependency relationship between them is used to adaptively fuse the information of the spatial domain feature x1 and the frequency domain feature f to obtain a fused image.

[0029] Optionally, the discriminator is PatchGAN.

[0030] Optionally, a residual network is embedded into the discriminator so that the discriminator learns additional information other than attention weights to enrich feature representation.

[0031] Optionally, the discriminator trains the printmaking style image through a self-enhanced reconstruction loss function and an adversarial loss function.

[0032] Optionally, the method for training the print style transfer model using the self-enhanced reconstruction loss function is:

[0033] The print style image generated by the decoder and the P y The domain training set is sorted to form a plurality of continuous printmaking style images y, and a random spatial transformation = (·) is applied to each of the printmaking style images y to obtain a transformed image y1 = (y);

[0034] The transformed image y1 is input into the generator, and the generator outputs the transfer result

[0035] The discriminator continuously calculates the mean absolute error loss of the plurality of print style images y before and after transformation through the self-enhanced reconstruction loss function, thereby repeatedly training the print style transfer model to reduce the semantic confusion of the generated image. The self-enhanced reconstruction loss function is:

[0036]

[0037] Among them, y represents the print style image, Represents a black and white woodblock print image generated by combining the content and style of a woodblock style image. Contains the same content and style information as y, where the style information is extracted from the transformed image y1.

[0038] The beneficial effects that the present invention can produce include:

[0039] 1) The method for constructing a print style transfer model provided by the present invention can convert any input image into a print style image without relying on manual annotation or text information guidance; and by expanding the style image dataset by rotation, mirroring, etc., the print style transfer model can be effectively trained to generate a variety of print style images. In addition, it can also process unpaired dataset samples, that is, the print style image generated by the decoder and the P y There is no direct correspondence between domain training sets, which effectively improves the applicability and flexibility of the print style transfer model.

[0040] 2) A method for constructing a print style transfer model provided by the present invention, the encoder separates the frequency domain features of the image through a high-frequency feature suppression network, and suppresses redundant high-frequency detail features, so that the print style transfer model focuses more on low-frequency contour features, which is more in line with the artistic characteristics of prints with large areas of black and local white; and the discriminator uses PatchGAN to more accurately evaluate the authenticity of the image. By dividing the image into blocks, it can focus on the local details of the image, which helps the generator learn more refined image features, thereby improving the quality of the generated image.

[0041] 3) The method for constructing a print style transfer model provided by the present invention aligns frequency domain features and spatial domain features through an adaptive feature fusion network, so that the multi-head attention mechanism allows the adaptive feature fusion network to learn the interaction between features in different feature dimensions, which helps the adaptive feature fusion network to adaptively retain useful information when fusing features, while suppressing unnecessary interference. And by embedding a residual network, the residual block of the residual network can help alleviate the information bottleneck problem caused by the attention operation and improve the fluidity and expression ability of the features.

[0042] 4) The method for constructing a print style transfer model provided by the present invention adopts a self-enhanced reconstruction loss function to further enhance the robustness of different object images, especially different facial features of human faces, which helps the print style to better convey spatial information. The randomly transformed style image established based on the print content information not only enhances the model's learning of the diversity of print styles, but also promotes the semantic consistency between prints and natural images. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of a process for constructing a print style transfer model of the present invention;

[0044] Figure 2 It is a schematic diagram of the entire network framework of the present invention. DETAILED DESCRIPTION

[0045] The present invention is described in detail below with reference to the accompanying drawings and embodiments, but the present invention is not limited to these embodiments.

[0046] like Figure 1 and Figure 2 As shown, the present invention provides a method for constructing a print style transfer model, comprising the following steps: establishing a style image dataset of black and white prints as P y Domain training set; obtain part of the CelebAMask-HQ input image dataset as P x domain training set, where CelebAMask-HQ is a large-scale face image dataset containing 30,000 high-resolution face images selected from the CelebA dataset. CelebA-HQ is used to establish a print style transfer model and x Domain training set and P y The print style transfer model is trained with the domain training set. The print style transfer model is the HFFS-GAN generative adversarial network. The HFFS-GAN generative adversarial network has a generator and a discriminator, wherein the generator has an encoder, an adaptive feature fusion network and a decoder; the encoder is used to extract the frequency domain features and spatial domain features of the input image; the adaptive feature fusion network uses a multi-head attention mechanism to efficiently fuse the frequency domain features and spatial domain features extracted by the encoder, obtain the fused image and feed it into the decoder to generate a print style image; the discriminator is used to train the print style transfer model through a loss function to improve the quality of the generated print style image and its fidelity to the original image content. It processes the unpaired dataset samples, that is, the print style image generated by the decoder and the P y There is no direct correspondence between domain training sets, which effectively improves the applicability and flexibility of the print style transfer model.

[0047] It should be noted that multi-head attention (MHA) is an advanced attention mechanism used for natural language processing in deep learning, such as the Transformer model. It is different from the way CBAM (attention model) processes image features. MHA captures the diverse semantic connections in the input sequence through multiple parallel "heads". Specifically, the input sequence is first mapped to multiple independent "heads" through a linear transformation, and each head then independently calculates the attention weights to reflect the correlation between elements in the sequence. These weights are used to perform a weighted summation of the input sequence to form the output results of each head. Finally, the outputs of all heads are concatenated and fused through another linear projection layer to produce the final output.

[0048] In the above, the style image dataset can be expanded by rotating or mirroring the black and white prints, thereby increasing the data sample size of the style image dataset and providing a large number of datasets for training, so that the print style transfer model can fully learn the characteristics of the prints to reduce the problem of semantic confusion in the generated images.

[0049] In the above, the encoder uses the pre-trained VGG19 network as a feature extractor to extract the spatial domain features x1 of the input image; and feeds the spatial domain features x1 to the high-frequency feature suppression network, and maps the spatial domain features x1 from the spatial domain to the frequency domain through the inverse transform of the discrete cosine algorithm to obtain the frequency domain features; then constructs a frequency domain decomposition network through octave convolution, and decomposes the frequency domain features into high-frequency features and low-frequency features through the frequency domain decomposition network. Among them, it can be seen from the spectrum analysis of the print image and the CelebA image that the irrelevant detail information of the face of the RGB image that affects the generation of the print image belongs to the high-frequency features; then through the high The frequency suppression algorithm module suppresses the decomposed high-frequency features. First, the suppression frequency threshold r of the high-frequency suppression algorithm module is set, and then the high-frequency features greater than the frequency threshold r in the frequency domain features are filtered, and the low-frequency features are retained. The suppressed high-frequency features and low-frequency features are spliced ​​to obtain the frequency domain features f. By suppressing the high-frequency features, the redundant details in the input natural image can be blurred, and the problems of wrong blackening of the face of the print image and semantic confusion can be solved, so that the print style transfer model can focus more on the low-frequency contour features; then the frequency domain feature f is converted back to the spatial domain feature x through the inverse transform of the discrete cosine algorithm f ; Then the spatial domain feature x f and the spatial domain feature x1 are fed into the adaptive feature fusion network respectively, so that the adaptive feature fusion network is the aligned dual-domain feature, and the spatial domain feature x1 and the spatial domain feature x f Apply multi-head attention mechanism respectively, and then capture spatial domain features x1 and spatial domain features x through multi-head attention mechanism fThe long-distance dependency between them is used to adaptively fuse the information of the spatial domain feature x1 and the frequency domain feature f, thereby obtaining a fused image and feeding it into the decoder to generate a printmaking style image. It should be noted that the decoder consists of two upsampling layers, a convolutional layer, and a ReLU activation function, which is responsible for reconstructing the fused feature image into a printmaking style image. Considering the problem of checkerboard effect caused by deconvolution, the nearest neighbor interpolation is used instead of deconvolution as the upsampling layer.

[0050] In the above, the discriminator is PatchGAN, which trains the print style image through the self-enhanced reconstruction loss function and the adversarial loss function. At the same time, a residual network is embedded in the discriminator. The residual block of the residual network introduces jump connections, allowing gradients and information to bypass multiple layers directly. This can maintain the fluidity of information even in deep networks and reduce the risk of gradient disappearance. After the multi-head attention mechanism, the residual block can help alleviate the information bottleneck problem caused by the attention operation, ensure the effective transmission and utilization of features, and enable the discriminator to learn additional information beyond the attention weights to enrich the feature representation. Specifically, the method of training the print style transfer model with the self-enhanced reconstruction loss function is: the generated print style image and PatchGAN are combined. y The domain training set is sorted to form a continuous plurality of print style images y, and a random spatial transformation = (·) is applied to each print style image y to obtain the transformed image y1 = (y); the transformed image y1 is input into the generator, and the generator outputs the transfer result Then the discriminator continuously calculates the mean absolute error loss of multiple print style images y before and after transformation through the self-enhanced reconstruction loss function, so as to repeatedly train the print style transfer model to reduce the semantic confusion of the generated image. The self-enhanced reconstruction loss function is:

[0051]

[0052] Among them, y represents the print style image, Represents a black and white woodblock print image generated by combining the content and style of a woodblock style image. Contains the same content and style information as y, where the style information is extracted from the transformed image y1.

[0053] It should be noted that the discriminator maps the image to an N×N array. The value of this array depends on the local patch of the image and is used to calculate the GAN (adversarial) loss. The quality of the patch can be improved by identifying real or fake data in the local patch. The patch size is equivalent to the receptive field of CNN, so the patch size can be changed by stacking convolutional layers. The discriminator consists of five convolutional layers, and the patch size used for discrimination is 70×70 pixels. Because the scale of the style image affects the size of the strokes and texture, a multi-scale discriminator is used to train the generator. Among them, the multi-scale discriminator contains three discriminators that can discriminate images of different sizes (such as 256×256, 128×128, and 64×64). By calculating the adversarial loss of the multi-scale discriminator, the generator can improve the generation quality of printmaking style images. In short, the local patch analysis of the discriminator helps capture the local texture and details of the image, while the multi-scale discriminator allows the adaptive feature fusion network to evaluate the image at different scales, thereby improving the overall quality of the generated image and ensuring that the generated image maintains a consistent style globally while being faithful to the target style in local details.

[0054] In the above embodiment, 308 prints are selected to establish the original style sample data set B, and the original style sample data set B is pre-processed by screening, cropping, rotating, mirroring, etc., so that all images meet the training requirements and the data sample size is expanded, so that the print style images during training are 2600. At the same time, 2600 CelebA images are selected as the content image data set A, and the print style images and content images are used as training sets to train the print style transfer model to achieve style conversion from domain A to domain B.

[0055] In the above-mentioned embodiments, a key feature of the OctConv operation is its ability to decompose the mixed feature map in its frequency domain while promoting efficient communication between high-frequency and low-frequency components. In the OctConv operation, the spatial resolution of the low-frequency feature map is reduced by one octave, where an octave refers to the spatial dimension divided by a power of 2. For simplicity, in the present invention, a value of 2 is selected. Assume that the input of the OctConv operation is X={X H ,X L}, the output is Y = {Y H ,Y L}, then the forward propagation is defined as:

[0056] Y H =f(X H ; W H→H )+f(upsample(X L ,2);W L→H );

[0057] Y L =f(XL ; W L→L )+f(pool(X H ,2);W H→L );

[0058] Among them, f(X L ; W L→L ) and X H ; W H→H represents a convolution operation with parameter W, pool(X H , 2) indicates the use of a 2×2 kernel size, upsample(X L , 2) represents an average pooling operation with a step size of 2, an upsampling operation using nearest neighbor interpolation, and the best performance can be achieved by using half the number of channels (α=0.5) for each frequency domain.

[0059] In the above embodiment, suppressing high-frequency components helps to reduce the influence of irrelevant high-frequency detail information, so that the generated image is more consistent with the characteristics of blank face in prints, highlighting the rustic style of prints. For example, given an input image, it is converted into the frequency domain through the inverse transform (DCT) of the discrete cosine algorithm, and then the high-frequency components are reduced in the frequency domain through the high-frequency suppression algorithm (HFS). The high-frequency suppression algorithm (HFS) is:

[0060]

[0061] x a,b is the input image, is the frequency, M is the low frequency component;

[0062] Will The following modifications can achieve the effect of suppressing high-frequency features:

[0063]

[0064] Among them, M controls the scaling mode of different frequencies, that is, the high-frequency component M should be close to 0, and the low-frequency component M should be close to 1. The present invention sets M as a window with a radius of r, that is:

[0065]

[0066] This high-frequency suppression algorithm can suppress high-frequency components while maintaining low-frequency components. It can remove the original high-frequency detail information of natural images without losing low-frequency contour information, thereby better realizing print style transfer.

[0067] In the above embodiment, multiple loss functions are used in the discriminator to guide the training of the print style transfer model. The multiple loss functions specifically include: self-enhanced reconstruction loss (Lsrec) function, perceptual loss function and adversarial loss function, and the three loss functions are weighted and combined to form a total loss function for training. The total loss function is shown in the following formula:

[0068]

[0069] Among them, λ adv is the hyperparameter of the adversarial loss, λ srec is the hyperparameter of the self-augmented reconstruction loss, is the adversarial loss, calculated by the k-th discriminant network, is the self-enhancement reconstruction loss. It should be noted that The function makes the synthesized image close to the stylized image, and The function can still accurately reconstruct the original image after forcing the generative network to transfer the style of the input image, thereby improving the quality of the generated image and its fidelity to the content of the original image.

[0070] Repeat the above steps to train all the original samples in the training set, so that the convolution iteration parameters of the print style transfer model converge and become fixed. After the print style transfer model is built, the face image in the test set is input into it to obtain the print style image after the input image is converted by the generator. Through high-frequency feature suppression processing, the print style transfer model can solve the problems of unreasonable black areas and confusing semantic styles in the transfer of print style images.

[0071] The above are only several embodiments of the present invention and are not intended to limit the present invention in any form. Although the present invention is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present invention. Any technician familiar with the profession, without departing from the scope of the technical solution of the present invention, using the above disclosed technical content to make slight changes or modifications are equivalent to equivalent implementation cases and fall within the scope of the technical solution.

Claims

1. A method for constructing a print style transfer model, It is characterized in that The following steps are involved: Establish a printmaking style transfer model; The print style transfer model is a HFFS-GAN generative adversarial network, and the HFFS-GAN generative adversarial network has a generator and a discriminator, wherein; The generator has an encoder, an adaptive feature fusion network and a decoder; The encoder is used to extract frequency domain features and spatial domain features of an input image; The adaptive feature fusion network uses a multi-head attention mechanism to efficiently fuse the frequency domain features and spatial domain features extracted by the encoder to obtain a fused image and feed it into the decoder to generate a printmaking style image; The discriminator is used to train the print style transfer model through a loss function to improve the quality of the generated print style image and the fidelity to the original image content.

2. A method for constructing a print style transfer model according to claim 1, It is characterized in that Establish a black and white print style image dataset as P y Domain training set; Get part of the CelebAMask-HQ input image dataset as P x Domain training set; Through the P x domain training set and the P y The print style transfer model is trained using a domain training set.

3. The method for constructing a print style transfer model according to claim 2, It is characterized in that The method by which the encoder extracts the frequency domain features and spatial domain features of the input image is: The encoder uses the VGG pre-trained network as a feature extractor to extract the spatial domain features x of the input image 1 ; The spatial domain feature x 1 The spatial domain feature x is fed into the high-frequency feature suppression network and the inverse transform of the discrete cosine algorithm is used to transform the spatial domain feature x 1 Map from the spatial domain to the frequency domain to obtain frequency domain features; Constructing a frequency domain decomposition network through octave convolution, and decomposing the frequency domain features into high-frequency features and low-frequency features through the frequency domain decomposition network; The high-frequency features decomposed are suppressed by a high-frequency suppression algorithm module, while retaining the low-frequency features; The suppressed high-frequency feature and the low-frequency feature are concatenated to obtain the frequency domain feature f.

4. The method for constructing a print style transfer model according to claim 3, It is characterized in that The method by which the high-frequency suppression algorithm module suppresses the decomposed high-frequency features is: Setting the suppression frequency threshold r of the high frequency suppression algorithm module; The high-frequency features in the frequency domain features that are greater than the frequency threshold r are filtered, and the low-frequency contour features in the frequency domain features are retained.

5. The method for constructing a print style transfer model according to claim 3, It is characterized in that The encoder uses a pre-trained VGG19 network as a feature extractor.

6. The method for constructing a print style transfer model according to claim 3, It is characterized in that The method in which the adaptive feature fusion network uses a multi-head attention mechanism to efficiently fuse the frequency features and spatial domain features extracted by the encoder is: The frequency domain feature f is converted back to the spatial domain feature x by the inverse transform of the discrete cosinuosation algorithm f ; The spatial domain feature x f With the spatial domain feature x 1 are fed into the adaptive feature fusion network respectively, and the spatial domain feature x 1 and the spatial domain feature x f Apply the multi-head attention mechanism respectively, and then capture the spatial domain features x through the multi-head attention mechanism 1 and the spatial domain feature x f The long-range dependencies between the spatial domain features x 1 The information of the frequency domain feature f is adaptively fused to obtain a fused image.

7. The method for constructing a print style transfer model according to claim 1, It is characterized in that The discriminator is PatchGAN.

8. The method for constructing a print style transfer model according to claim 1, It is characterized in that A residual network is embedded into the discriminator so that the discriminator learns additional information other than the attention weights to enrich the feature representation.

9. The method for constructing a print style transfer model according to claim 2, It is characterized in that The discriminator trains the printmaking style image through a self-enhanced reconstruction loss function and an adversarial loss function.

10. The method for constructing a print style transfer model according to claim 9, It is characterized in that The method for training the print style transfer model using the self-enhanced reconstruction loss function is: The print style image generated by the decoder and the P y The domain training set is sorted to form a plurality of continuous print style images y, and a random spatial transformation = (·) is applied to each of the print style images y to obtain the transformed image y 1 =(y); The transformed image y 1 Input into the generator, the generator outputs the transfer result The discriminator continuously calculates the mean absolute error loss of the plurality of print style images y before and after transformation through the self-enhanced reconstruction loss function, thereby repeatedly training the print style transfer model to reduce the semantic confusion of the generated image. The self-enhanced reconstruction loss function is: Among them, y represents the print style image, Represents a black and white woodblock print image generated by combining the content and style of a woodblock style image. Contains the same content and style information as y, the style information is obtained from the transformed image y 1 Extracted from.

Citation Information

Cited By

  • Double-flow image tampering detection method based on Transform and dynamic fusion

    CN120219809A

  • A dual-stream image tampering detection method based on transformer and dynamic fusion

    CN120219809B