- 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.
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.
- 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
Experience the magic of animation with our easy-to-use demo:
- Configure your video path in
demo.py
for visualizing the demo. - 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.