{"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>Today's article topic introduces one of the latest<strong>Age Transformation<\/strong>Framing:<strong>SAM<\/strong>. This is a process framework that can demonstrate the process of changing the look and appearance of an individual character over time as the character transforms with age. 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. It also uses a pre-trained<strong>Age Regression Network<\/strong>, explicitly instructing the encoder to generate potential codes corresponding to the desired age.<strong>SAM<\/strong>methods treat successive age processes as regression tasks between the input age and the desired target age, providing fine-grained control over the generated images. Furthermore, unlike other methods that operate only in potential space and use a priori control of the age paths, the<strong>SAM<\/strong>method more decoupled and nonlinear paths. The end-to-end nature of the method, coupled with the rich semantic potential space of StyleGAN, allows for further editing of the generated images.<\/p>\n<ul>\n<li>github: https:\/\/github.com\/yuval-alaluf\/SAM<\/li>\n<li>Online experience: https:\/\/replicate.com\/yuval-alaluf\/sam<\/li>\n<li>Technical paper: https:\/\/arxiv.org\/abs\/2102.02754<\/li>\n<\/ul>\n<p>Case Demonstration<\/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>The community already has<strong>comfyui-<a href=\"https:\/\/www.1ai.net\/en\/tag\/faceaging\" title=\"[sees articles with [faceaging] labels]\" target=\"_blank\" >faceaging<\/a><\/strong>of<a href=\"https:\/\/www.1ai.net\/en\/tag\/comfyui\" title=\"_Other Organiser\" target=\"_blank\" >ComfyUI<\/a><a href=\"https:\/\/www.1ai.net\/en\/tag\/%e6%8f%92%e4%bb%b6\" title=\"[See articles with [plug-in] labels]\" target=\"_blank\" >Plugins<\/a>Supported, the plugin can support\u00a0<strong>-100 to +100 (-50 to +100 recommended)<\/strong>\u00a0Age of the conversion straight out of the image. The plugin can be installed via git in the plugin manager.<\/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-facing plugin address<\/strong>:: https:\/\/github.com\/leadbreak\/comfyui-faceaging<\/li>\n<li><strong>Environmental requirements<\/strong>Linux or macOS (window needs to be tested). NVIDIA GPU + CUDA CuDNN (GPU support is required, the framework does not have built-in CPU support); Python3 environment.<\/li>\n<li><strong>Dependent Environment Installation<\/strong>: Start the command line to install the corresponding dependency with the following command:<\/li>\n<\/ul>\n<p>sudo apt-get install cmake<br \/>\npip install dlib ninja<\/p>\n<ul>\n<li><strong>(Optional) The CUDA environment should be set up in WSL2.<\/strong>: The command is shown below:<\/li>\n<\/ul>\n<p>sudo apt install nvidia-cuda-toolkit<\/p>\n<ul>\n<li><strong>Download the corresponding model<\/strong>: Need to download the model<strong>sam_ffhq_aging.pt<\/strong>\u00a0and\u00a0<strong>shape_predictor_68_face_landmarks.dat<\/strong>To the catalog<strong>ComfyUI\/models\/face_aging<\/strong>The corresponding commands are shown below. The corresponding commands are shown below:<strong>sam_ffhq_aging.pt:\u00a0<\/strong>https:\/\/drive.usercontent.google.com\/download?id=1XyumF6_fdAxFmxpFcmPf-q84LU_22EMC&amp;export=download&amp;authuser=0 ;<strong>shape_predictor_68_face_landmarks.dat<\/strong>:: https:\/\/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 Wensheng Diagram Workflow<\/p>\n<p>Flux Vinyl Chart interested students can refer to LIBLIB online running workflow : FLUX [Continued] : 12B parameters 23G largest open source Vinyl Chart model , Dev version straight out of the stunning beauty to enjoy!<\/p>\n<p>The ComfyUI workflow and models mentioned in this article can be downloaded on LIBLIBAI or run online for experience:<\/p>\n<p>- FLUX.1 miles of cloth is available to run online - Dark Forest Studios:<\/p>\n<p>https:\/\/www.liblib.art\/modelinfo\/488cd9d58cd4421b9e8000373d7da123<\/p>\n<p>- F.1 - Cherry Dreams and Flowing Lights - Watery Mekong Geling Fragrance:<\/p>\n<p>https:\/\/www.liblib.art\/modelinfo\/134c6dd95aef48e98a22b24e003e026b<\/p>\n<p>- Workflow - Flux text | graphs to generate graphs + LORA + prompts backpropagation one-click switch workflow:<\/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 Workflow<\/p>\n<p><strong>Face Aging<\/strong>Workflow uploaded<strong>LIBLIB Platform<\/strong>Available for download at: https:\/\/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>Notice<\/strong>: There are some requirements for belonging to images here, not all images show the effect well (the license photo worked best in the test). Currently belongs to the entertainment image stream.<\/p>\n<p>1.Flux Vincennes<\/p>\n<p>pl, real photo, The image is a high-resolution photograph, A photograph of a beautiful Asian girl in school uniform,with a solid blue background,in the 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. Her makeup is simple, and she has a gentle,youthful smile with a natural expression.,,\" she says.<\/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. Age conversion<\/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. More demos<\/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>The overall effect is a requirement for input images, and this workflow is currently in a position to be used only for entertainment purposes. Finally, facing the future: the only way to live up to this life is to cherish the present.<\/p>","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":{"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}]}}