{"id":22663,"date":"2024-11-06T09:41:26","date_gmt":"2024-11-06T01:41:26","guid":{"rendered":"https:\/\/www.1ai.net\/?p=22663"},"modified":"2024-11-06T09:41:26","modified_gmt":"2024-11-06T01:41:26","slug":"comfyui%e5%b7%a5%e4%bd%9c%e6%b5%81%ef%bc%8c%e4%b8%8d%e7%94%a8%e5%86%99%e6%8f%90%e7%a4%ba%e8%af%8d%e7%9a%84%e4%ba%ba%e5%83%8f%e6%8f%92%e4%bb%b6%e7%94%9f%e6%88%90%e4%bb%8e%e5%87%ba%e7%94%9f%e5%88%b0","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/22663.html","title":{"rendered":"comfyui workflow, no need to write prompt words for portrait plugin to generate photos of faces from birth to 100 years old"},"content":{"rendered":"<p>\u4eca\u5929\u6587\u7ae0\u4e3b\u9898\u4ecb\u7ecd\u4e00\u6b3e\u6700\u65b0\u7684<strong>\u5e74\u9f84\u8f6c\u6362\uff08Age Transformation\uff09<\/strong>\u6846\u67b6\uff1a<strong>SAM<\/strong>\u3002\u8fd9\u662f\u4e00\u6b3e\u80fd\u591f\u5c55\u793a\u4eba\u7269\u4e2a\u4f53\u968f\u7740\u5e74\u9f84\u8f6c\u6362\u4eba\u7269\u5bb9\u8c8c\u548c\u5916\u89c2\u968f\u65f6\u95f4\u7684\u53d8\u5316\u8fc7\u7a0b\u6846\u67b6\u3002\u8be5\u6846\u67b6\u5c06\u771f\u5b9e\u7684\u9762\u90e8\u56fe\u50cf\u76f4\u63a5\u7f16\u7801\u5230\u9884\u8bad\u7ec3\u7684\u65e0\u6761\u4ef6GAN\uff08\u4f8b\u5982\uff0cStyleGAN\uff09\u7684\u6f5c\u5728\u7a7a\u95f4\u4e2d\uff0c\u53d7\u7ed9\u5b9a\u7684\u5e74\u9f84\u504f\u79fb\u63a7\u5236\u3002\u540c\u65f6\u4f7f\u7528\u4e86\u4e00\u4e2a\u9884\u8bad\u7ec3\u7684<strong>\u5e74\u9f84\u56de\u5f52\u7f51\u7edc<\/strong>\uff0c\u660e\u786e\u6307\u5bfc\u7f16\u7801\u5668\u751f\u6210\u5bf9\u5e94\u4e8e\u671f\u671b\u5e74\u9f84\u7684\u6f5c\u5728\u7f16\u7801\u3002<strong>SAM<\/strong>\u65b9\u6cd5\u5c06\u8fde\u7eed\u7684\u5e74\u9f84\u8fc7\u7a0b\u89c6\u4e3a\u8f93\u5165\u5e74\u9f84\u548c\u671f\u671b\u76ee\u6807\u5e74\u9f84\u4e4b\u95f4\u7684\u56de\u5f52\u4efb\u52a1\uff0c\u4e3a\u751f\u6210\u7684\u56fe\u50cf\u63d0\u4f9b\u7ec6\u7c92\u5ea6\u63a7\u5236\u3002\u6b64\u5916\uff0c\u4e0e\u4ec5\u5728\u6f5c\u5728\u7a7a\u95f4\u4e2d\u64cd\u4f5c\u5e76\u4f7f\u7528\u5148\u9a8c\u63a7\u5236\u5e74\u9f84\u8def\u5f84\u7684\u5176\u4ed6\u65b9\u6cd5\u4e0d\u540c\uff0c<strong>SAM<\/strong>\u65b9\u6cd5\u66f4\u89e3\u8026\u3001\u975e\u7ebf\u6027\u7684\u8def\u5f84\u3002\u8be5\u65b9\u6cd5\u5177\u6709\u7aef\u5230\u7aef\u7279\u6027\uff0c\u52a0\u4e0aStyleGAN\u4e30\u5bcc\u7684\u8bed\u4e49\u6f5c\u5728\u7a7a\u95f4\uff0c\u5141\u8bb8\u5bf9\u751f\u6210\u7684\u56fe\u50cf\u8fdb\u884c\u8fdb\u4e00\u6b65\u7f16\u8f91\u3002<\/p>\n<ul>\n<li>github\uff1ahttps:\/\/github.com\/yuval-alaluf\/SAM<\/li>\n<li>\u5728\u7ebf\u4f53\u9a8c\uff1ahttps:\/\/replicate.com\/yuval-alaluf\/sam<\/li>\n<li>\u6280\u672f\u8bba\u6587\uff1ahttps:\/\/arxiv.org\/abs\/2102.02754<\/li>\n<\/ul>\n<p>\u6848\u4f8b\u6f14\u793a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22664\" title=\"e4924614j00smi9wu0016d000u0007ep\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/11\/e4924614j00smi9wu0016d000u0007ep.jpg\" alt=\"e4924614j00smi9wu0016d000u0007ep\" width=\"1080\" height=\"266\" \/><\/p>\n<p>\u793e\u533a\u5df2\u6709<strong>comfyui-<a href=\"https:\/\/www.1ai.net\/en\/tag\/faceaging\" title=\"\u3010\u67e5\u770b\u542b\u6709[faceaging]\u6807\u7b7e\u7684\u6587\u7ae0\u3011\" target=\"_blank\" rel=\"noopener\">faceaging<\/a><\/strong>\u7684<a href=\"https:\/\/www.1ai.net\/en\/tag\/comfyui\" title=\"\u3010\u67e5\u770b\u542b\u6709[ComfyUI]\u6807\u7b7e\u7684\u6587\u7ae0\u3011\" target=\"_blank\" rel=\"noopener\">ComfyUI<\/a><a href=\"https:\/\/www.1ai.net\/en\/tag\/%e6%8f%92%e4%bb%b6\" title=\"\u3010\u67e5\u770b\u542b\u6709[\u63d2\u4ef6]\u6807\u7b7e\u7684\u6587\u7ae0\u3011\" target=\"_blank\" rel=\"noopener\">\u63d2\u4ef6<\/a>\u652f\u6301\u4e86\uff0c\u8be5\u63d2\u4ef6\u80fd\u652f\u6301\u00a0<strong>-100\u5230+100(\u63a8\u8350 -50 \u5230 +100)<\/strong>\u00a0\u5e74\u9f84\u7684\u8f6c\u6362\u76f4\u51fa\u56fe\u50cf\u3002\u53ef\u4ee5\u901a\u8fc7\u63d2\u4ef6\u7ba1\u7406\u7684git\u5b89\u88c5\u8be5\u63d2\u4ef6\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22666\" title=\"b1222e0aj00smi9mi000dd000id0042p\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/11\/b1222e0aj00smi9mi000dd000id0042p.jpg\" alt=\"b1222e0aj00smi9mi000dd000id0042p\" width=\"661\" height=\"146\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22665\" title=\"d18e3199j00smi9ms001id000u000hup\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/11\/d18e3199j00smi9ms001id000u000hup.jpg\" alt=\"d18e3199j00smi9ms001id000u000hup\" width=\"1080\" height=\"642\" \/><\/p>\n<ul>\n<li><strong>comfyui-faceaging\u63d2\u4ef6\u5730\u5740<\/strong>\uff1ahttps:\/\/github.com\/leadbreak\/comfyui-faceaging<\/li>\n<li><strong>\u73af\u5883\u8981\u6c42<\/strong>\uff1aLinux \u6216 macOS\u7cfb\u7edf\uff08window\u9700\u5f85\u6d4b\u8bd5\uff09\u3002NVIDIA GPU + CUDA CuDNN\uff08\u9700\u8981GPU\u652f\u6301\uff0c\u6846\u67b6\u672a\u5185\u7f6eCPU\u652f\u6301\uff09\uff1bPython3\u73af\u5883\u3002<\/li>\n<li><strong>\u4f9d\u8d56\u73af\u5883\u5b89\u88c5<\/strong>\uff1a\u542f\u52a8\u547d\u4ee4\u884c\u5b89\u88c5\u5bf9\u5e94\u4f9d\u8d56\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/li>\n<\/ul>\n<p>sudo\u00a0apt-get\u00a0install\u00a0cmake<br \/>\npip\u00a0install\u00a0dlib ninja<\/p>\n<ul>\n<li><strong>\uff08\u53ef\u9009\uff09WSL2\u4e2d\u8be5\u8bbe\u7f6e CUDA\u73af\u5883<\/strong>\uff1a\u547d\u4ee4\u5982\u4e0b\u6240\u793a\uff1a<\/li>\n<\/ul>\n<p>sudo\u00a0apt\u00a0install\u00a0nvidia-cuda-toolkit<\/p>\n<ul>\n<li><strong>\u4e0b\u8f7d\u5bf9\u5e94\u6a21\u578b<\/strong>\uff1a\u9700\u8981\u4e0b\u8f7d\u6a21\u578b<strong>sam_ffhq_aging.pt<\/strong>\u00a0\u548c\u00a0<strong>shape_predictor_68_face_landmarks.dat<\/strong>\u5230\u76ee\u5f55<strong>ComfyUI\/models\/face_aging<\/strong>\u3002\u5bf9\u5e94\u547d\u4ee4\u5982\u4e0b\u6240\u793a\uff1a<strong>sam_ffhq_aging.pt\uff1a\u00a0<\/strong>https:\/\/drive.usercontent.google.com\/download?id=1XyumF6_fdAxFmxpFcmPf-q84LU_22EMC&amp;export=download&amp;authuser=0\u00a0 \uff1b<strong>shape_predictor_68_face_landmarks.dat<\/strong>\uff1ahttps:\/\/github.com\/italojs\/facial-landmarks-recognition\/raw\/master\/shape_predictor_68_face_landmarks.dat<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22668\" title=\"8c62d703j00smi9n8000id000lo0076p\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/11\/8c62d703j00smi9n8000id000lo0076p.jpg\" alt=\"8c62d703j00smi9n8000id000lo0076p\" width=\"780\" height=\"258\" \/><\/p>\n<p>Flux\u6587\u751f\u56fe\u5de5\u4f5c\u6d41<\/p>\n<p>Flux\u6587\u751f\u56fe\u611f\u5174\u8da3\u7684\u540c\u5b66\u53ef\u53c2\u8003LIBLIB\u5728\u7ebf\u8fd0\u884c\u5de5\u4f5c\u6d41\uff1aFLUX[\u7eed\u7bc7]\uff1a12B\u53c2\u657023G\u6700\u5927\u5f00\u6e90\u6587\u751f\u56fe\u6a21\u578b\uff0cDev\u7248\u76f4\u51fa\u60ca\u8273\u7f8e\u56fe\u6b23\u8d4f<\/p>\n<p>\u672c\u6587\u6d89\u53caComfyUI\u5de5\u4f5c\u6d41\u548c\u6a21\u578b\u5747\u53ef\u5728LIBLIBAI\u4e0a\u4e0b\u8f7d\u6216\u5728\u7ebf\u8fd0\u884c\u4f53\u9a8c\uff1a<\/p>\n<p>\u2022\u00a0FLUX.1\u54e9\u5e03\u5728\u7ebf\u53ef\u8fd0\u884c-\u9ed1\u6697\u68ee\u6797\u5de5\u4f5c\u5ba4\uff1a<\/p>\n<p>https:\/\/www.liblib.art\/modelinfo\/488cd9d58cd4421b9e8000373d7da123<\/p>\n<p>\u2022\u00a0F.1-\u7eee\u68a6\u6d41\u5149-\u6c34\u6e44\u51dd\u9999\uff1a<\/p>\n<p>https:\/\/www.liblib.art\/modelinfo\/134c6dd95aef48e98a22b24e003e026b<\/p>\n<p>\u2022\u00a0\u5de5\u4f5c\u6d41-Flux\u6587|\u56fe\u751f\u56fe+LORA+\u63d0\u793a\u53cd\u63a8\u4e00\u952e\u5207\u6362\u5de5\u4f5c\u6d41\uff1a<\/p>\n<p>https:\/\/www.liblib.art\/modelinfo\/782aacd70f604da39e83368c696a02a8<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22667\" title=\"4500be5bj00smi9lv001yd000u000jdm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/11\/4500be5bj00smi9lv001yd000u000jdm.jpg\" alt=\"4500be5bj00smi9lv001yd000u000jdm\" width=\"1080\" height=\"697\" \/><\/p>\n<p>Face Aging\u5de5\u4f5c\u6d41<\/p>\n<p><strong>Face Aging<\/strong>\u5de5\u4f5c\u6d41\u5df2\u4e0a\u4f20<strong>LIBLIB\u5e73\u53f0<\/strong>\u53ef\u4e0b\u8f7d\u5730\u5740\uff1ahttps:\/\/www.liblib.art\/modelinfo\/33cdec2c32634338a4e530414e29b564?versionUuid=7d466ce3533b424880622b7b09484aac<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22669\" title=\"9389ac72j00smi9np001xd000u000jlp\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/11\/9389ac72j00smi9np001xd000u000jlp.jpg\" alt=\"9389ac72j00smi9np001xd000u000jlp\" width=\"1080\" height=\"705\" \/><\/p>\n<p><strong>\u6ce8\u610f<\/strong>\uff1a\u8fd9\u91cc\u5bf9\u5c5e\u4e8e\u56fe\u50cf\u6709\u4e00\u5b9a\u8981\u6c42\uff0c\u5e76\u4e0d\u662f\u6240\u6709\u56fe\u50cf\u90fd\u80fd\u5f88\u597d\u5c55\u73b0\u6548\u679c\uff08\u6d4b\u8bd5\u4e2d\u8bc1\u7167\u6548\u679c\u6700\u597d\uff09\u3002\u5f53\u524d\u5c5e\u4e8e\u5a31\u4e50\u56fe\u50cf\u6d41\u3002<\/p>\n<p>1.Flux\u6587\u751f\u56fe<\/p>\n<p>pl, real photo\uff0cThe image is a high-resolution photograph, A photograph of a beautiful Asian girl in school uniform,with a solid blue background,in the style of ID photography. She has medium-length hair,a round face shape,and is wearing a white shirt,tie,and black blazer. Her makeup is simple,and she has a gentle,youthful smile with a natural expression.,<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22670\" title=\"7f8a855dj00smi9ql001qd000ow00u9p\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/11\/7f8a855dj00smi9ql001qd000ow00u9p.jpg\" alt=\"7f8a855dj00smi9ql001qd000ow00u9p\" width=\"896\" height=\"1089\" \/><\/p>\n<p>2.\u5e74\u9f84\u8f6c\u6362<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22671\" title=\"68fb6246j00smi9q3000zd000ki00bqp\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/11\/68fb6246j00smi9q3000zd000ki00bqp.jpg\" alt=\"68fb6246j00smi9q3000zd000ki00bqp\" width=\"738\" height=\"422\" \/><\/p>\n<p>3.\u66f4\u591a\u6f14\u793a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22672\" title=\"1e38bd09j00smi9z9000yd000kn00bhp\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/11\/1e38bd09j00smi9z9000yd000kn00bhp.jpg\" alt=\"1e38bd09j00smi9z9000yd000kn00bhp\" width=\"743\" height=\"413\" \/><\/p>\n<p>\u6574\u4f53\u6548\u679c\u5bf9\u8f93\u5165\u56fe\u50cf\u6709\u4e00\u5b9a\u8981\u6c42\uff0c\u6b64\u5de5\u4f5c\u6d41\u76ee\u524d\u8fd8\u5904\u4e8e\u4ec5\u4f5c\u4e3a\u4f9b\u5a31\u4e50\u4f7f\u7528\u3002\u6700\u540e\uff0c\u9762\u5bf9\u672a\u6765\uff1a\u552f\u6709\u73cd\u60dc\u5f53\u4e0b\uff0c\u4e0d\u8d1f\u6b64\u751f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today's topic introduces a state-of-the-art Age Transformation framework, SAM, which is a framework for demonstrating the process of changing the look and appearance of an individual character over time as the character ages. The framework encodes real facial images directly into the latent space of a pre-trained unconditional GAN (e.g., StyleGAN), controlled by a given age offset. A pre-trained age regression network is also used, explicitly guiding the encoder to generate potential encodings corresponding to the desired age.The SAM approach treats the successive ageing process as a regression task between the input age and the desired target age, providing fine-grained control of the generated images. Furthermore, unlike other methods that operate only in the latent space and use a priori control of the age path, the SAM<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[144],"tags":[1989,4868,4869,223],"collection":[],"class_list":["post-22663","post","type-post","status-publish","format-standard","hentry","category-baike","tag-comfyui","tag-faceaging","tag-4869","tag-223"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/22663","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=22663"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/22663\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=22663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=22663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=22663"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=22663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}