LivePortrait

Create realistic animated portraits from single images.

circle-check
circle-info

All examples in this guide can be run on GPU servers rented through CLORE.AI Marketplacearrow-up-right marketplace.

Renting on CLORE.AI

  1. Filter by GPU type, VRAM, and price

  2. Choose On-Demand (fixed rate) or Spot (bid price)

  3. Configure your order:

    • Select Docker image

    • Set ports (TCP for SSH, HTTP for web UIs)

    • Add environment variables if needed

    • Enter startup command

  4. Select payment: CLORE, BTC, or USDT/USDC

  5. Create order and wait for deployment

Access Your Server

  • Find connection details in My Orders

  • Web interfaces: Use the HTTP port URL

  • SSH: ssh -p <port> root@<proxy-address>

What is LivePortrait?

LivePortrait by Kuaishou enables:

  • Animate any portrait with driving video

  • Single photo to video animation

  • Expression and pose transfer

  • Real-time capable inference

Resources

Component
Minimum
Recommended
Optimal

GPU

RTX 3070 8GB

RTX 4080 16GB

RTX 4090 24GB

VRAM

8GB

16GB

24GB

CPU

4 cores

8 cores

16 cores

RAM

16GB

32GB

64GB

Storage

30GB SSD

50GB NVMe

100GB NVMe

Internet

100 Mbps

500 Mbps

1 Gbps

Quick Deploy on CLORE.AI

Docker Image:

Ports:

Command:

Accessing Your Service

After deployment, find your http_pub URL in My Orders:

  1. Go to My Orders page

  2. Click on your order

  3. Find the http_pub URL (e.g., abc123.clorecloud.net)

Use https://YOUR_HTTP_PUB_URL instead of localhost in examples below.

Installation

What You Can Create

Virtual Avatars

  • AI influencers and virtual anchors

  • Customer service avatars

  • Educational presenters

Content Creation

  • Social media content

  • Marketing materials

  • Music video concepts

Entertainment

  • Animate historical photos

  • Character animations

  • Interactive experiences

Professional Uses

  • Video conferencing avatars

  • Presentation assistants

  • Training simulations

Basic Usage

Command Line

Python API

Portrait with Expression Control

Batch Processing

Gradio Interface

Real-Time Webcam Animation

Integration with TTS

Create talking avatars with text-to-speech:

Performance

Resolution
GPU
FPS
Latency

256x256

RTX 3070

30

33ms

256x256

RTX 4090

60+

16ms

512x512

RTX 4090

30

33ms

512x512

A100

45

22ms

Common Problems & Solutions

Face Not Detected

Problem: "No face detected in source image"

Solutions:

  • Ensure face is clearly visible and front-facing

  • Use good lighting in source image

  • Crop image to focus on face

  • Minimum face size: 128x128 pixels

Motion Doesn't Match

Problem: Animation doesn't follow driving video

Solutions:

  • Use driving videos with clear facial movements

  • Ensure driving video has similar face orientation

  • Try different driving videos

Quality Issues

Problem: Output looks blurry or distorted

Solutions:

Real-Time Lag

Problem: Webcam animation is laggy

Solutions:

  • Use smaller output resolution (256x256)

  • Enable TensorRT optimization

  • Use RTX 4090 or better for real-time

Audio Sync Issues

Problem: Lip movements don't match audio

Solutions:

  • Use audio-to-driving video generation

  • Adjust video timing in post-processing

  • Use Wav2Lip for better lip sync

Troubleshooting

Face not detected

  • Ensure face is clearly visible in source

  • Use front-facing photos

  • Check image resolution (512+ recommended)

Animation looks unnatural

  • Source and driving video should have similar face angles

  • Avoid extreme expressions in driving video

  • Use shorter driving clips

Output video corrupted

  • Install ffmpeg: apt install ffmpeg

  • Check output format compatibility

  • Ensure enough disk space

CUDA errors

  • Install compatible PyTorch version

  • Check CUDA version matches requirements

Cost Estimate

Typical CLORE.AI marketplace rates (as of 2024):

GPU
Hourly Rate
Daily Rate
4-Hour Session

RTX 3060

~$0.03

~$0.70

~$0.12

RTX 3090

~$0.06

~$1.50

~$0.25

RTX 4090

~$0.10

~$2.30

~$0.40

A100 40GB

~$0.17

~$4.00

~$0.70

A100 80GB

~$0.25

~$6.00

~$1.00

Prices vary by provider and demand. Check CLORE.AI Marketplacearrow-up-right for current rates.

Save money:

  • Use Spot market for flexible workloads (often 30-50% cheaper)

  • Pay with CLORE tokens

  • Compare prices across different providers

Next Steps

Last updated

Was this helpful?