{"id":16102,"date":"2024-07-22T09:03:00","date_gmt":"2024-07-22T01:03:00","guid":{"rendered":"https:\/\/www.1ai.net\/?p=16102"},"modified":"2024-07-22T09:03:00","modified_gmt":"2024-07-22T01:03:00","slug":"%e5%9b%be%e7%89%87%e7%94%9f%e6%88%90ai%e6%95%b0%e5%ad%97%e4%ba%ba%e8%a7%86%e9%a2%91%ef%bc%8c%e6%89%8b%e6%8a%8a%e6%89%8b%e6%95%99%e4%bd%a0%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8liveportrait%ef%bc%8c","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/16102.html","title":{"rendered":"Generate AI digital human videos from pictures, and teach you step by step how to use LivePortrait. No local setup is required, and it\u2019s free!"},"content":{"rendered":"<p data-pm-slice=\"0 0 []\">You are still waiting<a href=\"https:\/\/www.1ai.net\/en\/tag\/%e5%8f%af%e7%81%b5\" title=\"[Sees articles with [clinic] labels]\" target=\"_blank\" >Keling<\/a>of<a href=\"https:\/\/www.1ai.net\/en\/tag\/ai%e8%a7%86%e9%a2%91\" title=\"[View articles tagged with [AI Video]]\" target=\"_blank\" >AI Video<\/a>Apply?<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16103\" title=\"get-623\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-623.jpg\" alt=\"get-623\" width=\"596\" height=\"377\" \/><\/div>\n<p data-track=\"103\">While you are waiting, read this article first.<a href=\"https:\/\/www.1ai.net\/en\/tag\/%e5%bc%80%e6%ba%90\" title=\"[View articles tagged with [open source]]\" target=\"_blank\" >Open Source<\/a>Be<a href=\"https:\/\/www.1ai.net\/en\/tag\/liveportrait\" title=\"[Sees articles with [LivePortrait] label]\" target=\"_blank\" >LivePortrait<\/a>!<\/p>\n<p data-track=\"104\">This article will teach you how to use LivePortrait.<strong>No local setup required, and it\u2019s free!<\/strong><\/p>\n<p data-track=\"105\"><strong>Long article warning \ud83d\udea8\ud83d\udea8<\/strong><\/p>\n<p data-track=\"106\"><strong>First, let\u2019s learn about LivePortrait<\/strong><\/p>\n<p class=\"pgc-p\" data-track=\"108\">LivePortrait is simply<strong>&quot;Expression Migration&quot;<\/strong>That is, provide a picture and a reference video, and through LivePortrait&#039;s AI calculation, you can replicate the facial expressions and movements of the reference video onto the picture exactly.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16105\" title=\"get-625\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-625.jpg\" alt=\"get-625\" width=\"875\" height=\"362\" \/><\/div>\n<p data-track=\"109\">Image from LivePortrait white paper<\/p>\n<p data-track=\"110\">I won&#039;t go into too much detail about the complicated theoretical knowledge here.<strong>Breaking Through the Information Gap has always been based on the main operating concepts of &quot;actual combat&quot;, &quot;practical&quot; and &quot;dry goods&quot;<\/strong>.<\/p>\n<p data-track=\"111\">Next, I will introduce two methods of using LivePortrait online, and you can choose according to your needs.<\/p>\n<p data-track=\"112\"><strong>Method 1<\/strong><\/p>\n<p data-track=\"113\"><strong>Huggingface<\/strong><\/p>\n<p data-track=\"114\">Since the outbreak of AI, Huggingface has been a leading product in the open source community. Everyone should know about it, so I won\u2019t introduce it in detail here.<\/p>\n<p data-track=\"115\">Huggingface online experience link:<\/p>\n<p data-track=\"116\"><u>https:\/\/huggingface.co\/spaces\/KwaiVGI\/LivePortrait<\/u><\/p>\n<p data-track=\"117\">Select Huggingface<strong>advantage<\/strong>:<\/p>\n<ul>\n<li data-track=\"118\">Clear interface<\/li>\n<li data-track=\"119\">Easy to operate<\/li>\n<li data-track=\"120\">Runs quickly, no need to wait too long to get results<\/li>\n<li data-track=\"121\">Has image editing function<\/li>\n<\/ul>\n<p data-track=\"123\">Huggingface<strong>shortcoming<\/strong>:<\/p>\n<ul>\n<li data-track=\"124\">As an online trial experience,<strong>Cannot generate long videos<\/strong>I&#039;m trying it out now.<strong>most<\/strong>Only<strong>Generate \u2264 9 seconds<\/strong>Video.<\/li>\n<li data-track=\"125\">Video without sound<\/li>\n<\/ul>\n<p data-track=\"127\">But it\u2019s enough as a trial experience!<\/p>\n<p data-track=\"128\"><strong>Huggingface LivePortrait Tutorial<\/strong><\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16104\" title=\"get-624\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-624.jpg\" alt=\"get-624\" width=\"1080\" height=\"813\" \/><\/div>\n<p data-track=\"129\">Huggingface LivePortrait interface<\/p>\n<ul>\n<li data-track=\"130\">exist <strong>\u2460<\/strong> Upload the file you want to create<strong>picture<\/strong>, no limit on the image ratio, 1:1, 16:9, 3:4, etc. are all OK! LivePortrait only recognizes and edits faces.<\/li>\n<li data-track=\"131\">exist <strong>\u2461<\/strong> Upload the facial movements you want<strong>video<\/strong>The problem is that, as I mentioned earlier, Huggingface&#039;s LivePortrait can only produce videos of up to 9 seconds, so if your reference video is longer, you may have to make a compromise and cut out a 9-second video and upload it.<\/li>\n<\/ul>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16106\" title=\"get-626\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-626.jpg\" alt=\"get-626\" width=\"1080\" height=\"616\" \/><\/div>\n<p data-track=\"134\">Uploaded<strong>\u2460<\/strong>and<strong>\u2461<\/strong>After that, you can click the [\ud83d\ude80Animate] button and wait for the production<\/p>\n<p>exist <strong>\u2462<\/strong> You will see the single image video that has been created.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16107\" title=\"get-627\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-627.jpg\" alt=\"get-627\" width=\"600\" height=\"395\" \/><\/div>\n<p>exist <strong>\u2463<\/strong> The official has thoughtfully made a comparison video for you.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16111\" title=\"get-631\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-631.jpg\" alt=\"get-631\" width=\"600\" height=\"200\" \/><\/div>\n<p data-track=\"140\">If you scroll down, you will find another module.<strong>Retargeting<\/strong><\/p>\n<p data-track=\"141\">Retargeting is a tool for editing facial expressions in images individually<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16108\" title=\"get-628\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-628.jpg\" alt=\"get-628\" width=\"1080\" height=\"547\" \/><\/div>\n<p data-track=\"142\">exist <strong>\u2460<\/strong> You can adjust the degree of eye opening from 0 to 0.8. 0.8 means eyes are fully open, and 0 means eyes are closed.<\/p>\n<p data-track=\"143\">exist<strong> \u2461<\/strong> You can adjust the mouth opening range at 0-0.8.<\/p>\n<p data-track=\"144\">exist <strong>\u2462<\/strong> Upload the picture you want to adjust, and there is no limit on the picture ratio<\/p>\n<p data-track=\"145\">exist <strong>\u2463<\/strong> At this point, the processing result of a single face can be obtained<\/p>\n<p data-track=\"146\">exist<strong> \u2464<\/strong> The overall effect of the image after processing can be obtained<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16109\" title=\"get-629\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-629.jpg\" alt=\"get-629\" width=\"1080\" height=\"383\" \/><\/div>\n<p data-track=\"147\">You can take a look at the comparison under different Ratios. The adjustment of parameters for eyes and mouth is very obvious, and it is very playable.<\/p>\n<p data-track=\"148\"><strong>Method 2<\/strong><\/p>\n<p data-track=\"149\"><strong>Google Colab<\/strong><\/p>\n<p data-track=\"150\">This overseas expert directly put the code on Github into Google Colab, which is also an online operation.<\/p>\n<p data-track=\"151\">I had never used Google Colab before, and after searching in vain, I went to Reddit and had a close conversation with a master (shamelessly asking for advice) and learned how to use LivePortrait on this Colab<\/p>\n<p data-track=\"152\">Google Colab online experience link:<\/p>\n<p data-track=\"153\"><u>https:\/\/t.co\/Kn10Aqxm7R<\/u><\/p>\n<p data-track=\"154\">Select Google Colab<strong>advantage<\/strong>:<\/p>\n<ul>\n<li data-track=\"155\">Videos can be made and referenced<strong>Equal duration<\/strong>Videos<\/li>\n<li data-track=\"156\">The generated video directly quotes the reference<strong>Video and Audio<\/strong><\/li>\n<\/ul>\n<p data-track=\"158\">Google Colab<strong>shortcoming<\/strong>:<\/p>\n<ul>\n<li data-track=\"159\">Slightly more complicated to operate<\/li>\n<li data-track=\"160\">The free version may be limited by Google GPU (if so, just come back the next day)<\/li>\n<\/ul>\n<p data-track=\"162\"><strong>Google Colab LivePortrait Tutorial<\/strong><\/p>\n<p data-track=\"163\">You need to prepare a Google account before using Google Colab<\/p>\n<p data-track=\"164\"><strong>1. Setup<\/strong><\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16110\" title=\"get-630\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-630.jpg\" alt=\"get-630\" width=\"1080\" height=\"557\" \/><\/div>\n<p data-track=\"165\">Don\u2019t be afraid when you first enter the Colab page. It\u2019s actually not complicated at all.<\/p>\n<p data-track=\"166\">Directly click the [Run Button] marked in the red box above, and the following prompt will appear<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16112\" title=\"get-632\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-632.jpg\" alt=\"get-632\" width=\"795\" height=\"257\" \/><\/div>\n<p data-track=\"167\">Click [Run Anyway] and Colab will automatically run the code. You don\u2019t need to worry about what happens and you don\u2019t need to do anything. It will be displayed after it finishes running, as shown in the figure below.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16113\" title=\"get-633\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-633.jpg\" alt=\"get-633\" width=\"1045\" height=\"704\" \/><\/div>\n<p data-track=\"168\">It will display &quot;47 seconds&quot; to complete. As long as your internet speed is normal, the first step of Setup will be completed within 1 minute.<\/p>\n<p data-track=\"169\"><strong>2. Inference<\/strong><\/p>\n<p data-track=\"170\">The second step is how to upload pictures and videos, which is the most complicated part (actually not complicated, just be patient)<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16114\" title=\"get-634\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-634.jpg\" alt=\"get-634\" width=\"1080\" height=\"557\" \/><\/div>\n<p data-track=\"171\">When we use Colab, because it is running online, we need to upload pictures and videos to Colab. Let&#039;s take a look at the overall operation interface:<\/p>\n<p data-track=\"172\">exist <strong>\u2460<\/strong> Paste the image path<\/p>\n<p data-track=\"173\">exist <strong>\u2461<\/strong> Paste the path of the reference action video<\/p>\n<p data-track=\"174\">exist <strong>\u2462 <\/strong>You can upload files, pictures and videos at any size, with no limit on the ratio.<\/p>\n<p data-track=\"175\">So how should the file be uploaded? Where should it be uploaded to? Please see the picture below\ud83d\udc47<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16115\" title=\"get-635\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-635.jpg\" alt=\"get-635\" width=\"1080\" height=\"442\" \/><\/div>\n<p data-track=\"176\">After clicking [Folder], search according to the following path<\/p>\n<p data-track=\"177\"><strong>contact-LivePortrait-assets-examples<\/strong><\/p>\n<p data-track=\"178\">You will see two folders<strong>\u3010driving\u3011<\/strong>and<strong>\u3010source\u3011<\/strong><\/p>\n<p data-track=\"179\">\u3010driving\u3011Folder, used to place<strong>video<\/strong><\/p>\n<p data-track=\"180\">[source] folder, used to place<strong>picture<\/strong><\/p>\n<p data-track=\"181\"><strong>Direct drag and drop<\/strong>You can upload files, which is very convenient.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16116\" title=\"get-636\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-636.jpg\" alt=\"get-636\" width=\"362\" height=\"492\" \/><\/div>\n<p data-track=\"182\">After uploading the video\/picture, we need<strong>copy<\/strong>Material<strong>path<\/strong><\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16117\" title=\"get-637\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-637.jpg\" alt=\"get-637\" width=\"1080\" height=\"557\" \/><\/div>\n<p data-track=\"183\">Select the material directly, then right-click and click<strong>\u3010Copy path\u3011<\/strong>, paste the material path into the corresponding box.<\/p>\n<p data-track=\"184\">The master has put a lot of materials provided by the official Github in these two folders, and everyone can play with them directly.<\/p>\n<p data-track=\"185\">After placing the material path, click the [Run button] corresponding to Inference and wait for AI calculation.<\/p>\n<p data-track=\"186\">The running time of the Inference step is calculated based on the length of the video you provide. The longer the reference video is, the longer it will run.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16118\" title=\"get-638\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-638.jpg\" alt=\"get-638\" width=\"1080\" height=\"557\" \/><\/div>\n<p data-track=\"187\">The reference video above is 11 seconds long and has a running time of 1 minute, which is acceptable.<\/p>\n<p data-track=\"188\"><strong>3. Display Result<\/strong><\/p>\n<p data-track=\"189\">After the second step is completed, no video will be displayed. You need to click the [Run button] in the third step Display Result.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16119\" title=\"get-639\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-639.jpg\" alt=\"get-639\" width=\"839\" height=\"435\" \/><\/div>\n<p data-track=\"193\">According to my tests, a 30-second reference video usually takes about 2 to 4 minutes to run. The usage of the cloud GPU and your own network speed at the time will also affect the running time.<\/p>\n<p data-track=\"195\">I selected the same reference video (30 seconds) in Colab. Colab was able to generate the entire 30 seconds (with background sound), while Huggingface could only generate up to 9 seconds (without background sound).<\/p>\n<p data-track=\"196\">Regarding the disadvantage mentioned above that &quot;the free version may be limited by Google GPU&quot;, I personally tried it for more than a week and only encountered GPU limitations once, so you don\u2019t need to worry too much, Colab is still very stable.<\/p>\n<p data-track=\"197\"><strong>Key Tips<\/strong><\/p>\n<p data-track=\"198\">Currently, the online LivePortrait only supports human faces, which means that if you upload a portrait of an anthropomorphic animal, an error will be reported.<\/p>\n<p data-track=\"199\">If you want to deploy LivePortrait locally yourself, you can go to the official Github homepage<\/p>\n<p data-track=\"200\">Official Github homepage link:<\/p>\n<p data-track=\"201\"><u>https:\/\/github.com\/KwaiVGI\/LivePortrait<\/u><\/p>\n<p data-track=\"203\">The above are two methods that allow you to use the LivePortrait feature of Keling AI video without waiting for Keling&#039;s review. My suggestion is to use the two together (they are both free anyway)<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Are you still waiting hard for Korin's AI video application? While you're waiting, check out this article first, Racer Kerin open-sourced LivePortrait! This content shows you how to use LivePortrait by hand, with no need to build locally, and it's free! Long warning \ud83d\udea8\ud83d\udea8 First understand LivePortrait LivePortrait is simply \"expression migration\", that is, to provide a picture, a reference video, through LivePortrait's AI computing The AI algorithm of LivePortrait can then reproduce the expression movement of the reference video onto the image in its original form. Image from the LivePortrait white paper We won't go into the complexities of the theory here, after all, \"Breaking the Information Gap\" has always been the most important part of<\/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":[165,956,3266,2957,219,934],"collection":[],"class_list":{"0":"post-16102","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-jiaocheng","7":"category-baike","8":"tag-ai","10":"tag-liveportrait","11":"tag-2957","12":"tag-219","13":"tag-934"},"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/16102","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=16102"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/16102\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=16102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=16102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=16102"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=16102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}