{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/liveportrait-efficient-portrait-animation","title":"LivePortrait: Efficient Portrait Animation with Stitching and Retargeting Control","arxiv_id":"2407.03168","date":"2024-07-03","proceeding":null,"authors":["Jianzhu Guo","Dingyun Zhang","Xiaoqiang Liu","Zhizhou Zhong","Yuan Zhang","Pengfei Wan","Di Zhang"],"abstract":"Portrait Animation aims to synthesize a lifelike video from a single source image, using it as an appearance reference, with motion (i.e., facial expressions and head pose) derived from a driving video, audio, text, or generation. Instead of following mainstream diffusion-based methods, we explore and extend the potential of the implicit-keypoint-based framework, which effectively balances computational efficiency and controllability. Building upon this, we develop a video-driven portrait animation framework named LivePortrait with a focus on better generalization, controllability, and efficiency for practical usage. To enhance the generation quality and generalization ability, we scale up the training data to about 69 million high-quality frames, adopt a mixed image-video training strategy, upgrade the network architecture, and design better motion transformation and optimization objectives. Additionally, we discover that compact implicit keypoints can effectively represent a kind of blendshapes and meticulously propose a stitching and two retargeting modules, which utilize a small MLP with negligible computational overhead, to enhance the controllability. Experimental results demonstrate the efficacy of our framework even compared to diffusion-based methods. The generation speed remarkably reaches 12.8ms on an RTX 4090 GPU with PyTorch. The inference code and models are available at https://github.com/KwaiVGI/LivePortrait","url_abs":"https://arxiv.org/abs/2407.03168v1","url_pdf":"https://arxiv.org/pdf/2407.03168v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"liveportrait-efficient-portrait-animation","repo_url":"https://github.com/KwaiVGI/LivePortrait","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}}],"tasks":[{"task_slug":"computational-efficiency","task_name":"Computational Efficiency"},{"task_slug":"face-reenactment","task_name":"Face Reenactment"},{"task_slug":null,"task_name":"GPU"},{"task_slug":"image-animation","task_name":"Image Animation"},{"task_slug":"portrait-animation","task_name":"Portrait Animation"},{"task_slug":"video-generation","task_name":"Video Generation"}],"methods":[{"method_slug":"focus","method_name":"Focus"},{"method_slug":"speed","method_name":"SPEED"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2407.03168","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.03168"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/KwaiVGI/LivePortrait","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"ran":4},"by_repo_kind":{"official":{"samples":4,"ran":4,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":4,"samples":[{"code_sha256_prefix":"516793c0e2018261","entry":"make_abs_path","repo":"KwaiVGI/LivePortrait","repo_kind":"official","path":"src/live_portrait_pipeline.py","file_url":"https://github.com/KwaiVGI/LivePortrait/blob/HEAD/src/live_portrait_pipeline.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"516793c0e2018261"}},{"code_sha256_prefix":"9d6d919d3140d1a0","entry":"measure_inference_times","repo":"KwaiVGI/LivePortrait","repo_kind":"official","path":"speed.py","file_url":"https://github.com/KwaiVGI/LivePortrait/blob/HEAD/speed.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"9d6d919d3140d1a0"}},{"code_sha256_prefix":"ef90651915699928","entry":"partial_fields","repo":"KwaiVGI/LivePortrait","repo_kind":"official","path":"app_animals.py","file_url":"https://github.com/KwaiVGI/LivePortrait/blob/HEAD/app_animals.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"ef90651915699928"}},{"code_sha256_prefix":"69f91d429cf29b9b","entry":"update_args","repo":"KwaiVGI/LivePortrait","repo_kind":"official","path":"src/gradio_pipeline.py","file_url":"https://github.com/KwaiVGI/LivePortrait/blob/HEAD/src/gradio_pipeline.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"69f91d429cf29b9b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}