Instructions to use mignonjia/hyworld with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mignonjia/hyworld 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("mignonjia/hyworld", 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 config
Browse files- guider/{guider_config.json → config.json} +1 -1
- transformer/config.json +1 -2
- vae/config.json +1 -1
guider/{guider_config.json → config.json}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "ClassifierFreeGuidance",
|
| 3 |
-
"_diffusers_version": "0.36.0
|
| 4 |
"enabled": true,
|
| 5 |
"guidance_rescale": 0.0,
|
| 6 |
"guidance_scale": 6.0,
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "ClassifierFreeGuidance",
|
| 3 |
+
"_diffusers_version": "0.36.0",
|
| 4 |
"enabled": true,
|
| 5 |
"guidance_rescale": 0.0,
|
| 6 |
"guidance_scale": 6.0,
|
transformer/config.json
CHANGED
|
@@ -39,6 +39,5 @@
|
|
| 39 |
"ideal_resolution": "480p",
|
| 40 |
"ideal_task": "i2v",
|
| 41 |
"_class_name": "HyWorldTransformer3DModel",
|
| 42 |
-
"_diffusers_version": "0.35.0"
|
| 43 |
-
"_name_or_path": "/apdcephfs_jn2/share_303535725/aejionzhang/checkpoints/hunyuanvideo_1_5/transformer/480p_i2v/"
|
| 44 |
}
|
|
|
|
| 39 |
"ideal_resolution": "480p",
|
| 40 |
"ideal_task": "i2v",
|
| 41 |
"_class_name": "HyWorldTransformer3DModel",
|
| 42 |
+
"_diffusers_version": "0.35.0"
|
|
|
|
| 43 |
}
|
vae/config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_class_name": "
|
| 3 |
"_diffusers_version": "0.36.0.dev0",
|
| 4 |
"block_out_channels": [
|
| 5 |
128,
|
|
|
|
| 1 |
{
|
| 2 |
+
"_class_name": "AutoencoderKLHyWorld",
|
| 3 |
"_diffusers_version": "0.36.0.dev0",
|
| 4 |
"block_out_channels": [
|
| 5 |
128,
|