{"id":137,"date":"2025-04-11T16:37:31","date_gmt":"2025-04-11T08:37:31","guid":{"rendered":"https:\/\/xx66.hnt66.club\/?p=137"},"modified":"2025-06-20T13:03:35","modified_gmt":"2025-06-20T05:03:35","slug":"idm-vton%e4%ba%ba%e7%89%a9%e6%8d%a2%e8%a1%a3","status":"publish","type":"post","link":"https:\/\/xsir.work\/index.php\/2025\/04\/11\/idm-vton%e4%ba%ba%e7%89%a9%e6%8d%a2%e8%a1%a3\/","title":{"rendered":"IDM-VTON\u4eba\u7269\u6362\u8863"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u53c2\u8003\u4e86GitHub\u5f00\u6e90\u9879\u76ee<a href=\"https:\/\/github.com\/yisol\/IDM-VTON\">https:\/\/github.com\/yisol\/IDM-VTON<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\ntrain\n|-- image\n|-- image-densepose\n|-- agnostic-mask\n|-- cloth\n|-- vitonhd_train_tagged.json\n\ntest\n|-- image\n|-- image-densepose\n|-- agnostic-mask\n|-- cloth\n|-- vitonhd_test_tagged.json\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u8f7d DressCode \u6570\u636e\u96c6\u540e\uff0c\u6309\u5982\u4e0b\u65b9\u5f0f\u653e\u7f6e image-densepose \u76ee\u5f55\u548c\u5b57\u5e55\u6587\u672c\u6587\u4ef6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DressCode\n|-- dresses\n    |-- images\n    |-- image-densepose\n    |-- dc_caption.txt\n    |-- ...\n|-- lower_body\n    |-- images\n    |-- image-densepose\n    |-- dc_caption.txt\n    |-- ...\n|-- upper_body\n    |-- images\n    |-- image-densepose\n    |-- dc_caption.txt\n    |-- ...<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u8f7d\u7528\u4e8e sdxl \u7684\u9884\u8bad\u7ec3 IP \u9002\u914d\u5668\uff08IP-Adapter\/sdxl_models\/ip-adapter-plus_sdxl_vit-h.bin\uff09\u548c\u56fe\u50cf\u7f16\u7801\u5668\uff08IP-Adapter\/models\/image_encoder\uff09\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/huggingface.co\/h94\/IP-Adapter<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c06 ip-adapter \u79fb\u81f3 ckpt\/ip_adapter\uff0c\u5c06 image encoder \u79fb\u81f3 ckpt\/image_encoder\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528\u5e26\u53c2\u6570\u7684 python \u6587\u4ef6\u5f00\u59cb\u8bad\u7ec3\uff0c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>accelerate launch train_xl.py \\\n    --gradient_checkpointing --use_8bit_adam \\\n    --output_dir=result --train_batch_size=6 \\\n    --data_dir=DATA_DIR<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528\u5e26\u53c2\u6570\u7684 python \u6587\u4ef6\u8fdb\u884c\u63a8\u7406\uff0c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">accelerate launch inference.py \\<br>&#8211;width 768 &#8211;height 1024 &#8211;num_inference_steps 30 \\<br>&#8211;output_dir &#8220;result&#8221; \\<br>&#8211;unpaired \\<br>&#8211;data_dir &#8220;DATA_DIR&#8221; \\<br>&#8211;seed 42 \\<br>&#8211;test_batch_size 2 \\<br>&#8211;guidance_scale 2.0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4e8e DressCode \u6570\u636e\u96c6\uff0c\u901a\u8fc7 category \u53c2\u6570\u8f93\u5165\u8981\u751f\u6210\u56fe\u50cf\u7684\u7c7b\u522b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>accelerate launch inference_dc.py \\\n    --width 768 --height 1024 --num_inference_steps 30 \\\n    --output_dir \"result\" \\\n    --unpaired \\\n    --data_dir \"DATA_DIR\" \\\n    --seed 42 \n    --test_batch_size 2\n    --guidance_scale 2.0\n    --category \"upper_body\" <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u8f7d\u7528\u4e8e\u4eba\u5de5\u89e3\u6790\u7684\u68c0\u67e5\u70b9\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c06\u68c0\u67e5\u70b9\u653e\u5728 ckpt \u6587\u4ef6\u5939\u4e0b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ckpt\n|-- densepose\n    |-- model_final_162be9.pkl\n|-- humanparsing\n    |-- parsing_atr.onnx\n    |-- parsing_lip.onnx\n\n|-- openpose\n    |-- ckpts\n        |-- body_pose_model.pth\n    <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u7ec8\u5b8c\u6210\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u8003\u4e86GitHub\u5f00\u6e90\u9879\u76eehttps:\/\/github.com\/yisol\/IDM-VTON \u4e0b\u8f7d Dress [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-137","post","type-post","status-publish","format-standard","hentry","category-5"],"_links":{"self":[{"href":"https:\/\/xsir.work\/index.php\/wp-json\/wp\/v2\/posts\/137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xsir.work\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xsir.work\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xsir.work\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xsir.work\/index.php\/wp-json\/wp\/v2\/comments?post=137"}],"version-history":[{"count":1,"href":"https:\/\/xsir.work\/index.php\/wp-json\/wp\/v2\/posts\/137\/revisions"}],"predecessor-version":[{"id":138,"href":"https:\/\/xsir.work\/index.php\/wp-json\/wp\/v2\/posts\/137\/revisions\/138"}],"wp:attachment":[{"href":"https:\/\/xsir.work\/index.php\/wp-json\/wp\/v2\/media?parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xsir.work\/index.php\/wp-json\/wp\/v2\/categories?post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xsir.work\/index.php\/wp-json\/wp\/v2\/tags?post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}