Instructions to use wangfuyun/AnimateLCM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use wangfuyun/AnimateLCM with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("wangfuyun/AnimateLCM", 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
Download config.json from wangfuyun/AnimateLCM: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/wangfuyun/AnimateLCM/resolve/refs%2Fpr%2F5/config.json
- Command line
-
hf download hf://wangfuyun/AnimateLCM@refs/pr/5/config.json
-
curl -L -o config.json https://huggingface.co/wangfuyun/AnimateLCM/resolve/refs%2Fpr%2F5/config.json
376 Bytes
| { | |
| "_class_name": "MotionAdapter", | |
| "_diffusers_version": "0.27.0.dev0", | |
| "block_out_channels": [ | |
| 320, | |
| 640, | |
| 1280, | |
| 1280 | |
| ], | |
| "conv_in_channels": null, | |
| "motion_layers_per_block": 2, | |
| "motion_max_seq_length": 32, | |
| "motion_mid_block_layers_per_block": 1, | |
| "motion_norm_num_groups": 32, | |
| "motion_num_attention_heads": 8, | |
| "use_motion_mid_block": true | |
| } | |