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 ·
256a090
1
Parent(s): 43d63ec
changing sd-vae-ft-mse path
Browse files38 unmodified lines3940414243444538 unmodified linesself._initialize_pipeline()def _initialize_pipeline(self):vae = AutoencoderKL.from_pretrained('./pretrained_weights/sd-vae-ft-mse').to(device, dtype=self.weight_dtype)reference_unet = UNet2DConditionModel.from_pretrained(self.config.pretrained_base_model_path,38 unmodified lines3940414243444546474849505138 unmodified linesself._initialize_pipeline()def _initialize_pipeline(self):base_dir = os.path.dirname(os.path.abspath(__file__))config_path = os.path.join(base_dir, 'pretrained_weights', 'sd-vae-ft-mse')if not os.path.exists(config_path):raise FileNotFoundError(f"The sd-vae-ft-mse folder was not found at: {config_path}")vae = AutoencoderKL.from_pretrained(config_path).to(device, dtype=self.weight_dtype)reference_unet = UNet2DConditionModel.from_pretrained(self.config.pretrained_base_model_path,
handler.py+7-1