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 ·
f8bc965
1
Parent(s): ddb7519
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -30,7 +30,7 @@ class EndpointHandler():
|
|
| 30 |
|
| 31 |
self.pipeline = AnimationPipeline(
|
| 32 |
vae=vae, text_encoder=text_encoder, tokenizer=tokenizer, unet=unet,
|
| 33 |
-
scheduler=DDIMScheduler(**OmegaConf.to_container(inference_config.noise_scheduler_kwargs)),
|
| 34 |
).to("cuda")
|
| 35 |
|
| 36 |
self.pipeline = load_weights(
|
|
|
|
| 30 |
|
| 31 |
self.pipeline = AnimationPipeline(
|
| 32 |
vae=vae, text_encoder=text_encoder, tokenizer=tokenizer, unet=unet,
|
| 33 |
+
scheduler=DDIMScheduler(**OmegaConf.to_container(inference_config.noise_scheduler_kwargs.DDIMScheduler)),
|
| 34 |
).to("cuda")
|
| 35 |
|
| 36 |
self.pipeline = load_weights(
|