{"id":19087,"date":"2024-08-31T11:38:32","date_gmt":"2024-08-31T03:38:32","guid":{"rendered":"https:\/\/www.1ai.net\/?p=19087"},"modified":"2024-08-31T11:38:32","modified_gmt":"2024-08-31T03:38:32","slug":"ai%e8%99%9a%e6%8b%9f%e6%8d%a2%e8%a1%a3%ef%bc%8c8g%e6%98%be%e5%ad%98%e7%8e%a9%e8%bd%acai%e4%b8%80%e9%94%ae%e6%8d%a2%e8%a1%a3catvton%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/19087.html","title":{"rendered":"AI virtual clothes changing, 8G video memory to play AI one-key clothes changing CatVTON installation and use tutorial"},"content":{"rendered":"<p><a href=\"https:\/\/www.1ai.net\/en\/tag\/catvton\" title=\"[Sees articles with [CatVTON] label]\" target=\"_blank\" >CatVTON<\/a>It is a simple and efficient virtual try-on diffusion model open sourced by Sun Yat-sen University. The effect is quite good. Today I will teach you how to deploy it locally and build a workflow.<\/p>\n<p><strong>Local deployment<\/strong><\/p>\n<p>First in <a href=\"https:\/\/www.1ai.net\/en\/tag\/comfyui\" title=\"_Other Organiser\" target=\"_blank\" >ComfyUI<\/a> Search in the manager: ComfyUI_CatVTON_Wrapper, then install and restart<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19088\" title=\"54165126j00sj2cmy000pd000m8007cm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/54165126j00sj2cmy000pd000m8007cm.jpg\" alt=\"54165126j00sj2cmy000pd000m8007cm\" width=\"800\" height=\"264\" \/><\/p>\n<p>Or if the network is not good, install it manually<\/p>\n<p>Project address: https:\/\/github.com\/chflame163\/ComfyUI_CatVTON_Wrapper<\/p>\n<p><strong>Download the model<\/strong><\/p>\n<p>After installing the node, we need to install the model. If you have a good network connection, it is recommended to install it using Google Cloud Drive.<\/p>\n<p>Address: https:\/\/drive.google.com\/drive\/folders\/1TJNNql7UfDPVgHJuItDDjowycN5jpC5o?usp=sharing<\/p>\n<p>If you have a Baidu member, you can use Baidu Netdisk to install it.<\/p>\n<p>Address: https:\/\/pan.baidu.com\/s\/1xbL5evB6iiav3QozsL0fJQ?pwd=06nv<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19089\" title=\"9869b5b9j00sj2cmy000xd000m800c1m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/9869b5b9j00sj2cmy000xd000m800c1m.jpg\" alt=\"9869b5b9j00sj2cmy000xd000m800c1m\" width=\"800\" height=\"433\" \/><\/p>\n<p>We download all the compressed packages and unzip them to a directory.<\/p>\n<p>ComtyUI\/models\/CatVTON<\/p>\n<p>CatVTON<\/p>\n<p>You need to create this folder yourself.<\/p>\n<p><strong>Building a workflow<\/strong><\/p>\n<p>The core node is the CatVTON_Wrapper node we just installed, which requires a model image, clothing reference image and mask. I add a mask node SegmentAnythingUltra that can automatically identify clothing. You can also replace it with other mask nodes that can identify objects, or apply the mask manually.<\/p>\n<p>Automatic recognition:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19091\" title=\"de00d510j00sj2cmy0010d000m8009cm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/de00d510j00sj2cmy0010d000m8009cm.jpg\" alt=\"de00d510j00sj2cmy0010d000m8009cm\" width=\"800\" height=\"336\" \/><\/p>\n<p>Manual application:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19090\" title=\"49114679j00sj2cmy0010d000m800acm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/49114679j00sj2cmy0010d000m800acm.jpg\" alt=\"49114679j00sj2cmy0010d000m800acm\" width=\"800\" height=\"372\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19092\" title=\"9a5a3d01j00sj2cmz0014d000kw00apm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/9a5a3d01j00sj2cmz0014d000kw00apm.jpg\" alt=\"9a5a3d01j00sj2cmz0014d000kw00apm\" width=\"752\" height=\"385\" \/><\/p>\n<p>Node parameter introduction<\/p>\n<ul>\n<li>Image: Input image.<\/li>\n<li>mask: input the mask of the image. The clothes within the mask range will be redrawn.<\/li>\n<li>refer_image: The reference image for redrawing the clothing.<\/li>\n<li>mask_grow: How much the mask expands. If the redrawn clothing style is not correct, try adjusting this value.<\/li>\n<li>hybrid_precision: You can choose fp32, fp16, or bf16, and the model will run under the selected data type.<\/li>\n<li>seed: The random seed for the sampler.<\/li>\n<li>steps: The number of steps of the sampler.<\/li>\n<li>cfg: cfg strength for the diffusion model.<\/li>\n<\/ul>\n<p>The workflow is still very simple.<\/p>\n<p><strong>Test results<\/strong><\/p>\n<p>It still fits the figure very well, and the pattern is well restored, although it is still a little distorted.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19094\" title=\"baf85a32j00sj2cmz009jd000m100cbm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/baf85a32j00sj2cmz009jd000m100cbm.jpg\" alt=\"baf85a32j00sj2cmz009jd000m100cbm\" width=\"793\" height=\"443\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19093\" title=\"c8293aa4j00sj2cmy0013d000m800c6m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/c8293aa4j00sj2cmy0013d000m800c6m.jpg\" alt=\"c8293aa4j00sj2cmy0013d000m800c6m\" width=\"800\" height=\"438\" \/><\/p>\n<p>The pants are also interchangeable.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19095\" title=\"79bfb68fj00sj2cmy000yd000m8009em\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/79bfb68fj00sj2cmy000yd000m8009em.jpg\" alt=\"79bfb68fj00sj2cmy000yd000m8009em\" width=\"800\" height=\"338\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19096\" title=\"00d17f10j00sj2cmy000xd000m8009ym\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/00d17f10j00sj2cmy000xd000m8009ym.jpg\" alt=\"00d17f10j00sj2cmy000xd000m8009ym\" width=\"800\" height=\"358\" \/><\/p>\n<p>If you want to change to other types of clothes, it is recommended to apply the mask manually. For example, my model here is wearing short sleeves, but I want to change to long sleeves, so you can apply the mask to the upper body of the character.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19097\" title=\"21ed992fj00sj2cmz005ld000hw00hvm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/21ed992fj00sj2cmz005ld000hw00hvm.jpg\" alt=\"21ed992fj00sj2cmz005ld000hw00hvm\" width=\"644\" height=\"643\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19098\" title=\"8b410c64j00sj2cmz005od000lp00a5m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/8b410c64j00sj2cmz005od000lp00a5m.jpg\" alt=\"8b410c64j00sj2cmz005od000lp00a5m\" width=\"781\" height=\"365\" \/><\/p>\n<p><strong>Summarize<\/strong><\/p>\n<p>This dressing tool is simple to install and easy to use. Although it does not reach commercial level, it is still a good choice for ordinary people to use as a cyber fitting room.<\/p>","protected":false},"excerpt":{"rendered":"<p>CatVTON is Sun Yat-sen University open source a simple and efficient virtual trial diffusion model, the effect is quite good, today we will teach you how to locally deploy and build the workflow Local deployment First of all, search in ComfyUI Manager: ComfyUI_CatVTON_Wrapper, and then install and restart Or if the network is not good to manually install the project address: https:\/\/github.com\/chflame163\/ComfyUI_CatVTON_Wrapper Download the model After installing the node, we need to install the model, if you have a good network, we recommend using Google Drive to install the address: https:\/\/drive.google.com\/drive<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149,144],"tags":[3822,3823,1989,4122],"collection":[],"class_list":["post-19087","post","type-post","status-publish","format-standard","hentry","category-jiaocheng","category-baike","tag-ai","tag-catvton","tag-comfyui","tag-4122"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/19087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/comments?post=19087"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/19087\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=19087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=19087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=19087"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=19087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}