Instructions to use vanzl/DiffusionART-HunyuanVideo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use vanzl/DiffusionART-HunyuanVideo with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("vanzl/DiffusionART-HunyuanVideo", 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 links after model rename
Browse files
README.md
CHANGED
|
@@ -25,7 +25,7 @@ and text encoders automatically.
|
|
| 25 |
|
| 26 |
## Inference
|
| 27 |
|
| 28 |
-
Use the included [infer.py](https://huggingface.co/vanzl/DiffusionART-HunyuanVideo
|
| 29 |
Expand the setup once, then run the example from the same directory.
|
| 30 |
|
| 31 |
<details>
|
|
@@ -50,7 +50,7 @@ bootstrap/bin/huggingface-cli login
|
|
| 50 |
bootstrap/bin/python - <<'PY'
|
| 51 |
from huggingface_hub import snapshot_download
|
| 52 |
snapshot_download(
|
| 53 |
-
"vanzl/DiffusionART-HunyuanVideo
|
| 54 |
revision="b9f83d8fc677be078cf20e75e2149a5f69059220",
|
| 55 |
allow_patterns=["infer.py", "install.sh", "requirements-inference.txt"],
|
| 56 |
local_dir="release",
|
|
@@ -94,17 +94,17 @@ for the full gallery and pretrained comparisons.
|
|
| 94 |
|
| 95 |
<table>
|
| 96 |
<tr>
|
| 97 |
-
<td><video controls muted loop playsinline preload="none" width="280" poster="https://vanzll.github.io/diffusionart-project/assets/hf-video-00113-after.jpg" src="https://huggingface.co/vanzl/DiffusionART-HunyuanVideo
|
| 98 |
-
<td><video controls muted loop playsinline preload="none" width="280" poster="https://vanzll.github.io/diffusionart-project/assets/hf-video-00139-after.jpg" src="https://huggingface.co/vanzl/DiffusionART-HunyuanVideo
|
| 99 |
</tr>
|
| 100 |
<tr>
|
| 101 |
-
<td><video controls muted loop playsinline preload="none" width="280" poster="https://vanzll.github.io/diffusionart-project/assets/hf-video-00106-after.jpg" src="https://huggingface.co/vanzl/DiffusionART-HunyuanVideo
|
| 102 |
-
<td><video controls muted loop playsinline preload="none" width="280" poster="https://vanzll.github.io/diffusionart-project/assets/hf-video-00148-after.jpg" src="https://huggingface.co/vanzl/DiffusionART-HunyuanVideo
|
| 103 |
</tr>
|
| 104 |
</table>
|
| 105 |
|
| 106 |
## License
|
| 107 |
|
| 108 |
-
Subject to the [Tencent Hunyuan Community License](https://huggingface.co/vanzl/DiffusionART-HunyuanVideo
|
| 109 |
-
and [Notice](https://huggingface.co/vanzl/DiffusionART-HunyuanVideo
|
| 110 |
-
Training provenance and weight hashes are recorded in [release.json](https://huggingface.co/vanzl/DiffusionART-HunyuanVideo
|
|
|
|
| 25 |
|
| 26 |
## Inference
|
| 27 |
|
| 28 |
+
Use the included [infer.py](https://huggingface.co/vanzl/DiffusionART-HunyuanVideo/blob/main/infer.py).
|
| 29 |
Expand the setup once, then run the example from the same directory.
|
| 30 |
|
| 31 |
<details>
|
|
|
|
| 50 |
bootstrap/bin/python - <<'PY'
|
| 51 |
from huggingface_hub import snapshot_download
|
| 52 |
snapshot_download(
|
| 53 |
+
"vanzl/DiffusionART-HunyuanVideo",
|
| 54 |
revision="b9f83d8fc677be078cf20e75e2149a5f69059220",
|
| 55 |
allow_patterns=["infer.py", "install.sh", "requirements-inference.txt"],
|
| 56 |
local_dir="release",
|
|
|
|
| 94 |
|
| 95 |
<table>
|
| 96 |
<tr>
|
| 97 |
+
<td><video controls muted loop playsinline preload="none" width="280" poster="https://vanzll.github.io/diffusionart-project/assets/hf-video-00113-after.jpg" src="https://huggingface.co/vanzl/DiffusionART-HunyuanVideo/resolve/main/examples/00113-diffusionart.mp4"></video><p>A white horse gallops through shallow water along a sunlit beach.</p></td>
|
| 98 |
+
<td><video controls muted loop playsinline preload="none" width="280" poster="https://vanzll.github.io/diffusionart-project/assets/hf-video-00139-after.jpg" src="https://huggingface.co/vanzl/DiffusionART-HunyuanVideo/resolve/main/examples/00139-diffusionart.mp4"></video><p>The camera approaches a glass pavilion surrounded by autumn trees.</p></td>
|
| 99 |
</tr>
|
| 100 |
<tr>
|
| 101 |
+
<td><video controls muted loop playsinline preload="none" width="280" poster="https://vanzll.github.io/diffusionart-project/assets/hf-video-00106-after.jpg" src="https://huggingface.co/vanzl/DiffusionART-HunyuanVideo/resolve/main/examples/00106-diffusionart.mp4"></video><p>The camera follows a winding river through a valley of autumn trees.</p></td>
|
| 102 |
+
<td><video controls muted loop playsinline preload="none" width="280" poster="https://vanzll.github.io/diffusionart-project/assets/hf-video-00148-after.jpg" src="https://huggingface.co/vanzl/DiffusionART-HunyuanVideo/resolve/main/examples/00148-diffusionart.mp4"></video><p>Sunlight sparkles through a rotating crystal prism on a white surface.</p></td>
|
| 103 |
</tr>
|
| 104 |
</table>
|
| 105 |
|
| 106 |
## License
|
| 107 |
|
| 108 |
+
Subject to the [Tencent Hunyuan Community License](https://huggingface.co/vanzl/DiffusionART-HunyuanVideo/blob/main/LICENSE.txt)
|
| 109 |
+
and [Notice](https://huggingface.co/vanzl/DiffusionART-HunyuanVideo/blob/main/Notice).
|
| 110 |
+
Training provenance and weight hashes are recorded in [release.json](https://huggingface.co/vanzl/DiffusionART-HunyuanVideo/blob/main/release.json).
|