Instructions to use ballemann/PersonaLive with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ballemann/PersonaLive with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ballemann/PersonaLive", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
| <svg viewBox="0 0 3200 90" width="100%" height="90" | |
| xmlns="http://www.w3.org/2000/svg"> | |
| <defs> | |
| <linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="0%"> | |
| <stop offset="0%" stop-color="#ff4d4d"/> | |
| <stop offset="100%" stop-color="#f73030"/> | |
| </linearGradient> | |
| </defs> | |
| <text | |
| x="50%" | |
| y="65" | |
| text-anchor="middle" | |
| font-size="70" | |
| font-weight="900" | |
| font-family="-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial" | |
| fill="url(#grad)"> | |
| ⚡️ Real-time, Streamable, Infinite-Length Portrait Animation requires only ~12GB VRAM ⚡️ | |
| </text> | |
| </svg> |