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 .pre-commit-config.yaml from zguo0525/animatediff: direct link, hf CLI and curl.
- Browser
- Download file 729 Bytes
-
https://huggingface.co/zguo0525/animatediff/resolve/main/.pre-commit-config.yaml
- Command line
-
hf download hf://zguo0525/animatediff/.pre-commit-config.yaml
-
curl -L -o .pre-commit-config.yaml https://huggingface.co/zguo0525/animatediff/resolve/main/.pre-commit-config.yaml
729 Bytes
| # See https://pre-commit.com for more information | |
| ci: | |
| autofix_prs: true | |
| autoupdate_branch: "main" | |
| autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate" | |
| autoupdate_schedule: weekly | |
| repos: | |
| - repo: https://github.com/astral-sh/ruff-pre-commit | |
| rev: "v0.0.281" | |
| hooks: | |
| - id: ruff | |
| args: ["--fix", "--exit-non-zero-on-fix"] | |
| - repo: https://github.com/psf/black | |
| rev: 23.7.0 | |
| hooks: | |
| - id: black | |
| args: ["--line-length=110"] | |
| - repo: https://github.com/pre-commit/pre-commit-hooks | |
| rev: v4.4.0 | |
| hooks: | |
| - id: trailing-whitespace | |
| args: [--markdown-linebreak-ext=md] | |
| - id: end-of-file-fixer | |
| - id: check-yaml | |
| - id: check-added-large-files | |