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
|
@@ -43,9 +43,9 @@ def set_nested_attr(current, path, value):
|
|
| 43 |
current = getattr(current, part)
|
| 44 |
setattr(current, parts[-1], value)
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
|
| 50 |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
| 51 |
|
|
|
|
| 43 |
current = getattr(current, part)
|
| 44 |
setattr(current, parts[-1], value)
|
| 45 |
|
| 46 |
+
set_nested_attr(diffusers.pipelines, 'hyvideo.HunyuanVideoPipeline', HunyuanVideoPipeline)
|
| 47 |
+
set_nested_attr(diffusers.pipelines, 'hyvideo.HYVideoDiffusionTransformer', HYVideoDiffusionTransformer)
|
| 48 |
+
set_nested_attr(diffusers.pipelines, 'hyvideo.AutoencoderKLCausal3D', AutoencoderKLCausal3D)
|
| 49 |
|
| 50 |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
| 51 |
|