LivePortrait GitHub is a free, open-source tool that takes a single portrait photo and a short video of a real face, and makes the photo move exactly like that face — blinking, smiling, talking, turning its head — so a still picture becomes a short lifelike clip. It comes from Kuaishou’s research team, the people behind Kling, and it is fast enough to feel like magic: about 12.8 milliseconds per frame on a strong graphics card. This is Part 18 of our Famous GitHub Repos series. (Missed Part 17? Here is our Bolt.diy guide: https://webnexa.nl/bolt-diy-github-guide/ — another self-hosted AI tool where you bring your own setup and stay in control.)

Key Takeaways
- LivePortrait GitHub animates one portrait photo with the expressions and head movements of a driving video — people, paintings, even cats and dogs.
- It is video-driven, not audio-driven: you need a short clip of a face moving, not just a voice recording.
- It is remarkably fast — 12.8ms per frame on an RTX 4090 — so a clip renders in seconds, not minutes.
- The code is free under the MIT license, but the face-detection models bundled with it are for non-commercial research only — read the licence note before using it for paid work.
Quick Facts
- Project: LivePortrait, on GitHub at KlingAIResearch/LivePortrait
- What it is: a free, open-source framework that animates a still portrait from a driving video
- Stars: 19,538 (verified live on GitHub 20 November 2026)
- Forks: 2,039 (verified live on GitHub 20 November 2026)
- Released: July 2024, by Kuaishou Technology (paper arXiv:2407.03168)
- License: MIT for the code — InsightFace models non-commercial research only, X-Pose non-commercial scientific research only
- Latest release: No formal GitHub releases — latest code is on the main branch (verified live 20 November 2026, the Releases page is empty)
- Language: Python, built on PyTorch
- Needs: Python 3.10 and a GPU for comfortable local use (a CPU will work, but slowly)
- Price: free to use; try it in the browser first with no install at all
What Is LivePortrait GitHub, in Simple Words?
LivePortrait GitHub separates two things that normally come glued together: what a face looks like, and what a face does. You give it a source portrait — a photo, a painting, a 3D render, even a sculpture — and a driving video of a real person moving their face. LivePortrait GitHub reads the motion from the driving video and paints it onto your portrait, frame by frame, while keeping the portrait’s own look intact. The person in the photo keeps their face, their style, their lighting. They just borrow somebody else’s expressions.
The classic demo is three old paintings that glance around, smile and talk. The same trick works on a family photo, a profile picture, a cartoon character, or your cat. The project page shows all of it, and the reason it went viral within days of release is that the results look genuinely alive — not the wobbly, melting-face animation people expected from a free tool in 2024.
It is also the tool behind a lot of talking-head videos you have already seen without knowing it. The README says the method is used as a portrait-animation solution by major video platforms — Kuaishou, Douyin, Jianying and WeChat Channels — which is a strong sign it was built for real use, not just for a research paper.
How to Use LivePortrait GitHub
The fastest way to try it needs no install at all. Open the official Hugging Face Space for LivePortrait GitHub, upload a portrait photo on one side and a short driving video on the other, and press Animate. You get a result in the browser, free, and you learn in two minutes whether the tool does what you want.
If you like it, install it locally. It takes a little setup, but the steps are straightforward if you have used Python before.
- Clone LivePortrait GitHub with git clone https://github.com/KlingAIResearch/LivePortrait.git, then open the folder
- Create a Python 3.10 environment — conda create -n LivePortrait python=3.10, then conda activate LivePortrait — and install the requirements
- Download the pretrained weights with huggingface-cli into the pretrained_weights folder, as the README explains
- Run the Gradio app with python app.py — upload a source image on the left, a driving video on the right, then press Animate
- Or skip the app and run one clip from the command line with python inference.py, passing your photo as the source and your clip as the driving video
A good driving video matters more than a good computer. Record a short clip of yourself facing the camera, in decent light, moving naturally — a smile, a nod, a few words. The portrait will copy exactly that. A shaky, dark or half-hidden driving face gives you a shaky, dark result, no matter how good the photo is.
There is also a ComfyUI version for people who already build image and video workflows in ComfyUI, so LivePortrait GitHub drops into an existing pipeline instead of living on its own.
LivePortrait GitHub Features That Matter
Speed is the headline feature, and it is real. LivePortrait GitHub generates each frame in about 12.8 milliseconds on an RTX 4090 with PyTorch — twenty to thirty times faster than the diffusion-based methods it replaced. That speed is what makes it practical: you can try ten driving videos in the time an older tool needed for one, and you can iterate until the motion looks right instead of accepting the first result.
Stitching is the quiet feature that makes the videos watchable. When a head turns or leans, most animation tools leave a gap at the edge of the frame or stretch the background oddly. LivePortrait GitHub stitches the moving portrait back into the frame cleanly, so the clip looks like a real recording instead of a face pasted onto a background.
Retargeting control is the feature for people who want precision. You can control how much of the driving motion transfers to the portrait — full expressions for a dramatic effect, or a gentler version when the driving video is exaggerated and the portrait should stay calm. The paper’s title promises exactly this: efficient portrait animation with stitching and retargeting control.
The animal mode is the fun one, and it is not a gimmick. LivePortrait GitHub animates cats and dogs too, with their own motion model, and a later update improved animal results further. A pet photo that blinks and tilts its head at the camera is the kind of clip people share without being asked — and for a creator, that is free reach.
LivePortrait GitHub vs Audio-Driven Talking Heads: Which One Should You Pick?
This is the honest distinction, and it decides whether LivePortrait GitHub is the right tool for you. LivePortrait GitHub is video-driven: it needs a real video of a face moving. It does not listen to audio and invent the mouth movements from sound. If you have a voice recording and no video, this is not the tool — look at an audio-driven talking-head model instead, and accept that the results will be slower and less precise.
But if you can record a ten-second driving video — with your own phone, in a minute — LivePortrait GitHub wins on almost everything else. The motion is real, because it comes from a real face. The speed is far higher. The control is finer. And it works on anything with a face, not just realistic humans: paintings, statues, cartoons, pets.
Pick an audio-driven tool when you only have a voiceover and no camera. Pick LivePortrait GitHub when you can perform the expressions yourself, even badly — your own face, recorded once, becomes the puppet master for any portrait you own.
What Does LivePortrait GitHub Cost?
LivePortrait GitHub itself costs nothing — MIT license, no subscription, no fee from the project. The Hugging Face demo is free to try, and the local install runs on your own machine. The only real cost is hardware: it is happiest on a GPU, and the 12.8ms figure assumes a strong one. On a weaker card or a CPU it still works, just slower — a short clip instead of a long one, and patience instead of instant results.
The licence is where the free price tag needs a second look. The code is MIT, but the InsightFace detection models it ships with are for non-commercial research only, and X-Pose, used by the animal mode, is only for non-commercial scientific research. If you plan to sell the videos you make — client work, ads, paid content — swap those parts for commercial-friendly alternatives first. For personal projects, learning and free content, you are fine as it stands.
Honest Limits
- LivePortrait GitHub needs a driving video. No driving video, no animation. If your workflow is audio-only, this is the wrong tool, and no setting changes that.
- The result is only as good as the match between the portrait and the driver. A front-facing portrait with a front-facing driving video looks great. A side-profile photo driven by a front-facing clip will fight the model, and the face can distort.
- It animates a face, not a body. Shoulders and background stay mostly still, so a long clip can start to feel like a very lively passport photo rather than a full performance. Keep clips short and the illusion holds.
- The licence split matters for business use. MIT code does not mean everything inside the box is free for commercial work — the bundled detection models are research-only, so commercial users need to replace them.
- And the obvious one: this is the kind of tool that can be misused to put words and expressions onto a real person’s face without their consent. Use your own photos, or photos you have permission to animate, and do not make fake videos of real people.
FAQ
Is LivePortrait GitHub free?
Yes. LivePortrait GitHub is free and open source under the MIT license, and the Hugging Face demo costs nothing to try. You only pay in hardware — a GPU makes it fast — and you must respect the non-commercial licence on the bundled detection models if you use it for paid work.
What is the difference between LivePortrait GitHub and audio-driven talking-head tools?
Audio-driven tools invent mouth movement from a voice recording. LivePortrait GitHub copies real motion from a driving video of a face. The video-driven route is faster, more accurate and more controllable — but it needs you to record that driving video first.
Can LivePortrait GitHub animate animals?
Yes. It has a dedicated animal mode that animates cats and dogs, improved in a later update, using the X-Pose model — which is licensed for non-commercial scientific research only.
Do I need a powerful computer to run LivePortrait GitHub?
For the best experience, yes — a GPU, ideally a strong one. The headline speed of 12.8ms per frame was measured on an RTX 4090. It will run on weaker hardware and even on CPU, but slowly. If in doubt, try the free Hugging Face Space first and install locally only when you know you will use it often.
Can I use LivePortrait GitHub commercially?
The code is MIT, but the bundled InsightFace models are non-commercial research only and X-Pose is non-commercial scientific research only. For paid work, replace those components with commercial-friendly alternatives before you ship anything.
Where did LivePortrait GitHub come from?
It was released in July 2024 by researchers at Kuaishou Technology, the company behind Kling, with the paper “LivePortrait: Efficient Portrait Animation with Stitching and Retargeting Control” (arXiv:2407.03168). The project was first published under KwaiVGI/LivePortrait and now lives under KlingAIResearch/LivePortrait.
Final Verdict
LivePortrait GitHub earns its place in this series as the fastest honest way to make a still portrait move: one photo, one short driving video, and a clip that looks alive in seconds. It will not invent a performance from audio alone, and it will not forgive a bad driving video — but for anyone who can point a phone at their own face for ten seconds, it turns every portrait they own into a potential video. Try it free on Hugging Face first, with your own photo and your own expressions, and only install it locally when you know you will come back to it. And read Part 17 first — Bolt.diy is another self-hosted tool from this series, and the same rule applies here: your machine, your model, your responsibility for how you use it.

Pingback: MoneyPrinterV2 GitHub: Automate YouTube Shorts and Online Income — Complete Guide (2026) - WebNexa