A virtual try-on image synthesis method based on a diffusion model

By using a virtual try-on image synthesis method based on a diffusion model, and optimizing clothing pose and distortion models using VAE and a diffusion model-based denoising U-Net network, the problems of clothing misalignment, missing or mixed clothing in virtual try-on are solved, achieving consistency of clothing details and a natural try-on effect.

CN118521490BActive Publication Date: 2026-11-20DONGHUA UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410531948.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2026-11-20
Estimated Expiration
2044-04-29

AI Technical Summary

Technical Problem

Existing virtual try-on technology is prone to problems such as clothing misalignment, missing or mixed items, and inconsistent details such as texture compression when faced with large changes in human posture.

Method used

A virtual try-on image synthesis method based on a diffusion model is adopted. Through a clothing pose generation model module and a virtual try-on model module, a variational autoencoder (VAE) and a diffusion model denoising U-Net network are used, combined with deterministic Gaussian process random sampling and ControlNet network to optimize clothing pose and distortion models, thereby generating realistic try-on effects.

Benefits of technology

It effectively solves the problems of misalignment, missing parts, or mixing of clothing when the human body undergoes significant changes in posture, maintains the consistency of clothing details, and enhances the naturalness of the try-on effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118521490B_ABST
    Figure CN118521490B_ABST
Patent Text Reader

Abstract

The application discloses a virtual try-on image synthesis method based on a diffusion model, effectively solves the problems of misplacement, loss or mixing of clothes and details such as texture extrusion of a try-on effect generated when facing a large posture change of a human body, and the like. When facing a large posture change of a human body, the powerful generation capability of the diffusion model can generate a reasonable try-on result, and solves the problems of misplacement, loss or mixing of clothes. The posture information of the clothes determines the corresponding relationship between the generated clothes and original clothes information, is beneficial to keeping the details of the original clothes, and solves the problem of details such as texture extrusion and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer vision technology, and more specifically to a method for synthesizing virtual try-on images based on a diffusion model. Background Technology

[0002] Virtual try-on is a highly anticipated research topic in the field of Artificial Intelligence Generated Content (AIGC), particularly in conditional persona image generation. It possesses the ability to edit, replace, and design clothing images, and is widely used in e-commerce platforms, short video platforms, and other fields. Online shoppers can effectively enhance their shopping experience and increase the probability of successful transactions by obtaining virtual try-on images. Furthermore, AI fashion is also emerging on short video platforms, allowing users to creatively edit the clothing worn by people in images or videos, exploring personalized fashion sense and creating a variety of captivating images and videos.

[0003] The concept of virtual try-on was proposed as early as 2001. This method utilizes a pre-computed general database to generate personalized body measurements and dynamic clothing on a web application. Virtual try-on methods can generally be divided into three categories: physics-based simulation, real-world capture, and image generation. Physics-based try-on simulation, based on fabric simulation technology, involves human body reconstruction and fabric measurement. These methods have advantages such as pose control and 360° display, but face challenges in terms of accuracy, efficiency, and automation. Some brands, such as Uniqlo and GAP, have adopted this approach as their virtual try-on solution. Real-world capture methods typically capture and store the appearance of clothing on shape-controlled robots for later display, offering high fidelity. Only a few companies, such as Fits.me, have adopted this approach, but it requires a significant workforce for real-world capture. With the development of image generation technology, image-based virtual try-on has become increasingly popular due to its efficiency and low cost. However, artifacts in the generated images hinder its application in real-world scenarios.

[0004] Virtual clothing-changing technology aims to generate realistic try-on effects by composited clothing images onto corresponding areas of the human body. However, in practical applications, significant spatial geometric differences often exist between in-store clothing images and human body images, resulting in inaccurate alignment between clothing and body parts. To address this issue, early research employed geometric deformation models, such as the Thin-Plate Spline (TPS) model, to achieve clothing-human alignment. However, the TPS deformation model's deformation capabilities are limited by smoothness constraints.

[0005] To overcome this problem, researchers have recently employed flow operations to model clothing distortion, a method offering greater degrees of freedom. However, flow operations perform poorly when clothing exhibits significant local deformation. Existing methods primarily focus on modeling the overall deformation of clothing, neglecting the local semantic relationships between clothing and the human body. Consequently, when clothing undergoes large local deformations, virtual try-ons often result in misaligned, missing, or mixed-up garments.

[0006] To address this local misalignment issue, researchers introduced a patch routing untangling module method, which can splice different parts of the garment together. However, this method may result in noticeable blank areas between the spliced ​​parts, affecting the fitting effect.

[0007] In general, previous virtual try-on technologies often produced poor try-on results when faced with significant changes in human posture. Problems such as misaligned, missing, or mixed clothing items, as well as inconsistencies in details like texture compression, were frequently encountered. Summary of the Invention

[0008] The purpose of this invention is to synthesize a virtual try-on image of a model wearing clothing and an image of clothing in a store, given a model image of a model naturally wearing the target clothing, and to solve the problem of misaligned, missing, or mixed clothing in the resulting try-on effect when facing large changes in human posture, and to eliminate inconsistencies in details such as possible texture compression.

[0009] To achieve the above-mentioned objectives, the present invention provides a virtual try-on image synthesis method based on a diffusion model, wherein the method uses a clothing pose generation model module and a virtual try-on model module to achieve virtual try-on image synthesis.

[0010] The clothing pose generation model module includes the following steps during the training phase of the clothing pose generation network model:

[0011] Extract the skeletal joints from human images and visualize them to obtain a human posture skeleton image;

[0012] Based on the target human body image, extract human body area information and clothing area information to generate distorted clothing images and model images with the clothing area masked.

[0013] The human pose skeleton image is encoded into a first latent variable using a variational autoencoder (VAE). Different levels of noise from a normally distributed random sample obtained through a deterministic Gaussian process are added to the first latent variable to obtain the first noisy latent variable of the human pose skeleton image.

[0014] The distorted clothing image is encoded into a second latent variable through a VAE encoder, and added to the copy vector of the first noisy latent variable. The output of different network layers is added pixel-by-pixel to the corresponding skip connection layer of the U-Net denoising model of the clothing pose generation network through a Controlnet network with the same structure as the downsampling part of the diffusion model denoising U-Net, to obtain the clothing pose generation network model to be optimized.

[0015] The clothing pose generation network model is obtained by training the clothing pose generation network model under optimization using mean square error (MSE).

[0016] The clothing pose generation model module includes the following steps in the clothing pose image generation stage:

[0017] Randomly sampled Gaussian noise latent variables are used as input to the clothing pose generation network model, and in-store clothing images are used as conditional information for the clothing pose generation network model. The final clothing pose image is generated by repeatedly denoising and decoding the Gaussian noise latent variables.

[0018] The virtual fitting model module includes the following steps in the clothing distortion model training phase:

[0019] Features of clothing pose images and clothing images are extracted using the Visual Language-Image Pre-Training (CLIP) model and then injected into the denoising U-Net network of the clothing distortion diffusion model.

[0020] The distorted clothing image is used as the input to the clothing distortion model. Noise of different degrees is added to the second latent variable through a deterministic Gaussian process to randomly sample normal distributions, resulting in the second noisy latent variable of the distorted clothing image.

[0021] The copy vectors of the first latent variable and the second noisy latent variable are added together. The outputs of different network layers obtained by the Controlnet network with the same structure as the downsampling part of the diffusion model denoising U-Net are added pixel by pixel to the part of the skip connection corresponding to the diffusion model denoising U-Net to obtain the clothing distortion model to be optimized.

[0022] The clothing distortion model is obtained by training the clothing distortion model to be optimized using MSE loss.

[0023] The virtual try-on model module includes the following steps during the try-on synthesis model training phase:

[0024] The features of clothing pose images and clothing images are extracted using CLIP and then injected into the denoising U-Net network of the fitting synthesis diffusion model;

[0025] The human body image is encoded into a third latent variable using a VAE encoder. Noise of varying degrees is added to the third latent variable by randomly sampling a normal distribution through a deterministic Gaussian process, resulting in the third noisy latent variable of the human body image.

[0026] The human pose skeleton image is encoded into a fourth latent variable by a VAE encoder, and added to the copy vector of the third noisy latent variable. The output of different network layers is obtained by passing through a Controlnet network with the same structure as the downsampling part of the diffusion model denoising U-Net. The output of each network layer is added pixel by pixel to the part of the skip connection corresponding to the layer of the diffusion model denoising U-Net.

[0027] The model image with the clothing area masked is encoded into a fifth latent variable by a VAE encoder, and added to the copy vector of the third noisy latent variable. The output of different network layers is obtained by using a Controlnet network with the same structure as the downsampling part of the diffusion model denoising U-Net. The output of each network layer is added pixel by pixel to the corresponding skip connection layer of the diffusion model denoising U-Net to obtain the clothing synthesis model to be optimized.

[0028] By combining the clothing distortion model with MSE loss and perceptual loss, the virtual fitting synthesis model to be optimized is obtained.

[0029] A given image of clothing in a store is input into the clothing pose generation network model to obtain a clothing pose image. The clothing pose image and the clothing image are then fed into the CLIP end of the virtual try-on model module to extract features and inject them into the try-on synthesis model. A random noise latent variable following a normal distribution is input into the try-on synthesis model. A human pose skeleton image is added to the try-on synthesis model through the Controlnet network. A model image with the clothing area masked is added to the diffusion model through the Controlnet network. After adding all conditions, the try-on synthesis model predicts a denoised, less noisy latent variable, which is fed back to the try-on synthesis model. This allows the try-on synthesis model to continuously denoise the input noise latent variable. The final denoised result is decoded by the VAE decoder to obtain the final virtual try-on result.

[0030] Preferably, the skeleton joints are extracted using the OpenPose network.

[0031] Preferably, generating the distorted clothing image and the model image with the clothing area masked includes the following steps:

[0032] Using a target human image as input, a human body analysis map of the target human image is generated using a LIP (Look into People) network, thereby extracting human body region information and clothing region information;

[0033] Based on the human body analysis diagram, the human body area of ​​the target human body image is partially masked, while the clothing area is retained in the corresponding area of ​​the target human body image and used as a distorted clothing image.

[0034] Based on the human body analysis diagram, the clothing area in the target human body image is masked out, while the human body area in the target human body image is retained and used as the model image with the clothing area masked.

[0035] This invention proposes a virtual try-on image synthesis method based on a diffusion model, effectively solving the problems of misaligned, missing, or mixed clothing in the try-on effect when facing significant changes in human posture, as well as inconsistencies in details such as texture compression. When faced with significant changes in human posture, the powerful generation capability of the diffusion model can generate reasonable try-on results, alleviating the problems of misaligned, missing, or mixed clothing. Furthermore, the posture information of the clothing determines the correspondence between the generated clothing and the original clothing information, which helps to maintain the detail information of the original clothing and solves the problem of inconsistencies in details such as texture compression. Attached Figure Description

[0036] Figure 1 This is a flowchart of a virtual try-on image synthesis method based on a diffusion model, as described in an embodiment of the present invention.

[0037] Figure 2 This is a schematic diagram illustrating the training of the clothing pose generation model according to an embodiment of the present invention;

[0038] Figure 3 This is a schematic diagram illustrating the generation of clothing posture images as described in an embodiment of the present invention;

[0039] Figure 4 This is a schematic diagram illustrating the training of the clothing distortion model according to an embodiment of the present invention;

[0040] Figure 5 This is a schematic diagram illustrating the training of the fitting synthesis model according to an embodiment of the present invention;

[0041] Figure 6 This is a schematic diagram illustrating the generation of virtual fitting images as described in an embodiment of the present invention. Detailed Implementation

[0042] The present invention will be further illustrated 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.

[0043] like Figure 1As shown in this embodiment, the virtual try-on image synthesis method based on a diffusion model mainly employs two modules to achieve virtual try-on image synthesis: a clothing pose generation model module and a virtual try-on model module. The clothing pose generation model module operates in two stages: a clothing pose generation model training stage and a clothing pose image generation stage. The virtual try-on model module operates in three stages: a clothing distortion model training stage, a try-on synthesis model training stage, and a virtual try-on image generation stage.

[0044] like Figure 2 As shown, the training phase of the clothing pose generation model specifically includes the following steps:

[0045] Step 1: Extract the skeletal joints from the human body image and visualize them to obtain a human posture skeleton image.

[0046] The OpenPose network is used to extract the skeletal joints of human images, and the data is visualized and saved as an image.

[0047] Step 2: Extract the human body's analytical information from the target human body image to generate a distorted clothing image and a model image with the clothing area masked.

[0048] Using a target human image as input, a LIP (Look into People) network is used to generate a human body parsing image of the target human image, extracting the parsing information of the human body. The parsing information includes a model image with the clothing area masked as the human body region information and a distorted clothing image as the clothing region information.

[0049] Based on the human body analysis diagram, the human body area of ​​the target human body image is partially masked, while the clothing area is retained in the corresponding area of ​​the target human body image and extracted as a distorted clothing image. Alternatively, the clothing area of ​​the target human body image is partially masked, retaining only the human body area, which is then extracted as a model image with the clothing area masked.

[0050] Step 3: Add noise to the human body posture skeleton image and feed it into the clothing posture generation diffusion model.

[0051] For the human pose skeleton image, it will be used as the input of the clothing pose generation diffusion model. First, it is encoded into a latent variable by a pre-trained VAE encoder. Then, a normally distributed noise ∈ is randomly sampled through a deterministic Gaussian process. According to a random integer t from 1 to T, different levels of noise ∈ are added to the latent variable, where the larger t is, the greater the impact of noise on the latent variable and the less original image information there is. The noisy latent variable of the human pose skeleton image is obtained and used as the input of the denoising U-Net of the clothing pose diffusion model.

[0052] Step 4: Add the distorted clothing image to the clothing pose generation diffusion model via ControlNet.

[0053] For distorted clothing images, they are first encoded into latent variables using a pre-trained VAE encoder. Then, they are added to a copy vector of the noisy latent variables from the human pose skeleton image. Subsequently, the outputs of different network layers are added pixel-by-pixel to the corresponding skip connections of the U-Net used for denoising clothing pose generation diffusion model, resulting in the clothing pose generation network model to be optimized.

[0054] Step 5: Optimize the clothing pose generation network model using MSE loss.

[0055] The final output of the denoising U-Net is the prediction of the input noise ∈. The model is trained using an MSE loss, and the stable diffusion model is trained to learn the inverse denoising process, resulting in the clothing pose generation network model. The overall formula is as follows:

[0056]

[0057] Where, ∈ θ1 M generates a diffusion model for clothing pose generation. 1_2 For ControlNet, c represents a distorted image of clothing, and z represents a distorted image of clothing. t Let be the latent variable for adding noise to the human skeletal image, and ∈ be the noise added to it.

[0058] like Figure 3 As shown, the specific steps involved in generating clothing pose images are as follows:

[0059] Step 6: Generate clothing pose images.

[0060] Once the above-mentioned clothing distortion model based on the diffusion model has been trained, images of normal clothing in the store can be provided to the network to generate clothing pose images, which can then assist the subsequent training process of the clothing fitting synthesis module.

[0061] Specifically, a 64*48 Gaussian noise latent variable, identical in size to the noisy latent variable used in the training phase, is randomly sampled as the input to the denoising U-Net of the clothing pose generation network model. A normal image of clothing in the store is taken as the input to the ControlNet in the clothing pose generation network as conditional information. The clothing pose generation network then generates the corresponding clothing pose image. The normal clothing image serves as the condition, and the randomly sampled Gaussian noise latent variable is used as the input to the latent diffusion model. The diffusion model repeatedly denoises the noisy latent variable, which is then decoded by the VAE decoder to generate the final clothing pose image.

[0062] like Figure 4 As shown, the training phase of the clothing distortion model specifically includes the following steps:

[0063] Step 7: Extract features from clothing pose images and normal clothing images using CLIP and inject them into the denoising U-Net network of the clothing distortion diffusion model.

[0064] Images of clothing poses and normal clothing are cropped to a resolution of 224*224. Both are then processed by a pre-trained CLIP image encoder to extract features. After feature extraction, the features are concatenated along the first dimension and used as conditions for cross-attention. The CLIP features are used as K and V, and the denoising U-Net features are used as Q. These are then injected into the denoising U-Net network of the diffusion model, resulting in:

[0065]

[0066]

[0067] here, τ represents the flattened intermediate representation of U-Net θ (y) represents the intermediate representation to which condition y is projected via CLIP. This represents the learnable projection matrix.

[0068] Step 8: Add noise to the distorted clothing image and send it to the clothing distortion model.

[0069] For distorted clothing images, they are used as input to the diffusion model. First, they are encoded into latent variables by a pre-trained VAE encoder. Then, a normally distributed noise ∈ is randomly sampled. Based on a random integer t from 1 to T, different levels of noise ∈ are added to this latent variable. The larger t is, the greater the impact of the noise on z0 and the less original image information there is. This results in the noisy latent variable of the distorted clothing image, which is used as input to the denoising U-Net of the diffusion model.

[0070] Step 9: Add the human body posture skeleton image to the clothing distortion model via Control.net.

[0071] For a human pose skeleton image, it is first encoded into a latent variable by a pre-trained VAE encoder. Then, it is added to a copy vector of the noisy latent variable of the distorted clothing image. Subsequently, it is passed through a ControlNet network with the same structure as the downsampling part of the clothing distortion model denoising U-Net. The outputs of different network layers are added pixel by pixel to the corresponding skip connection layers of the clothing distortion model denoising U-Net to obtain the clothing distortion model to be optimized.

[0072] Step 10: Optimize the clothing distortion model to be optimized using MSE loss.

[0073] The final output of the denoising U-Net is the prediction of the input noise ∈. The model is trained using an MSE loss, and the overall formula is as follows:

[0074]

[0075] Where, ∈ θ2 For the clothing distortion model, M1 is a pre-trained CLIP image encoder, M 2_2 This is a ControlNet network for a clothing distortion diffusion model, where c1 is a normal clothing image, p1 is a clothing pose image, p2 is a human pose skeleton image, and z... t2 Let be the latent variable for adding noise to the distorted clothing image, and ∈ be the noise added to it.

[0076] like Figure 5 As shown, the training phase of the virtual fitting synthesis model specifically includes the following steps:

[0077] Step 11: Extract features from clothing pose images and normal clothing images using CLIP and inject them into the denoising U-Net network of the fitting synthesis diffusion model.

[0078] Images of clothing poses and normal clothing are cropped to a resolution of 224*224. Both are then processed by a pre-trained CLIP image encoder to extract features. After feature extraction, the features are concatenated along the first dimension and used as conditions for cross-attention. The CLIP features are used as K and V, and the denoising U-Net features are used as Q. These are then injected into the denoising U-Net network of the diffusion model, resulting in:

[0079]

[0080]

[0081] here, τ represents the flattened intermediate representation of U-Net θ (y) represents the intermediate representation to which condition y is projected via CLIP. This represents the learnable projection matrix.

[0082] Step 12: Add noise to the human body image and send it to the fitting synthesis model.

[0083] For human images, which will be used as input to the fitting room synthesis model, the human images are first encoded into latent variables by a pre-trained VAE encoder. Then, a normally distributed noise ∈ is randomly sampled. Based on a random integer t from 1 to T, different levels of noise ∈ are added to z0, where the larger t is, the greater the impact of noise on z0 and the less original image information there is. This results in the noisy latent variables of the human images, which are used as input to the denoising U-Net of the fitting room synthesis model.

[0084] Step 13: Add the human skeletal image to the fitting room composite model via Controlnet.

[0085] For human pose skeleton images, they are first encoded into latent variables by a pre-trained VAE encoder. Then, they are added to a copy vector of the noisy latent variables of the human image. Subsequently, the outputs of different network layers are added pixel-by-pixel to the corresponding skip connections of the U-Net denoising model of the fitting room synthesis model by passing through the ControlNet network with the same structure as the downsampling part of the fitting room synthesis model denoising U-Net.

[0086] Step 14: Mask the model image of the clothing area and add it to the diffusion model of the try-on synthesis to be optimized via Controlnet.

[0087] For a model image with the clothing area masked, it is first encoded into a latent variable by a pre-trained VAE encoder. Then, it is added to a copy vector of the noisy latent variable of the human body image. Subsequently, it is processed by a ControlNet network with the same structure as the downsampling part of the diffusion model denoising U-Net. The outputs of different network layers are added pixel by pixel to the corresponding skip connections of the diffusion model denoising U-Net to obtain the clothing synthesis model to be optimized.

[0088] Step 15: Initialize the clothing distortion model to be optimized using the already trained clothing distortion model, and further optimize the initialized model using MSE loss and perceptual loss.

[0089] The clothing distortion model to be optimized is initialized using a pre-trained clothing distortion model. The final output of the denoising U-Net of the clothing synthesis model is the prediction of the input noise ∈. The model is trained using an MSE loss and a perceptual loss, and the overall formula is as follows:

[0090]

[0091]

[0092] L = L simple +λL VGG

[0093] Here, λ is taken as 0.01. Where, ∈ θ3 This is a try-on synthesis model, where M1 is a pre-trained CLIP image encoder, and M... 3_2 This is a ControlNet network for a virtual fitting synthesis diffusion model. c1 is a normal clothing image, p1 is a clothing pose image, c2 is a model image with the clothing area masked, p2 is a human skeletal image, and z... t3 Let be the latent variable for adding noise to a human image, and ∈ be the noise added to it. It is a human image extrapolated from predicted noise, I gt Images of real human bodies, φ m This is a pre-trained VGG network.

[0094] The final virtual fitting model is obtained by combining the initial training of the clothing distortion diffusion model and the further training of the fitting synthesis diffusion model.

[0095] like Figure 6 As shown, the virtual fitting image generation process includes the following steps:

[0096] Step 16: Use the clothing distortion model and the virtual fitting model to perform a virtual fitting.

[0097] Given a picture of clothing in the store, first, as in step 6, a clothing distortion model is used to obtain a clothing pose image. Then, as in step 11, the clothing pose image and the clothing image are fed into the CLIP end of the virtual try-on model to extract features and inject them into the diffusion model. Next, the noisy latent variable used as input to the diffusion model in step 12 is replaced with a random noise latent variable of the same size as the noisy latent variable and following a normal distribution. Then, as in step 13, the human pose skeleton image is added to the diffusion model via ControlNet. Then, as in step 14, the model image with the clothing area masked is added to the diffusion model via ControlNet. After adding all the conditions, the diffusion model will predict a denoised, less noisy latent variable. By repeatedly executing the above steps, the noise latent variable input to the diffusion model is continuously denoised. The final denoised result is decoded by the VAE decoder to obtain the final virtual try-on result.

[0098] The embodiments of the present invention effectively solve the problems of misaligned, missing, or mixed clothing effects and inconsistent details such as texture compression when facing large changes in human posture.

Claims

1. A virtual try-on image synthesis method based on a diffusion model, characterized in that, The method uses a clothing pose generation model module and a virtual try-on model module to synthesize virtual try-on images; The clothing pose generation model module includes the following steps during the training phase of the clothing pose generation network model: Extract the skeletal joints from human images and visualize them to obtain a human posture skeleton image; Based on the target human body image, extract human body area information and clothing area information to generate distorted clothing images and model images with the clothing area masked. The human pose skeleton image is encoded into a first latent variable using a VAE encoder. Noise of different degrees is added to the first latent variable by randomly sampling a normal distribution through a deterministic Gaussian process to obtain the first noisy latent variable of the human pose skeleton image. The distorted clothing image is encoded into a second latent variable by a VAE encoder, added to the copy vector of the first noisy latent variable, and then passed through a Controlnet network with the same structure as the downsampling part of the diffusion model denoising U-Net. The outputs of different network layers are added pixel by pixel to the corresponding skip connection layers of the diffusion model denoising U-Net to obtain the clothing pose generation network model to be optimized. The clothing pose generation network model is obtained by training the clothing pose generation network model under optimization using MSE loss. The clothing pose generation model module includes the following steps in the clothing pose image generation stage: Randomly sampled Gaussian noise latent variables are used as input to the clothing pose generation network model, and in-store clothing images are used as conditional information for the clothing pose generation network model. The final clothing pose image is generated by repeatedly denoising and decoding the Gaussian noise latent variables. The virtual fitting model module includes the following steps in the clothing distortion model training phase: The features of clothing pose images and clothing images are extracted using CLIP and then injected into the denoising U-Net network of the clothing distortion diffusion model; The distorted clothing image is used as the input to the clothing distortion model. Noise of different degrees is added to the second latent variable through a deterministic Gaussian process to randomly sample normal distributions, resulting in the second noisy latent variable of the distorted clothing image. The copy vectors of the first latent variable and the second noisy latent variable are added together. The outputs of different network layers obtained by the Controlnet network with the same structure as the downsampling part of the diffusion model denoising U-Net are added pixel by pixel to the part of the skip connection corresponding to the diffusion model denoising U-Net to obtain the clothing distortion model to be optimized. The clothing distortion model is obtained by training the clothing distortion model to be optimized using MSE loss. The virtual try-on model module includes the following steps during the try-on synthesis model training phase: The features of clothing pose images and clothing images are extracted using CLIP and then injected into the denoising U-Net network of the fitting synthesis diffusion model. The human body image is encoded into a third latent variable using a VAE encoder. Noise of varying degrees is added to the third latent variable by randomly sampling a normal distribution through a deterministic Gaussian process, resulting in the third noisy latent variable of the human body image. The human pose skeleton image is encoded into a fourth latent variable by a VAE encoder, and added to the copy vector of the third noisy latent variable. The output of different network layers is obtained by passing through a Controlnet network with the same structure as the downsampling part of the diffusion model denoising U-Net. The output of each network layer is added pixel by pixel to the part of the skip connection corresponding to the layer of the diffusion model denoising U-Net. The model image with the clothing area masked is encoded into a fifth latent variable by a VAE encoder, and added to the copy vector of the third noisy latent variable. The output of different network layers is obtained by using a Controlnet network with the same structure as the downsampling part of the diffusion model denoising U-Net. The output of each network layer is added pixel by pixel to the corresponding skip connection layer of the diffusion model denoising U-Net to obtain the clothing synthesis model to be optimized. The clothing distortion model is used as the initialization of the virtual fitting synthesis model. The virtual fitting synthesis model to be optimized is optimized using MSE loss and perceptual loss to obtain the virtual fitting synthesis model. A given image of clothing in the store is input into the clothing pose generation network model to obtain a clothing pose image. The clothing pose image and the clothing image are then fed into the CLIP end of the virtual try-on model module to extract features and inject them into the try-on synthesis model. A random noise latent variable following a normal distribution is input into the try-on synthesis model. A human pose skeleton image is added to the try-on synthesis model through the Controlnet network. A model image with the clothing area masked is added to the diffusion model through the Controlnet network. After adding all conditions, the try-on synthesis model predicts a denoised, less noisy latent variable, which is fed back into the try-on synthesis model. This allows the try-on synthesis model to continuously denoise the input noisy latent variable to obtain a noise-free latent variable. Finally, the virtual try-on result is obtained by decoding through the VAE decoder.

2. The virtual try-on image synthesis method based on a diffusion model as described in claim 1, characterized in that, The skeletal joints were extracted using the OpenPose network.

3. The virtual try-on image synthesis method based on a diffusion model as described in claim 1, characterized in that, The process of generating distorted clothing images and model images with the clothing areas masked includes the following steps: Using a target human body image as input, a human body analysis map of the target human body image is generated using a LIP network, thereby extracting a model image with the clothing area masked as human body region information and a distorted clothing image as clothing region information. Based on the human body analysis diagram, the human body area of ​​the target human body image is partially masked, while the clothing area is retained in the corresponding area of ​​the target human body image and used as a distorted clothing image. Based on the human body analysis diagram, the clothing area in the target human body image is masked out, while the human body area in the target human body image is retained and used as the model image with the clothing area masked.

Citation Information

Patent Citations

  • Method for training virtual fitting model, method for generating fitting image and related device

    CN117036851A

  • Fitting-on image generation method and device based on diffusion model, equipment and medium

    CN117649463A