Instructions to use hf-internal-testing/tiny-wan-animate-2-modular with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hf-internal-testing/tiny-wan-animate-2-modular with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hf-internal-testing/tiny-wan-animate-2-modular", 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
| { | |
| "_class_name": "WanAnimate2Transformer3DModel", | |
| "_diffusers_version": "0.40.0.dev0", | |
| "cross_attn_norm": true, | |
| "dim": 128, | |
| "eps": 1e-06, | |
| "ffn_dim": 256, | |
| "freq_dim": 64, | |
| "in_dim": 36, | |
| "num_heads": 4, | |
| "num_layers": 2, | |
| "out_dim": 16, | |
| "patch_size": [ | |
| 1, | |
| 2, | |
| 2 | |
| ], | |
| "refer_offset_h": 0, | |
| "refer_offset_t": 1, | |
| "refer_offset_w": -1, | |
| "refer_stride": 1, | |
| "text_dim": 32, | |
| "text_len": 16, | |
| "use_img_emb": true | |
| } | |