Instructions to use stabilityai/stable-video-diffusion-img2vid with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/stable-video-diffusion-img2vid 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("stabilityai/stable-video-diffusion-img2vid", 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
#5
by Wrathfulreap - opened
README.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
---
|
| 6 |
|
| 7 |
# Stable Video Diffusion Image-to-Video Model Card
|
|
@@ -75,7 +83,4 @@ The model is intended for research purposes only.
|
|
| 75 |
|
| 76 |
## How to Get Started with the Model
|
| 77 |
|
| 78 |
-
Check out https://github.com/Stability-AI/generative-models
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
datasets:
|
| 4 |
+
- HuggingFaceH4/no_robots
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
library_name: diffusers
|
| 10 |
+
pipeline_tag: text-to-video
|
| 11 |
+
tags:
|
| 12 |
+
- art
|
| 13 |
---
|
| 14 |
|
| 15 |
# Stable Video Diffusion Image-to-Video Model Card
|
|
|
|
| 83 |
|
| 84 |
## How to Get Started with the Model
|
| 85 |
|
| 86 |
+
Check out https://github.com/Stability-AI/generative-models
|
|
|
|
|
|
|
|
|