A cycle appearance flow virtual fitting method for improving the occlusion problem

By using a loop appearance flow and a multi-mask image fusion model, the problem of arm occlusion in virtual try-on was solved, achieving precise deformation and realistic synthesis of clothing and human body, and generating lifelike virtual try-on images.

CN117670695BActive Publication Date: 2026-11-27HANGZHOU DIANZI UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311366008.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2026-11-27
Estimated Expiration
2043-10-20

AI Technical Summary

Technical Problem

Existing virtual try-on technology has difficulty correctly separating the arm area when dealing with arm occlusion, resulting in unrealistic clothing deformation. Errors accumulate during the training of the appearance flow model, and the generated images lack realism, especially in the arm occlusion area.

Method used

A cyclic optimization appearance flow and multi-mask image fusion model are adopted. The appearance flow is predicted by the cyclic appearance flow deformation model and the realistic virtual fitting images are generated by the multi-mask image fusion model. The process includes constructing a semantic information data set, a cyclic appearance flow deformation model and a multi-mask image fusion model, learning the model parameters by using the backpropagation algorithm, and generating realistic virtual fitting images.

Benefits of technology

It generates realistic virtual fitting images under different occlusion scenarios, which is superior to existing methods in both quantitative and qualitative aspects, and achieves accurate deformation and realistic synthesis of clothing and human body.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117670695B_ABST
    Figure CN117670695B_ABST
Patent Text Reader

Abstract

The application discloses a cycle appearance flow virtual fitting method for improving the occlusion problem, comprising the following steps: S1, collecting fashion image data and preprocessing, constructing a semantic information data group, the semantic information data group comprising a person image, posture information, semantic information, and a fashion clothing single product image; S2, constructing a two-stage virtual fitting model comprising a cycle appearance flow deformation model and a multi-mask image fusion model, and initializing network weights; S3, learning model parameters by using a back propagation algorithm until the network converges; and S4, outputting the model, wherein the method improves the existing problem, generates a realistic virtual fitting image based on the cycle optimization appearance flow and the multi-mask image fusion model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information processing technology, specifically to a loop appearance flow virtual try-on method for improving occlusion problems. Background Technology

[0002] With the popularization of online shopping and breakthroughs in theories and technologies such as computer graphics engines, artificial intelligence, virtual reality, and augmented reality, research on virtual try-on technology has received increasing attention. Virtual try-on technology is crucial for meeting growing market demand, improving user experience, and reducing product return risks. In the past, commercial applications of virtual try-on were primarily based on 3D models, utilizing computer graphics technologies to fully measure and model target clothing, ultimately rendering it onto the human body. However, in the modern fashion e-commerce industry, scale and speed present both opportunities and challenges. Traditional 3D methods are computationally intensive and require significant human and material resources, greatly increasing the cost of practical virtual try-on applications. Furthermore, this technology is only applicable to modeling specific types of clothing, limiting its flexibility and creativity. For 2D image virtual try-on tasks, traditional manual methods require professionals to use image editing software to deform the target clothing and then overlay it onto a human image to achieve a virtual try-on effect. This also requires high-level professional skills and a significant time investment. However, the rapid development of deep learning technology in recent years has made it possible for artificial intelligence to replace humans in virtual try-on tasks. Image-based virtual try-on algorithms take images of human models and clothing to be tried on as input. They replace existing human clothing with clothing to be tried on, synthesizing a completely new clothing try-on image. The generated image is required to retain the appearance features of the clothing to be tried on and the original human model, ensuring that neither loses too much detail, while also generating some realistic content such as shadows and wrinkles.

[0003] In previous image-based virtual try-on methods, deformation models based on thin-plate spline interpolation were used to align the person and clothing images. However, this method, based on a limited number of control points, struggles to handle complex deformations. Conversely, recent appearance flow-based methods have demonstrated the advantage of learning complex, non-rigid clothing deformations with greater flexibility. These methods use pixel-level offsets between source and target regions—a dense appearance flow—to deform the clothing image, aligning it with the relevant areas of the person. However, these methods fail to handle complex arm poses well. Furthermore, image-to-image transformation models and spatial semantic adaptive generation models are often used to fuse deformed clothing and person images, but existing generative models still need improvement in generating realistic images. The objective of this invention is to address several challenging problems.

[0004] 1) Issue of the figure's arm obscuring the view

[0005] When the reference figure's arm obscures the clothing area, existing methods struggle to correctly separate the arm area, resulting in unrealistic clothing deformations and image generation outcomes, such as missing sleeves or arms that are stuck to body parts and cannot be distinguished.

[0006] 2) The training process of the appearance flow model is unreasonable.

[0007] Existing appearance flow-based methods rely on a coarse-to-fine resolution strategy to learn the appearance flow during training. Typically, these methods use cascaded flow estimation networks to estimate the appearance flow at low resolution and then optimize it at higher resolutions. This makes these methods prone to accumulating errors at coarse resolution scales and difficult to correct at subsequent resolutions, leading to errors in the final result.

[0008] 3) The image generation model lacks realism.

[0009] Existing image generation methods only perform simple stitching of clothing and human images and partial generation of human skin pixels. They cannot generate shadows and wrinkles caused by trying on real clothing, nor can they generate skin content adjustments based on the original skin tone information of the human body. This results in unrealistic images, especially in areas covered by arms.

[0010] Therefore, there is an urgent need for a virtual fitting method to improve existing problems, based on a cyclic optimization appearance flow and multi-mask image fusion model to generate realistic virtual fitting images. Summary of the Invention

[0011] This invention addresses the shortcomings of existing technologies by proposing a cyclic appearance flow virtual try-on method to improve the occlusion problem. It improves existing problems by generating realistic virtual try-on images based on a cyclically optimized appearance flow and a multi-mask image fusion model.

[0012] To solve the above-mentioned technical problems, the technical solution of the present invention is as follows:

[0013] A loop appearance flow virtual try-on method for improving occlusion problems includes the following steps:

[0014] S1. Collect and preprocess fashion image data to construct a semantic information data group, which includes images of people, posture information, semantic information, and images of individual fashion clothing items;

[0015] S2. Construct a two-stage virtual try-on model that includes a cyclic appearance manifold model and a multi-mask image fusion model, and initialize the network weights;

[0016] S2-1. Predict an appearance flow f of the same size as the input image using the cyclic appearance flow deformation model. t and utilize appearance flow f tThe image obtained is a distorted image of a fashion item (Iw) and a person image (I) unrelated to the clothing. p Simultaneously, a semantic prediction map S of the target person is generated. p ;

[0017] Input semantic information data is processed by the feature extractor in the cyclic appearance manifold model to obtain fashion clothing item features F. g ∈R h×w×d Human characteristics F p ∈R h×w×d and contextual features F c ∈R h×w×d ;

[0018] Through the characteristics of fashion clothing items F g ∈R h×w×d Human characteristics F p ∈R h×w×d The correlation pyramid {C1, C2, C3, C4} is obtained, where

[0019] Define a lookup operation L, which retrieves relevances from the relevance pyramid according to the index and calculates features to obtain the appearance flow; specifically, for a currently estimated appearance flow... Assume that the characteristic F of a fashion clothing item g Let x = (u, v) be a spatial location, and let F be a character feature. p The position associated with it is Define the local neighborhood of position x′ as Where dx represents the offset centered at x′, and ||dx|| 1≤r indicates that the radius of the offset is calculated using the L1 distance and does not exceed r. The correlation pyramid has fashion clothing items F g The position of x = (u, v) and the characteristics of the person F p Feature similarity across all locations, including x = (u, v) and the local neighborhood. The feature similarity. Therefore, the desired local feature correlation can be directly indexed from the correlation pyramid.

[0020] Using the appearance flow update block in the cyclic appearance flow deformation model, the appearance flow is taken as input to obtain the feature F′. h =attn×ψ(F h );

[0021] Using the gated cyclic unit in the cyclic appearance manifold model, F c F h F′ h The splicing result and the hidden layer h in the appearance flow update block t-1Send them together to the entry control loop unit to obtain the fine appearance flow f. t =f′ t +Δf t ";

[0022] Using fine appearance flow to process the input fashion clothing item images I g Deformed fashion clothing images I to align and match the input human body image w Specifically, for the input fashion clothing item image I g For each pixel, add its original position coordinates to the fine appearance flow f. t The offset value at that position yields the new position coordinates, thereby achieving image deformation and simultaneously generating a semantic prediction map S of the target person. p ;

[0023] S2-2, Transform the image of the fashion clothing item into a different shape. w Target Person Semantic Prediction Map S p And images of people unrelated to clothing (I) p The virtual fitting image I is input and output by the multi-mask image fusion model. t Images of people unrelated to clothing are retained. p The image is obtained by processing the input image of a person and preprocessed pose and semantic information. Specifically, the clothing region is selected from the semantic information, and the pixel values ​​at the same location in the original image are replaced with 0; a circular neighborhood with a radius of 5 pixels near the shoulder joint is selected from the pose information, and the pixel values ​​at the same location in the original image are replaced with 0, thus obtaining a clothing-independent image of the person (I). p .

[0024] S3. Use the backpropagation algorithm to learn the model parameters until the network converges;

[0025] S4, Output Model.

[0026] Preferably, in step S1, the preprocessing method is as follows: the collected fashion image data is used to estimate the human posture from the fashion image using a posture estimator, the human posture information containing 18 joint coordinate points; a human body parser is used to calculate a set of semantic information containing 20 labels and posture information containing 25 labels.

[0027] Preferably, in step S2-1, three feature extractors with the same network structure but different parameters are used to extract fashion clothing item features F from the combination of fashion clothing item images and pose information. g ∈R h×w×d Human characteristics F p ∈R h×w×d and contextual features F c ∈Rh×w×d .

[0028] Preferably, in step S2-1, the correlation pyramid is obtained by constructing a four-dimensional correlation container, the value of which is obtained by the dot product of the features: C ijkl (F g F p )=<F g(ijd) F p(kld) >∈R h ×w×h×w F g(ijd) and F p(kld) F represents clothing characteristics respectively g The feature vector of channel d and spatial location (i, j) and the feature F of the person p The feature vector has channel d and spatial location (k, l). Then, a 2×2 average pooling operation is applied to the correlation container, performing three 2D average pooling operations to obtain a correlation pyramid {C1, C2, C3, C4} composed of four 4D correlation containers.

[0029] Preferably, in step S2-1, the method of updating the appearance flow using the appearance flow update block is as follows:

[0030] For contextual features F c Projection is performed to obtain the query feature θ(F) c ), bond features φ(F c ), where θ(F) c ) = W q ×F c ,φ(F c ) = W k ×F c Furthermore, the attention matrix attn = softmax(θ(F) is obtained. c )φ(F c ) T ), where W q W k and W k These are learnable parameters.

[0031] Given the current appearance flow estimate f t-1 The correlation features C are obtained from the correlation pyramid using a table lookup operation L. t-1 For f t-1 Convolutional layers are applied to generate appearance flow features, and correlation features C. t-1 The feature is processed through a convolutional layer and then concatenated with the appearance flow feature. The concatenated feature is then processed through a convolutional layer to obtain feature F. h , will Fh Projection to the value feature ψ(F) h ) = W v ×F h ,ψ(F h Multiplying the feature F′ by the attention matrix yields the feature F′. h =attn×ψ(F h ), where F c ,θ(F c ), φ(F c ), ψ(F h ), F h and F′ h They all have the same latitude R h×w×d .

[0032] Preferably, the method for obtaining the fine appearance flow in step S2-1 is as follows:

[0033] F c F h F′ h The splicing result and hidden layer h t-1 Send them together to the gated loop unit; the hidden layer output h of the gated loop unit. t The rough residual appearance flow Δf′ is then estimated through two more convolutional layers. t Meanwhile, h t-1 After three upsampling and convolution operations, the semantic map S of the person was estimated. p The rough appearance flow is f′ t =f t-1 +Δf′ t A feature alignment mechanism is introduced, using f′ t clothing features F g Deformation to F′ g Then F′ g With F p The concatenated data is fed into the convolutional layer to generate a fine residual appearance flow Δf. t Finally, the refined appearance flow f is obtained. t =f t +Δf t ″.

[0034] Preferably, in step S2-2, the multi-mask image fusion model includes a parameter-sharing encoder and a multi-mask generator G. m and a multi-content generator G c .

[0035] Preferably, in step S2-2, the virtual fitting image I is output. t The method is as follows:

[0036] First, by superimposing Iw and I p Get I s Then put I s With S p The concatenated data is fed into an encoder to extract features; then the features extracted by the encoder are fed into a multi-mask generator G. m and multi-content generator G c ;

[0037] Through multi-mask generator G m Generate n attention masks, denoted as M. i i = 1, ..., n, and a combination selection mask M0;

[0038] Through the multi-content generator G c Generate n content images in the RGB color space, denoted as C. i , i = 1, ..., n;

[0039] Combination selection mask M0 from I s Select the corresponding pixel, and the attention mask M i From content image C i Selecting the corresponding pixels will combine the selection mask M0 and the attention mask M. i The selected pixels are combined to obtain the final virtual fitting image.

[0040] Preferably, the objective function of the two-stage virtual try-on model is a total objective function consisting of minimizing adversarial loss, cross-entropy loss, pixel-level loss, perceptual loss, and appearance flow smoothing loss. The total objective function uses the collected semantic information data set to train the cyclic appearance flow deformation model and the multi-mask image fusion model.

[0041] This invention has the following characteristics and beneficial effects:

[0042] By adopting the above technical solution, and through image fusion of the appearance flow of cyclic prediction and the multi-mask image generation model, excellent virtual try-on results were obtained. Furthermore, virtual try-on can be performed in different occlusion scenarios, and both quantitative and qualitative results surpass the state-of-the-art methods.

[0043] This method mainly includes two aspects: first, it achieves precise deformation control of clothing through an iterative optimization appearance flow prediction method; second, it uses a multi-mask image fusion model to synthesize images of clothing and human body to ultimately generate realistic virtual fitting images. Attached Figure Description

[0044] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0045] Figure 1 This is a schematic diagram illustrating the specific process of an embodiment of the present invention;

[0046] Figure 2 This is a cyclic appearance flow deformation model in an embodiment of the present invention;

[0047] Figure 3 This is a multi-mask image fusion model in an embodiment of the present invention;

[0048] Figure 4 This is a schematic diagram of the data set of the present invention. Detailed Implementation

[0049] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other.

[0050] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined with "first," "second," etc., may explicitly or implicitly include one or more of that feature. In the description of this invention, unless otherwise stated, "a plurality of" means two or more.

[0051] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art will understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0052] This invention provides a cyclic appearance flow virtual try-on method to improve occlusion problems. By fusing images from a cyclically predicted appearance flow and a multi-mask image generation model, excellent virtual try-on results are obtained. Extensive experiments have demonstrated that the proposed method can perform virtual try-on in various occlusion scenarios, outperforming state-of-the-art methods both quantitatively and qualitatively.

[0053] A loop appearance flow virtual try-on method for improving occlusion issues, such as Figure 1 As shown, the steps are as follows:

[0054] Step (1): Using existing fashion datasets, collect task data and preprocess the data to construct a dataset of human model images, pose information, semantic information, and fashion clothing item images.

[0055] In this embodiment, the data collected for the task using existing fashion datasets refers to the method evaluated on the VITON and VITON-HD datasets, as they contain various types of fashion clothing items paired with model try-on images.

[0056] Step (2): Under the existing data set, with the goal of generating natural and accurate virtual fitting images, a two-stage model is constructed. The first stage is a cyclic appearance flow deformation model, which adopts a multi-task learning strategy to generate dense appearance flow prediction and human semantic segmentation map. In the second stage, a synthetic model that introduces a multi-mask generation and selection mechanism is proposed.

[0057] Step (3): Using the collected data sets, train the cyclic appearance flow deformation model and the multi-mask image fusion model while minimizing adversarial loss, cross-entropy loss, pixel-level loss, perceptual loss and appearance flow smoothing loss.

[0058] Step (4): Train the network parameters in the model in step (3) using the backpropagation algorithm until the entire model converges and the corresponding virtual fitting image is generated.

[0059] Specifically, step (1) involves constructing a dataset of human model images, pose information, and semantic information. This means using a state-of-the-art pose estimator to estimate the human pose from the corresponding fashion image data, calculating pose information containing 18 joint coordinate points. Additionally, an advanced human body parser is used to calculate human semantic information with 20 labels and human depth pose information with 25 labels. Each label represents a specific part of the human body, such as the face, hair, arms, legs, and clothing area.

[0060] Step (2) involves constructing a two-stage model, including a cyclic appearance manifold model and a multi-mask image fusion model, to achieve accurate clothing deformation, semantic graph prediction, and image synthesis, generating highly realistic virtual try-on images, as detailed below:

[0061] like Figure 2 As shown, the first stage: appearance manifold deformation network

[0062] To align the clothing with the target person's body shape and posture, the appearance flow estimation module estimates the appearance flow between the clothing and the target person, thus performing natural and accurate deformation of the clothing. Furthermore, the network employs a multi-task learning strategy, simultaneously estimating the semantic map of the target person after trying on the clothing, to improve the accuracy of the appearance flow estimation and provide semantic guidance for the second-stage synthesis module.

[0063] In the appearance manifold deformation network, the goal of this embodiment is to predict a dense appearance flow f of the same size as the input image. t Using it to input fashion clothing item images I g Deformed fashion clothing item images to be aligned and matched with the input human body image I w Specifically, for the input fashion clothing item image I g For each pixel, add its original position coordinates to the fine appearance flow f. t The offset value at that position yields the new position coordinates, thus achieving image deformation. Simultaneously, a semantic prediction map S of the target person is generated. p .

[0064] Image of deformed fashion clothing item I w Target Person Semantic Prediction Map S p And images of people unrelated to clothing (I) p The virtual fitting image I is input and output through a multi-mask image fusion model. t Images of people unrelated to clothing are retained. p The image is obtained by processing the input image of a person and preprocessed pose and semantic information. Specifically, the clothing region is selected from the semantic information, and the pixel values ​​at the same location in the original image are replaced with 0; a circular neighborhood with a radius of 5 pixels near the shoulder joint is selected from the pose information, and the pixel values ​​at the same location in the original image are replaced with 0, thus obtaining a clothing-independent image of the person (I). p .

[0065] Specifically, the appearance manifold network includes a feature extractor responsible for extracting appropriate features from fashion clothing items and the human body. First, from the input human image I... r Preprocessing yields a clothing-independent semantic segmentation map S. r Human body depth pose information Pr and keypoint pose information K r Then, using two feature extractors with identical network structures but different parameter sharing, high-level features are extracted from a combination of fashion clothing item images and preprocessed human semantic pose information: Fashion Clothing Item Features F g ∈R h×w×d With human characteristics F p ∈R h×w×d These features will be used to calculate the visual relevance between the human body and individual fashion garments. Additionally, contextual features F will be extracted from the fashion garment images. c ∈R h×w×d It is used to initialize and update hidden layers in the appearance flow update block.

[0066] After obtaining the above features, the key step is to calculate the visual relevance of the features. Visual similarity represents the correspondence between fashion clothing items and reference human figures. Specifically, we construct a four-dimensional relevance container whose values ​​come from the dot product of the features. in and F represents clothing characteristics respectively g The feature vector of channel d and spatial location (i, j) and the feature F of the person p The feature vector has channel d and spatial location (k, l). Then, a 2×2 average pooling operation is applied, performing three 2D average pooling operations on the relevance containers to obtain a relevance pyramid {C1, C2, C3, C4} consisting of four 4D relevance containers. This relevance pyramid captures the overall visual relevance between people and fashion clothing items at multiple scales, and is repeatedly queried and fed into a recurrent network to iterate the appearance flow.

[0067] To estimate the dense appearance flow, a lookup operation L is defined, which retrieves relevances from the four-dimensional relevance pyramid according to the index and computes features. Since fashion clothing items are typically distorted towards the upper body, it is unnecessary to use the entire relevance pyramid as input to the appearance flow update block. Furthermore,

[0068] Specifically, for a currently estimated appearance flow Assume that the characteristic F of a fashion clothing item g Let x = (u, v) be a spatial location, and let F be a character feature. p The position associated with it is Define the local neighborhood of position x′ as Where dx represents the offset centered at x′, and ||dx|| 1≤r indicates that the radius of the offset is calculated using the L1 distance and does not exceed r. The correlation pyramid has fashion clothing items F g The position of x = (u, v) and the characteristics of the person F p Feature similarity across all locations, including x = (u, v) and the local neighborhood. The feature similarity. Therefore, the desired local feature correlation can be directly indexed from the correlation pyramid.

[0069] In this embodiment, the lookup operation significantly reduces the computational complexity of iteratively updating the appearance flow. For a pixel x′=(u,v) located in a person image, multi-scale correlation features between the person and the fashion clothing item are obtained through the index of the correlation pyramid. For example, a neighborhood grid is constructed around x′, and then information extraction is performed on the correlation pyramid using bilinear averaging.

[0070] The appearance flow update block is used to iteratively update the appearance flow. It receives the current appearance flow estimate f. t-1 Correlation feature C t-1 Contextual features F c Fashionable clothing items characteristics F g Character traits F p And the hidden layer h from the previous iteration t-1 The output is the rough residual appearance flow Δf′. t Fine residual appearance flow Δf t ", Current hidden layer h t And the semantic prediction graph S of the target person p We define the initial appearance flow as f0 = (0, 0). In each iteration of the appearance flow, we first introduce an attention mechanism to capture the long-distance dependencies between pixels in the fashion clothing item images; the correlation matrix is ​​calculated from the autocorrelation of the fashion clothing item images. We then apply an attention mechanism to the context features F... c Projection is performed to obtain the query feature θ(F) c ), bond features φ(F c ), where θ(F) c ) = W q ×F c ,φ(F c ) = W k ×F c Furthermore, the attention matrix attn = softmax(θ(F) is obtained. c )φ(F c ) TFor each pixel in a fashion garment image, identifying which other pixels it is related to is a key clue for accurately estimating appearance flow. Utilizing attention mechanisms is highly advantageous for appearance flow estimation. Given a current appearance flow estimate f... t-1 We obtain the correlation features C from the correlation pyramid using a table lookup operation L. t-1 For f t-1 We apply convolutional layers to generate appearance flow features. Correlation features C t-1 The features are processed through convolutional layers and then concatenated with the appearance flow features. The concatenated features are then processed through convolutional layers to obtain feature F. h We will F h Projection to the value feature ψ(F) h ) = W v ×F h . ψ(F h Multiplying the feature F′ by the attention matrix yields the feature F′. h =attn×ψ(F h Note F c ,θ(F c ), φ(F c ), ψ(F h ), F h and F′ h They all have the same dimension R h×w×d W q W k and W k These are learnable parameters.

[0071] Then, F c F h F′ h The splicing result and h t-1 Send them together to the gated loop unit. The hidden layer output h of the gated loop unit. t The rough residual appearance flow Δf′ is then estimated through two more convolutional layers. t Meanwhile, h t-1 After three upsampling and convolution operations, the semantic map S of the person was estimated. p Due to the rough appearance of the flow f t ′=f t-1 +Δf t Often overlooking fine-grained details of clothing, such as patterns and textures, we introduce a feature alignment mechanism. This mechanism corrects errors in a coarse appearance flow by aligning the features of deformed fashion garments with the features of the wearer. Specifically, we use f t ′The clothing features F g Deformation to F g ′, then combine it with F pThe concatenated data is fed into the convolutional layer to generate a fine residual appearance flow Δf. t Finally, we obtain the fine appearance flow f. t =f t +Δf t ″.

[0072] like Figure 3 As shown, the second stage: image synthesis network

[0073] The image synthesis network in this embodiment aims to generate high-quality virtual try-on images using reference figures and fashion clothing items. Most existing virtual try-on methods utilize a generator network with a U-shaped encoder-decoder structure and a single combined mask for selection. However, this approach cannot effectively distinguish the boundary between clothing and arms, nor can it produce complex clothing details such as shadows and wrinkles, especially in cases of occlusion and complex poses. To achieve photographic realism, our image synthesis model proposes a novel mask generation and selection mechanism. Unlike previous methods, our method generates multiple attention masks and corresponding content images, which are then fused with the generated try-on image to produce high-quality virtual try-on image results. Our proposed multi-mask image synthesis model represents a significant improvement over existing methods.

[0074] In detail, our multi-mask image synthesis model includes a parameter-shared encoder and a multi-mask generator G. m and a multi-content generator G c The network receives images of deformed fashion clothing items. w The estimated semantic segmentation map S of the person p Images of people unrelated to clothing are retained. p As input, the final virtual fitting image I is output. t Note I w and S p All of them come from the first stage. First, we superimpose I... w and I p Get I s Then put I s With S p The concatenation is then fed into the encoder. Then, the extracted features are fed into G. m With G c Here, G m Generate n attention masks, denoted as M. i G, i = 1, ..., n, and a combination selection mask M0. c Generate n content images in the RGB color space, denoted as C. iLet i = 1, ..., n. These content images contain fine-grained generation details such as shadows, wrinkles, and skin texture. The combined selection mask M0 is derived from I... s Select the corresponding pixel, and the attention mask M i From content image C i Select the appropriate pixels. Finally, combine these elements to obtain a realistic output.

[0075] Step (3): Construct a deep learning framework. While minimizing adversarial loss, cross-entropy loss, pixel-level loss, perceptual loss, and style loss, train a semantic layout generation network and a texture generation network using the collected dataset. Specifically:

[0076] To encourage the appearance flow f estimated in the i-th time t Images of fashion clothing items after deformation Images of real people wearing clothing I′ r To determine the visual similarity between them, we use pixel-level loss. and perceived loss , where φ m This refers to the m-th layer features of the VGG-19 network pre-trained on the ImageNet dataset. We also compare the binarized masks of the deformed fashion clothing items with those of real people wearing them. and Edge(I′) r Perform pixel-level loss constraints. To ensure consistency in pattern and texture between the deformed fashion garments, we used appearance flow smoothing loss. Where f i k This represents the k-th point in the appearance flow of the i-th iteration. It represents the horizontal, vertical, and diagonal domain of that point. It is the Charbonnier loss equation.

[0077] To improve the estimation performance of semantic information, we use the predicted semantic segmentation map S p and the real semantic segmentation graph S′ p Calculate pixel-level cross-entropy loss between We also used a discriminator network for adversarial training.

[0078] The overall loss function of the appearance manifold model as follows:

[0079]

[0080] Where N is the total number of iterations of the appearance flow, γ iIt is the weight for each iteration. and λ adv These are the weights of each loss function.

[0081] In the second stage, we apply the following loss to the image synthesis model.

[0082]

[0083] in and These represent the model output and the reconstruction and perceptual losses of the real image, respectively, with corresponding weights λ. rec2 and λ per2 . and This represents the loss between the i-th generated content image and the real image, and the average value of all content is used in the final calculation.

[0084] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions, and variations can be made to these embodiments, including components, without departing from the principles and spirit of the present invention, and these variations still fall within the protection scope of the present invention.

Claims

1. A loop appearance flow virtual try-on method for improving occlusion problems, characterized in that, Includes the following steps: S1. Collect and preprocess fashion image data to construct a semantic information data group, which includes images of people, posture information, semantic information, and images of individual fashion clothing items; S2. Construct a two-stage virtual try-on model that includes a cyclic appearance manifold model and a multi-mask image fusion model, and initialize the network weights; S2-1. Predict an appearance flow f of the same size as the input image using the cyclic appearance flow deformation model. t and utilize appearance flow f t Image of the deformed fashion clothing item I w Images of people unrelated to clothing (I) p Simultaneously, a semantic prediction map S of the target person is generated. p ; Input semantic information data is processed by the feature extractor in the cyclic appearance manifold model to obtain fashion clothing item features F. g ∈R h×w×d Human characteristics F p ∈R h×w×d and contextual features F c ∈R h×w×d ; Through the characteristics of fashion clothing items F g ∈R h×w×d Human characteristics F p ∈R h×w×d The correlation pyramid {C1, C2, C3, C4} is obtained, where Define a table lookup operation L, which retrieves relevance from the relevance pyramid according to the index and calculates features to obtain the appearance flow; Using the appearance flow update block in the cyclic appearance flow deformation model, the appearance flow is taken as input to obtain the feature F′. h =attn×ψ(F h ); Using the gated cyclic unit in the cyclic appearance manifold model, F c F h F′ h The splicing result and the hidden layer h in the appearance flow update block t-1 Send them together to the entry control loop unit to obtain the fine appearance flow f. t =f′ t +Δf″ t ; Using fine appearance flow to process the input fashion clothing item images I g Deformed fashion clothing images I to align and match the input human body image w Simultaneously, a semantic prediction map S of the target person is generated. p ; S2-2, Transform the image of the fashion clothing item into a different shape. w Target Person Semantic Prediction Map S p And images of people unrelated to clothing (I) p The virtual fitting image I is input and output by the multi-mask image fusion model. t ; S3. Use the backpropagation algorithm to learn the model parameters until the network converges; S4, Output Model.

2. The loop appearance flow virtual try-on method for improving occlusion problems according to claim 1, characterized in that, In step S1, the preprocessing method is as follows: the collected fashion image data is used to estimate the human posture from the fashion image using a posture estimator, and the human posture information includes 18 joint coordinate points; a human body parser is used to calculate a set of semantic information with 20 labels and posture information with 25 labels.

3. The loop appearance flow virtual try-on method for improving occlusion problems according to claim 2, characterized in that, In step S2-1, three feature extractors with identical network structures but non-shared parameters are used to extract fashion clothing features F from the combination of fashion clothing images and pose information. g ∈R h×w×d Human characteristics F p ∈R h×w×d and contextual features F c ∈R h×w×d .

4. A loop appearance flow virtual try-on method for improving occlusion problems according to claim 3, characterized in that, The image of the person unrelated to clothing is retained. p How to obtain: The clothing region is selected from the semantic information of the person, and the pixel values ​​at the same location in the original person image are replaced with 0. A circular neighborhood with a radius of 5 pixels near the shoulder joint is selected from the pose information, and the pixel values ​​at the same location in the original person image are replaced with 0, thus obtaining a clothing-independent image of the person (I). p .

5. A loop appearance flow virtual try-on method for improving occlusion problems according to claim 4, characterized in that, In step S2-1, the correlation pyramid is obtained by constructing a four-dimensional correlation container, the value of which is obtained by the dot product of the features: C ijkl (F g F p )= <F g(ijd) F p(kld) >∈R h×w×h×w F g(ijd) and F p(kld) F represents clothing characteristics respectively g The feature vector of channel d and spatial location (i, j) and the feature F of the person p The feature vector has channel d and spatial location (k, l). Then, a 2×2 average pooling operation is applied to the correlation container, performing three 2D average pooling operations to obtain a correlation pyramid {C1, C2, C3, C4} composed of four 4D correlation containers.

6. A loop appearance flow virtual try-on method for improving occlusion problems according to claim 5, characterized in that, In step S2-1, the method for updating the appearance flow using the appearance flow update block is as follows: For contextual features F c Projection is performed to obtain the query feature θ(F) c ), bond features φ(F c ), where θ(F) c ) = W q ×F c ,φ(F c ) = W k ×F c Furthermore, the attention matrix attn = softmax(θ(F) is obtained. c )φ(F c ) T ), where W q W k and W k These are learnable parameters. Given the current appearance flow estimate f t-1 The correlation features C are obtained from the correlation pyramid using a table lookup operation L. t-1 For f t-1 Convolutional layers are applied to generate appearance flow features, and correlation features C. t-1 The feature is processed through a convolutional layer and then concatenated with the appearance flow feature. The concatenated feature is then processed through a convolutional layer to obtain feature F. h , will F h Projection to the value feature ψ(F) h ) = W v ×F h ,ψ(F h Multiplying the feature F′ by the attention matrix yields the feature F′. h =attn×ψ(F h ), where F c ,θ(F c ), φ(F c ), ψ(F h ), F h and F′ h They all have the same dimension R h×w×d .

7. A loop appearance flow virtual try-on method for improving occlusion problems according to claim 6, characterized in that, In step S2-1, the method for obtaining the fine appearance flow is as follows: F c F h F′ h The splicing result and hidden layer h t-1 Send them together to the gated loop unit; the hidden layer output h of the gated loop unit. t The rough residual appearance flow Δf′ is then estimated through two more convolutional layers. t Meanwhile, h t-1 After three upsampling and convolution operations, the semantic map S of the person was estimated. p The rough appearance flow is f′ t =f t-1 +Δf′ t A feature alignment mechanism is introduced, using f′ t clothing features F g Deformation to F′ g Then F′ g With F p The concatenated data is fed into the convolutional layer to generate a fine residual appearance flow Δf″. t Finally, the refined appearance flow f is obtained. t =f′ t +Δf″ t .

8. A loop appearance flow virtual try-on method for improving occlusion problems according to claim 7, characterized in that, In step S2-2, the multi-mask image fusion model includes a parameter-sharing encoder and a multi-mask generator G. m and a multi-content generator G c .

9. A loop appearance flow virtual try-on method for improving occlusion problems according to claim 8, characterized in that, In step S2-2, the virtual fitting image I is output. t The method is as follows: First, by superimposing I w and I p Get I s Then put I s With S p The data is then concatenated and fed into an encoder to extract features. Then the features extracted by the encoder are fed into the multi-mask generator G. m and multi-content generator G c ; Through multi-mask generator G m Generate n attention masks, denoted as M. i i = 1, ..., n, and a combination selection mask M0; Through the multi-content generator G c Generate n content images in the RGB color space, denoted as C. i , i = 1, ..., n; Combination selection mask M0 from I s Select the corresponding pixel, and the attention mask M i From content image C i Selecting the corresponding pixels will combine the selection mask M0 and the attention mask M. i The selected pixels are combined to obtain the final virtual fitting image.

10. A loop appearance flow virtual try-on method for improving occlusion problems according to claim 1, characterized in that, The objective function of the two-stage virtual try-on model is a total objective function consisting of minimizing adversarial loss, cross-entropy loss, pixel-level loss, perceptual loss, and appearance flow smoothing loss. The total objective function uses the collected semantic information data set to train the cyclic appearance flow deformation model and the multi-mask image fusion model.

Citation Information

Patent Citations

  • Virtual fitting method based on dense flow

    CN113538610A

  • Omnibearing virtual fitting method and system based on circulation three-level transformation and medium

    CN114820294A