Instructions to use zguo0525/animatediff with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use zguo0525/animatediff with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("zguo0525/animatediff", 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 setup.py from zguo0525/animatediff: direct link, hf CLI and curl.
- Browser
- Download file 38 Bytes
-
https://huggingface.co/zguo0525/animatediff/resolve/main/setup.py
- Command line
-
hf download hf://zguo0525/animatediff/setup.py
-
curl -L -o setup.py https://huggingface.co/zguo0525/animatediff/resolve/main/setup.py
38 Bytes
| import setuptools | |
| setuptools.setup() | |