EDITORSGURUKUL
๐Ÿ“‹ Command copied to clipboard!
๐Ÿ”ฅ Free Alternative to HeyGen / D-ID19.1k GitHub Stars๐Ÿ’ป Python / TerminalPython

LivePortraitby KlingAIResearch

LivePortrait animates still portrait images using motion drivers from a video source via PyTorch. It's also a popular Free Alternative to HeyGen / D-ID for creators who don't want to pay a monthly subscription.

โ“

What Is LivePortrait?

New to GitHub repos? Here's what this actually does, in plain language:

Bhai, if you want to animate old photos or static portraits using a driving video without paying high cloud subscription fees, this open-source Python repo is totally worth setting up.

โœ“Drives portrait facial expressions and head movements using a video
โœ“Supports high-resolution portrait animation output
โœ“Stitch and crop modules for seamless face integration
โœ“Runs locally on your own hardware via PyTorch
โš–๏ธ

Strengths, Limitations & Is It Safe to Install?

An honest breakdown before you install anything on your PC:

โœ… What It Does Well

  • Incredible motion transfer accuracy for eyes, lips, and subtle head tilts
  • Completely free to run locally without per-minute cloud rendering costs
  • Active open-source community providing WebUI wrappers and extensions

โŒ What It Can't Do / Limitations

  • Requires a dedicated Nvidia GPU with at least 8GB VRAM for smooth local generation
  • Command-line setup has a steep learning curve for absolute beginners
  • Can produce uncanny valley artifacts or stretching if the driving video is too extreme

๐Ÿ›ก๏ธ Is It Safe to Install?

The repository code itself is safe to install from GitHub, but because this tool generates hyper-realistic deepfake facial animations from single photos, you must obtain explicit consent from individuals before animating their likeness to avoid legal and ethical violations.

๐Ÿ–ฅ๏ธ

Hardware & PC System Requirements

Check if your laptop / PC can run LivePortrait smoothly:

Minimum VRAM / GPU
4GB VRAM (GTX 1060 / RX 580)
Recommended GPU
8GB-16GB VRAM (RTX 3060 / 4070)
System RAM Required
16GB - 32GB RAM
Free SSD Disk Space
5GB - 15GB Free SSD Space
Supported Platforms:๐ŸชŸ Windows 10 / 11๐ŸŽ macOS (Apple Silicon M1/M2/M3)๐Ÿง Linux (Ubuntu CUDA)

โšก 1-Click Setup Commands for LivePortrait

Copy & paste in Terminal or Command Prompt:
Python / Pip / Git Command:git clone https://github.com/KlingAIResearch/LivePortrait.git
FREE KNOWLEDGE HUB

Want 50+ DaVinci Resolve & Filmmaking tutorials?

๐Ÿ“š Explore Free Guides โž”
๐Ÿ“–

Beginner Installation Guide (Windows & Mac)

Straightforward step-by-step installation instructions for Windows and macOS systems:

๐Ÿ’ป Windows Install Steps:

  1. Step 1: Press Win + R keys together, type cmd and hit Enter to open Command Prompt.
  2. Step 2: Copy the git clone https://github.com/KlingAIResearch/LivePortrait.git command from the top banner.
  3. Step 3: Right-click in Command Prompt to paste the command and press Enter. Installation complete!

๐Ÿ Mac Install Steps (Apple Silicon & Intel):

  1. Step 1: Press Cmd + Space, type Terminal and hit Enter.
  2. Step 2: Copy the git clone https://github.com/KlingAIResearch/LivePortrait.git command from the top banner.
  3. Step 3: Paste into Terminal and press Enter. If Mac blocks opening: Go to System Settings > Privacy & Security > Click "Open Anyway".
๐Ÿš€

How to Use LivePortrait (Beginner Quick Start Tutorial)

First time launching this application? Follow our beginner operational workflow:

1

Clone the Repository

Download the project files from GitHub to your local machine.

git clone https://github.com/KlingAIResearch/LivePortrait.git
2

Install Dependencies

Set up a virtual environment and install the required Python packages.

pip install -r requirements.txt
3

Download Pretrained Weights

Fetch the official model checkpoint weights and place them in the designated assets folder.

4

Run the Inference Script

Execute the main Python script passing your target portrait and driving video paths.

python inference.py --source path/to/image.jpg --driving path/to/video.mp4
๐Ÿ› ๏ธ

Troubleshooting & Fix Common Errors

If you encounter unexpected errors or installation failures, apply these verified diagnostic fixes:

โŒCUDA Out of Memory (OOM) Error

Root Cause: Your GPU VRAM is full because the AI model batch size or resolution is too high.

๐Ÿ’ก Solution Fix: Add '--lowvram' or '--medvram' argument to your launch command script, or lower the image/video batch size to 1.
โŒ'git', 'python' or 'ffmpeg' is not recognized as an internal command

Root Cause: The required software is installed but not added to your Windows Environment System PATH.

๐Ÿ’ก Solution Fix: Reinstall Python / Git and make sure to check the box 'Add Python.exe to PATH' during installation.
โŒTorch / PyTorch CUDA Version Mismatch

Root Cause: Installed PyTorch binary does not match your Nvidia GPU CUDA driver version.

๐Ÿ’ก Solution Fix: Run: pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
โŒPort 7860 or 8888 Already in Use

Root Cause: Another WebUI or Python background process is already running on the default local port.

๐Ÿ’ก Solution Fix: Close existing terminal windows, or add '--port 7861' parameter to change the default listening port.

๐Ÿ’ก Why LivePortrait is the Best Free Alternative to HeyGen / D-ID

Bhai, if you want to animate old photos or static portraits using a driving video without paying high cloud subscription fees, this open-source Python repo is totally worth setting up.

If you are tired of expensive monthly subscription fees and privacy concerns, LivePortrait offers a completely free, open-source alternative. Running 100% locally on your computer (Windows, Mac, or Linux), it delivers high performance without export limits or cloud dependencies.

๐Ÿ“Š Comparison: LivePortrait vs Free Alternative to HeyGen / D-ID

Feature / MetricLivePortrait (Free Open-Source)Free Alternative to HeyGen / D-ID (Paid)
Pricing Model100% Free Forever (โ‚น0)Paid Monthly Subscription
Data Privacy & Security100% Offline Local ComputerCloud Server Upload Required
System ControlFull Source Code & Custom ScriptsRestricted Closed Code
Community ExtensionsUnlimited GitHub PluginsLimited Official Marketplace
FREE CREATOR HANDBOOK

Want the Top 50 Open-Source Tools PDF Cheatsheet?

Get 1-click install scripts for yt-dlp, Whisper, UVR5, ComfyUI sent to your email.

๐Ÿ”— Source Code & Official Links

Finished reading the guide? You can inspect the source code or star the repository directly on GitHub below:

๐Ÿ”ฅ Related Open-Source Tools

Ajay K Meena
Written by Ajay K Meena
Cinematographer, Colorist & Director ยท Founder, Wedream Production

6+ years grading and shooting professionally in DaVinci Resolve โ€” from weddings and music videos to brand campaigns. Everything on this site is based on real production work, not recycled tutorials.