Instructions to use bluestarburst/AnimateDiff-SceneFusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use bluestarburst/AnimateDiff-SceneFusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("bluestarburst/AnimateDiff-SceneFusion", 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
Commit ·
fdf716b
1
Parent(s): 09be41c
Upload folder using huggingface_hub
Browse files- handler.py +1 -2
handler.py
CHANGED
|
@@ -51,8 +51,7 @@ class EndpointHandler():
|
|
| 51 |
|
| 52 |
# huggingface download motion module from bluestarburst/AnimateDiff-SceneFusion/models/Motion_Module/mm_sd_v15.ckpt
|
| 53 |
|
| 54 |
-
motion_module = "models/
|
| 55 |
-
hf_hub_download(repo_id="bluestarburst/AnimateDiff-SceneFusion", filename="models/Motion_Module/mm_sd_v15.ckpt")
|
| 56 |
|
| 57 |
|
| 58 |
self.pipeline = load_weights(
|
|
|
|
| 51 |
|
| 52 |
# huggingface download motion module from bluestarburst/AnimateDiff-SceneFusion/models/Motion_Module/mm_sd_v15.ckpt
|
| 53 |
|
| 54 |
+
motion_module = hf_hub_download(repo_id="bluestarburst/AnimateDiff-SceneFusion", filename="models/Motion_Module/mm_sd_v15.ckpt")
|
|
|
|
| 55 |
|
| 56 |
|
| 57 |
self.pipeline = load_weights(
|