Skip to content

Shohruh72/Efficient-Live-Portrait

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live Portraits AI

📹 Video Demo: LivePortrait: Bring portraits to life!

## Efficient Portrait Animation with Stitching and Retargeting Control

Transform static portraits into lifelike animations with ** just one click! 🔥🔥🔥**

💪Features

  • One-Click Animation: Effortlessly generate animated portraits with a single command.
  • Static Image Animation: Breathe life into your static images with our advanced models.
  • Keypoint Detection: Accurately detect and transform facial keypoints for realistic movements.
  • Model Integration: Seamlessly integrate various deep learning models to enhance animations.
  • Video Processing: Utilize video inputs to drive stunning animations.
  • Template Creation: Easily generate motion templates for consistent and repeatable animations.

🤗 Project Structure

  • demo.py: Entry point for the demo script.
  • nn.py: Contains the neural network definitions and model loading functions.
  • util.py: Utility functions for image and video processing.
  • nets/: Directory containing various model definitions and configurations.
  • demo/: Directory for demo inputs and outputs.

🚀🚀 Pretrained Weights

  1. Download pre-trained model weights and place them in the weights directory. Ensure the directory structure is as follows:
    live-portraits-ai/
    ├── weights/
    │   ├── afx.pth
    │   ├── mx.pth
    │   ├── wn.pth
    │   ├── spad.pth
    │   ├── stitch.pth
    │   └── insightface
    

🚀🚀🚀 Usage: Running the Demo

Experience the magic of animation with our easy-to-use demo:

  1. Configure your video path in demo.py for visualizing the demo.
  2. Run the demo script:
    python demo.py --input-image ./demo/inputs/images/10.jpg --input-video ./demo/inputs/videos/9.mp4 --output-dir ./demo/results

With just one click, you can transform any portrait into a captivating animated version, perfect for showcasing on social media, websites, or presentations.

Reference

About

Bring your portraits to life with stunning animations!

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages