Instructions to use ByteDance/Video-As-Prompt-CogVideoX-5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ByteDance/Video-As-Prompt-CogVideoX-5B 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("ByteDance/Video-As-Prompt-CogVideoX-5B", 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
|
@@ -29,7 +29,7 @@ library_name: diffusers
|
|
| 29 |
<!-- <a href="https://opensource.org/licenses/Apache">
|
| 30 |
<img src="https://img.shields.io/badge/License-Apache%202.0-lightgray">
|
| 31 |
</a> -->
|
| 32 |
-
<a href="https://
|
| 33 |
<img src="https://img.shields.io/badge/%E2%96%B6%20YouTube%20Demo-FF0000.svg?logo=youtube&logoColor=white" height="24px">
|
| 34 |
</a>
|
| 35 |
</div>
|
|
|
|
| 29 |
<!-- <a href="https://opensource.org/licenses/Apache">
|
| 30 |
<img src="https://img.shields.io/badge/License-Apache%202.0-lightgray">
|
| 31 |
</a> -->
|
| 32 |
+
<a href="https://www.youtube.com/watch?v=S3zpLIMOU4c" target="_blank">
|
| 33 |
<img src="https://img.shields.io/badge/%E2%96%B6%20YouTube%20Demo-FF0000.svg?logo=youtube&logoColor=white" height="24px">
|
| 34 |
</a>
|
| 35 |
</div>
|