Instructions to use magespace/hyvideo-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use magespace/hyvideo-diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("magespace/hyvideo-diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -28,6 +28,7 @@ You will also need to install [flash-attn](https://github.com/Dao-AILab/flash-at
|
|
| 28 |
Please note that you need at least 80GB VRAM to run this pipeline. CPU offloading is having issues at the moment (PRs welcome!).
|
| 29 |
|
| 30 |
```python
|
|
|
|
| 31 |
from hyvideo.diffusion.pipelines.pipeline_hunyuan_video import HunyuanVideoPipeline
|
| 32 |
from hyvideo.modules.models import HYVideoDiffusionTransformer
|
| 33 |
from hyvideo.vae.autoencoder_kl_causal_3d import AutoencoderKLCausal3D
|
|
|
|
| 28 |
Please note that you need at least 80GB VRAM to run this pipeline. CPU offloading is having issues at the moment (PRs welcome!).
|
| 29 |
|
| 30 |
```python
|
| 31 |
+
import os
|
| 32 |
from hyvideo.diffusion.pipelines.pipeline_hunyuan_video import HunyuanVideoPipeline
|
| 33 |
from hyvideo.modules.models import HYVideoDiffusionTransformer
|
| 34 |
from hyvideo.vae.autoencoder_kl_causal_3d import AutoencoderKLCausal3D
|