Image-to-Video
Diffusers
ONNX
Safetensors
WanPipeline
video-generation
video diffusion transformer
audio-driven avatar animation
Instructions to use FrancisRing/StableAvatar with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FrancisRing/StableAvatar 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("FrancisRing/StableAvatar", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -25,7 +25,7 @@ StableAvatar: Infinite-Length Audio-Driven Avatar Video Generation
|
|
| 25 |
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
|
| 26 |
<tr>
|
| 27 |
<td>
|
| 28 |
-
<video src="https://github.com/user-attachments/assets/
|
| 29 |
</td>
|
| 30 |
<td>
|
| 31 |
<video src="https://github.com/user-attachments/assets/b5902ac4-8188-4da8-b9e6-6df280690ed1" width="320" controls loop></video>
|
|
|
|
| 25 |
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
|
| 26 |
<tr>
|
| 27 |
<td>
|
| 28 |
+
<video src="https://github.com/user-attachments/assets/d7eca208-6a14-46af-b337-fb4d2b66ba8d" width="320" controls loop></video>
|
| 29 |
</td>
|
| 30 |
<td>
|
| 31 |
<video src="https://github.com/user-attachments/assets/b5902ac4-8188-4da8-b9e6-6df280690ed1" width="320" controls loop></video>
|