An evaluation method of a clothing style transfer model

By combining content features, global style, local details, feature fusion, and generation time into a comprehensive evaluation method, the challenges of evaluating the image generation effect and usability of clothing style transfer models are solved, and a more accurate evaluation of clothing style transfer models is achieved.

CN117575893BActive Publication Date: 2026-11-27DONGHUA UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311638840.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-04
Publication Date
2026-11-27
Estimated Expiration
2043-12-04

AI Technical Summary

Technical Problem

Existing technologies are insufficient to comprehensively evaluate the image generation effect and ease of use of clothing style transfer models, especially in terms of local detail representation and model usability.

Method used

We use content feature representation, global style representation, local detail representation, feature fusion effect, and image generation time as evaluation factors. We use pre-trained models such as VGG19 network and GPT-4 for image recognition, and combine Markov field and Tanh function for comprehensive evaluation.

Benefits of technology

This approach enables a comprehensive evaluation of clothing style transfer models, accurately reflecting image generation quality and ease of use, thereby improving the accuracy and comprehensiveness of the evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117575893B_ABST
    Figure CN117575893B_ABST
Patent Text Reader

Abstract

The present application relates to a kind of clothing style transfer model evaluation method, clothing style transfer model is non-local style transfer model, with content feature expression, global style expression, local detail expression, feature fusion effect and image generation time as evaluation factor, clothing style transfer model is evaluated.The present application is a kind of clothing style transfer model evaluation method, according to the scene demand of clothing design, from content feature expression, global style expression, local detail expression, feature fusion effect and image generation time five dimensions, clothing style transfer model is comprehensively evaluated, relative traditional machine evaluation index is more accurate, can effectively evaluate the image generation effect and ease of use of clothing style transfer model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of clothing technology and relates to an evaluation method for a clothing style transfer model. Background Technology

[0002] In recent years, style transfer technology has been increasingly applied to the field of fashion design. However, evaluating the image generation effects and ease of use of different fashion style transfer models remains very difficult. While many methods exist for evaluating style transfer effects, most cannot be directly applied to fashion style transfer models and have significant limitations.

[0003] For example, Reference 1 (Research on the Transfer and Application Platform Design of Color Style Features of Fengxiang Woodblock New Year Paintings [D]. Xi'an University of Technology, 2023.) uses the direct volunteer rating method to evaluate the transfer effect from three aspects: overall effect, color control, and simulation expressiveness. However, this evaluation method mainly focuses on the global style expression of the style transfer result, lacking evaluation of local detail expression and model usability. In addition, relying entirely on manual rating requires finding a large number of volunteers for questionnaire surveys, resulting in low evaluation efficiency.

[0004] Reference 2 (Generation of fashionable Dunhuang clothes using generative adversarial networks[J]. Connection Science, 2020:1.) evaluates generated clothing designs using both machine evaluation scores (Inception Score, IS) and human preference scores (HPS), normalizing both scores and summing them to obtain the final score. IS uses a pre-trained classifier (Inception Net-V3) to calculate the class probability distribution of the generated image, measuring the quality and diversity of the generated image by calculating the entropy of the distribution and the KL divergence of the edge distribution. However, using IS to evaluate style transfer results has some limitations. First, IS scoring relies too heavily on the classifier. Since the style-transferred result image incorporates different features from two images, the domain of the generated image and the domain of the classifier are often inconsistent, potentially leading to unreasonable evaluations from IS. Second, IS can only evaluate the sharpness and diversity of the generated image, not the transfer effect of clothing patterns. Therefore, IS is not suitable for evaluating clothing style transfer models.

[0005] References 3 (A Fast Style Transfer Method for Single-Model Multi-Style [J]. Computer Engineering and Applications, 2021, 57(12):201-206.), 4 (Image Style Transfer Based on Generative Adversarial Networks [J]. Journal of Nanjing University of Information Science and Technology (Natural Science Edition): 1-12.), and 5 (Research on Style Transfer Design Method of Chengcheng Embroidery Based on Extension Semantics [J]. Journal of Graphics: 1-9.) use Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity (SSIM) to evaluate the effect of style transfer. PSNR is used to test the ratio of the average energy of the peak signal to the noise, and SSIM is used to compare the similarity of images. However, these methods consider fewer factors and only evaluate the quality of the style transfer result image. They cannot evaluate the expressive effect of the pattern after style transfer, the generation time, or other factors.

[0006] Reference 6 (Evaluate and improve the quality of neural style transfer[J]. Computer Vision and Image Understanding, 2021, 207:103203.DOI:10.1016 / j.cviu.2021.103203.) proposes a three-factor quantitative evaluation standard, namely content authenticity, global effect, and local effect. However, this method considers relatively few factors and cannot evaluate the overall effect and ease of use of the style transfer model. Summary of the Invention

[0007] The purpose of this invention is to solve the above-mentioned problems existing in the prior art and to provide an evaluation method for clothing style transfer models.

[0008] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0009] An evaluation method for a clothing style transfer model, which is a nonlocal style transfer model, is proposed. The evaluation factors include content feature representation, global style representation, local detail representation, feature fusion effect, and image generation time, with each factor having equal weight. The evaluation formula is as follows:

[0010]

[0011] In the formula, y c With y s These are the result diagram, content diagram, and style diagram of the clothing style transfer model, respectively. The overall score for the clothing style transfer model; The score represents the content feature representation of the clothing style transfer model; The score represents the global style expression in the clothing style transfer model; The score for the local detail representation in the clothing style transfer model; The score represents the feature fusion effect of the clothing style transfer model; The score for image generation time in the clothing style transfer model.

[0012] The evaluation method of this invention is applicable to style transfer models with full-image optimization, i.e., non-local style transfer models. The higher the evaluation score, the better the style transfer effect of the model. For local style transfer models, it is necessary to extract the transfer region and then use the method of this invention for evaluation.

[0013] According to a survey of fashion designers, the main factors affecting the practical application of style transfer models currently include the model's image generation effect and the model's ease of use, as detailed in Table 1.

[0014] Table 1 Evaluation factors and considerations for the style transfer model

[0015]

[0016]

[0017] As a preferred technical solution:

[0018] The above describes an evaluation method for a clothing style transfer model. The calculation formula (the formula for measuring the feature fusion effect using semantic tag hit rate) is as follows:

[0019]

[0020] In the formula, The number of identical labels obtained by the image recognition network for the result image and content image of the clothing style transfer model. The number of identical labels obtained by the image recognition network for the result image and style image of the clothing style transfer model; N_lbs(all) is the total number of labels output by the image recognition network; wherein, this invention uses pre-trained large models such as GPT-4 or various image recognition networks for image semantic feature recognition. The content image, style image, and result image are respectively input into the image recognition network, and each image obtains N_lbs(all) image feature labels (N_lbs(all) is an even number greater than or equal to 4). When the style features and content features are well integrated, the labels of the result image should be evenly distributed among the labels of the content image and style image.

[0021] The above describes an evaluation method for a clothing style transfer model. The calculation formula is:

[0022]

[0023] In the formula, This represents the generation time of the result image from the clothing style transfer model.

[0024] The above describes an evaluation method for a clothing style transfer model. The calculation formula is:

[0025]

[0026] In the formula, the VGG19 network is used to extract content features, F [l] (·) represents the feature map of the input image in the l-th layer of the VGG19 network; N_c is the number of network layers used for content feature extraction.

[0027] The above describes an evaluation method for a clothing style transfer model. The calculation formula is:

[0028]

[0029] in:

[0030]

[0031]

[0032] In the formula, The global color score for the result image of the clothing style transfer model; The global texture score of the clothing style transfer model result image; H c (·) represents the color histogram of the input image; c represents the color channels of the input image, with three layers in total in the RGB image; the Gram matrix is ​​extracted using the VGG19 network, G [l] (·) represents the Gram matrix composed of the feature maps of the input image in the l-th layer of the VGG19 network; N_g is the number of network layers used to extract the Gram matrix.

[0033] The above describes an evaluation method for a clothing style transfer model. The calculation formula is:

[0034]

[0035] in:

[0036]

[0037]

[0038] In the formula, The similarity score of style blocks is used to match the style map with the result map of the clothing style transfer model. P represents the utilization score of style blocks in the style diagram. k (·) represents the k-th style patch extracted from the input feature map; P s (·) represents all style blocks extracted from the input feature map; P MRF(k) (·) represents P k (·) represents the style block corresponding to the matching using the Markov field; Num(·) represents the number of input style blocks; N_m represents the number of network layers used for Markov field style feature extraction; and N_p represents the number of style blocks segmented into the result map of the clothing style transfer model.

[0039] Beneficial effects:

[0040] (1) The evaluation method of the clothing style transfer model of the present invention is based on the needs of clothing design scenarios. It comprehensively evaluates the effect of style transfer from five dimensions: content feature expression, global style expression, local detail expression, feature fusion effect and image generation time. It is more accurate than traditional machine evaluation indicators and can effectively evaluate the image generation effect and ease of use of clothing style transfer model.

[0041] (2) The evaluation method of the clothing style transfer model of the present invention not only takes into account the balance between content features and style features, but also the balance between global and local style features, model usability and other special needs of clothing style transfer.

[0042] (3) An evaluation method for a clothing style transfer model of the present invention uses an image recognition network to perform semantic recognition auxiliary feature judgment, and calculates the fusion effect of content features and style features by calculating the label hit rate, thereby being able to evaluate the image generation task of the style transfer model from the semantic level.

[0043] (4) The evaluation method of the clothing style transfer model of the present invention uses the Tanh function of remapping to obtain the score of the image generation time of the clothing style transfer model when evaluating the model usability, so as to more effectively evaluate the usability of different categories of clothing style transfer models. Attached Figure Description

[0044] Figure 1 Flowchart of the evaluation method for clothing style transfer model;

[0045] Figure 2 A diagram illustrating an evaluation method for expressing local details;

[0046] Figure 3 The graph of the function Tanh;

[0047] Figure 4The generated results are for six style transfer models. Detailed Implementation

[0048] The present invention will be further described below with reference to specific embodiments. It should be understood that these embodiments are for illustrative purposes only and are not intended to limit the scope of the invention. Furthermore, it should be understood that after reading the teachings of this invention, those skilled in the art can make various alterations or modifications to the invention, and these equivalent forms also fall within the scope defined by the appended claims.

[0049] An evaluation method for a clothing style transfer model, wherein the clothing style transfer model is a nonlocal style transfer model, such as... Figure 1 As shown, the specific steps are as follows:

[0050] (1) Evaluation Factor 1: Content Feature Expression;

[0051] The clothing style transfer model needs to maintain the basic shape and structural position of the content image; the cosine similarity measure is independent of the feature dimension and the number of feature values, and can better measure the difference between the content image and the result image; by calculating the multi-scale content feature similarity through the VGG19 network to form content fidelity, it can comprehensively describe the degree to which the result image restores the content features. The calculation formula is as follows:

[0052]

[0053] In the formula, y c These are the result image and content image of the clothing style transfer model, respectively. The score represents the content feature representation of the clothing style transfer model; the VGG19 network is used to extract content features, F [l] (·) represents the feature map of the input image in the l-th layer of the VGG19 network; N_c is the number of network layers used for content feature extraction.

[0054] (2) Evaluation Factor Two: Global Style Expression;

[0055] In clothing style transfer, global style is the first image feature to be perceived, and global style is divided into two dimensions: color and texture.

[0056] The global color is compared in the RGB color space, and the similarity between the color histograms of the resulting image and the style image is compared. The average difference of the color histograms of each channel is used as the score of the global color in the clothing style transfer model result image, and the formula is as follows:

[0057]

[0058] The Gram matrix can effectively represent the global texture features of the resulting image. After extracting the Gram matrix using the VGG19 network, the global texture score is calculated using the following formula:

[0059]

[0060] The average of the global color and global texture is used as the score for global style representation, and the formula is as follows:

[0061]

[0062] In the formula, y s A style diagram for a clothing style transfer model; The score represents the global style expression in the clothing style transfer model; The global color score for the result image of the clothing style transfer model; The global texture score of the clothing style transfer model result image; H c (·) represents the color histogram of the input image; c represents the color channels of the input image, with three layers in total in the RGB image; the Gram matrix is ​​extracted using the VGG19 network, G [l] (·) represents the Gram matrix composed of the feature maps of the input image in the l-th layer of the VGG19 network; N_g is the number of network layers used to extract the Gram matrix;

[0063] (3) Evaluation Factor Three: Local Detail Expression;

[0064] The local effect consists of two parts: the first part evaluates the similarity between the style transfer model result map and the style blocks matched in the style map; the second part evaluates the utilization rate of the style blocks in the style map. Figure 2 As shown, the style blocks in the result image do not correspond one-to-one with the style blocks in the style map, and multiple style blocks may have the same matching result. This will result in a single style generation in the result image. Therefore, in order to cover more style features in the style map, it is not only necessary to calculate the similarity of the matching style blocks, but also to evaluate the distribution of style blocks, i.e., the utilization rate.

[0065] (3.1) The formula for calculating the style blocks extracted from the style map retrieved using the Markov field is as follows:

[0066]

[0067] In the formula, The similarity score of style blocks matched between the result image of the clothing style transfer model and the style image; P k (·) represents the k-th style patch extracted from the input feature map; P MRF(k) (·) represents P k(·) The style block corresponding to the matching using Markov field; N_m is the number of network layers used for Markov field style feature extraction; N_p is the number of style blocks segmented into the clothing style transfer model result map;

[0068] (3.2) The proportion of matched style blocks in the style map to the total number of style blocks in the style map, i.e., the utilization score of style blocks in the style map. The calculation formula is as follows:

[0069]

[0070] In the formula, P represents the utilization score of style blocks in the style diagram. s (·) represents all style blocks extracted from the input feature map; Num(·) represents the number of input style blocks;

[0071] (3.3) The average of the scores in (3.1) and (3.2) is taken as the score for the local detail expression in the clothing style transfer model. The calculation formula is as follows:

[0072]

[0073] (4) Evaluation Factor Four: Feature Fusion Effect;

[0074] Style transfer requires a balanced representation of the content features of the content image and the style features of the style image; therefore, it is necessary to determine the fusion effect of content features and style features. This invention utilizes GPT-4 (a pre-trained large model) for image semantic feature recognition. The content image, style image, and result image are input into the recognition network, respectively, and each image yields N_lbs(all) image feature labels (N_lbs(all) is an even number greater than or equal to 4). When the style features and content features are well fused, the labels of the result image should be evenly distributed among the labels of the content image and the style image. Therefore, the formula for determining the feature fusion effect using the semantic label hit rate is:

[0075]

[0076] In the formula, The score represents the feature fusion effect of the clothing style transfer model; The number of identical labels obtained by the image recognition network for the result image and content image of the clothing style transfer model. N_lbs(all) represents the number of identical labels obtained by the image recognition network from the result image of the clothing style transfer model and the style image; N_lbs(all) represents the total number of labels output by the image recognition network.

[0077] (5) Evaluation Factor Five: Image Generation Time;

[0078] Style transfer models based on model optimization require significant training time, and image generation time is far longer than that of style transfer models based on image optimization. When using linear evaluation criteria, the large input range makes it difficult to reasonably evaluate methods with shorter image generation times. Therefore, a suitable function is needed to remap the image generation time before evaluation. Initially, the function behaves similarly to linear methods, but its variation decreases after exceeding a certain threshold.

[0079] To achieve the aforementioned effects, the Tanh function is adjusted based on the image generation time of different style transfer methods. The standard Tanh function graph is shown below. Figure 3 As shown, when the input value of the horizontal axis is greater than 2.5, the function value of the vertical axis gradually tends to 1, with a small degree of change. Statistical analysis shows that the average generation time of the result images for various clothing style transfer models is 8740 seconds. Using this as a threshold, the independent variable of the Tanh function becomes after remapping. Right now Using the Tanh function minus the remapping, the shorter the time, the higher the factor score of the image generation time, as shown in the formula below:

[0080]

[0081] In the formula, The score for image generation time in the clothing style transfer model; The generation time of the result image of the clothing style transfer model;

[0082] (6) Evaluate the clothing style transfer model using the five evaluation factors from steps (1) to (5), and calculate the comprehensive score of the style transfer model. The calculation formula is as follows:

[0083]

[0084] Style transfer was performed on the same content image using three style maps and six different style transfer models. The six models included Fast Neural Style Transfer Model (FastNST), LapStyle Style Transfer Model, Convolutional Markov Field Style Transfer Model (CNNMRF), Classical Neural Style Transfer Model (NST), Diffusion Style Transfer Model (SD), and Fast Style Transfer Model for Clothing (FST). Each style transfer model yielded three result images, such as... Figure 4 As shown, the average score of the three result images was calculated after scoring them using different evaluation methods. The evaluation methods included: manual evaluation, the method of this invention, IS, PSNR, and SSIM.

[0085] In the manual evaluation, 20 designers rated their satisfaction with the style transfer model's results and ease of use. The manual evaluation scoring criteria consisted of six levels, as shown in Table 2.

[0086] Table 2 Scoring Criteria for Human Evaluation

[0087] 0 1 2 3 4 5 Completely dissatisfied Overall unsatisfied Not very satisfied Quite satisfied Overall satisfaction Completely satisfied

[0088] For the three machine evaluation methods (IS, PSNR, and SSIM), scoring was performed using result images and style images. The final scores are shown in Table 3, and the detailed scoring results of the method of this invention are shown in Table 4. To avoid the difference in magnitude between the results obtained by different evaluation methods, the ranking values ​​of each evaluation method were compared. Using human evaluation as the standard, the mean square error of different machine evaluation methods and human scoring was calculated separately. It can be seen that the evaluation method of the clothing style transfer model of this invention is closest to human evaluation, with an accuracy more than 89.4% higher than other evaluation methods.

[0089] Table 3. Scoring results of different evaluation methods and differences from manual scoring.

[0090]

[0091] Table 4 Detailed scoring results of the method of the present invention

[0092]

[0093]

Claims

1. An evaluation method for a clothing style transfer model, wherein the clothing style transfer model is a nonlocal style transfer model, characterized in that: The clothing style transfer model is evaluated using content feature representation, global style representation, local detail representation, feature fusion effect, and image generation time as evaluation factors. The evaluation formula is as follows: ; In the formula, , and These are the result diagram, content diagram, and style diagram of the clothing style transfer model, respectively. The overall score for the clothing style transfer model; The score represents the content feature representation of the clothing style transfer model; The score represents the global style expression in the clothing style transfer model; The score for the local detail representation in the clothing style transfer model; The score represents the feature fusion effect of the clothing style transfer model; The score for image generation time in the clothing style transfer model is used when evaluating model usability, specifically for remapping. The function obtains a score for the image generation time of the clothing style transfer model; Image semantic feature recognition is performed using a pre-trained large model. Content image, style image, and result image are input into the recognition network, and each image yields... Image feature labels, It should be an even number greater than or equal to 4; when style features and content features are well integrated, the labels of the resulting image should be evenly distributed among the labels of the content image and style image, and the feature integration effect should be determined by the semantic label hit rate. The calculation formula is: ; In the formula, The number of identical labels obtained by the image recognition network for the result image and content image of the clothing style transfer model. The number of identical labels obtained by the image recognition network for the result image and style image of the clothing style transfer model. All labels output by the image recognition network; The calculation formula is: ; In the formula, This represents the generation time of the result image from the clothing style transfer model.

2. The evaluation method for a clothing style transfer model according to claim 1, characterized in that, The calculation formula is: ; In the formula, the VGG19 network is used to extract content features. The input image represents the VGG19 network at the [number]th ... Feature map of the layer; It refers to the number of network layers used for content feature extraction.

3. The evaluation method for a clothing style transfer model according to claim 1, characterized in that, The calculation formula is: ; in: ; ; In the formula, The global color score for the result image of the clothing style transfer model; The global texture score for the result image of the clothing style transfer model; A color histogram representing the input image; Represents the color channels of the input image; Extract the Gram matrix using the VGG19 network. The input image represents the VGG19 network at the [number]th ... A Gram matrix composed of the feature maps of the layers; This represents the number of network layers used to extract the Gram matrix.

4. The evaluation method for a clothing style transfer model according to claim 2, characterized in that, The calculation formula is: ; in: ; ; In the formula, The similarity score of style blocks is used to match the result image of the clothing style transfer model with the style image. This represents the utilization score of style blocks in the style map; The first extracted from the input feature map Each style block; All style blocks extracted from the input feature map; for The style block corresponding to the matching using Markov fields; Enter the number of style blocks; The number of network layers used for Markov field style feature extraction; The number of style blocks into which the result image of the clothing style transfer model is segmented.