Instructions to use codingggasdfasf/video-animator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use codingggasdfasf/video-animator with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("codingggasdfasf/video-animator", 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
root commited on
Commit ·
fe4e446
1
Parent(s): 63624e2
trying
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -50,7 +50,7 @@ class EndpointHandler():
|
|
| 50 |
pretrained_base_model_path_unet = os.path.join(base_dir, 'pretrained_weights', 'stable-diffusion-v1-5', 'unet')
|
| 51 |
|
| 52 |
reference_unet = UNet2DConditionModel.from_pretrained(
|
| 53 |
-
|
| 54 |
from_pt=True
|
| 55 |
).to(device, dtype=self.weight_dtype)
|
| 56 |
|
|
|
|
| 50 |
pretrained_base_model_path_unet = os.path.join(base_dir, 'pretrained_weights', 'stable-diffusion-v1-5', 'unet')
|
| 51 |
|
| 52 |
reference_unet = UNet2DConditionModel.from_pretrained(
|
| 53 |
+
'./pretrained_weights/stable-diffusion-v1-5/unet',
|
| 54 |
from_pt=True
|
| 55 |
).to(device, dtype=self.weight_dtype)
|
| 56 |
|