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 ·
50f301d
1
Parent(s): 7c65853
removing subfolder
Browse filesFiles changed (4)
46 unmodified lines47484950515253545556575 unmodified lines63646566676869707146 unmodified linesvae = AutoencoderKL.from_pretrained(config_path).to(device, dtype=self.weight_dtype)pretrained_base_model_path = os.path.join(base_dir, 'pretrained_weights', 'stable-diffusion-v1-5')reference_unet = UNet2DConditionModel.from_pretrained(pretrained_base_model_path,subfolder="unet").to(device, dtype=self.weight_dtype)inference_config_path = os.path.join(base_dir, 'configs', 'inference', 'inference_v2.yaml')5 unmodified linesinfer_config = OmegaConf.load(inference_config_path)denoising_unet = UNet3DConditionModel.from_pretrained_2d(pretrained_base_model_path,motion_module_path,subfolder="unet",unet_additional_kwargs=infer_config.unet_additional_kwargs,).to(device, dtype=self.weight_dtype)46 unmodified lines474849505152535455565 unmodified lines626364656667686946 unmodified linesvae = AutoencoderKL.from_pretrained(config_path).to(device, dtype=self.weight_dtype)pretrained_base_model_path_unet = os.path.join(base_dir, 'pretrained_weights', 'stable-diffusion-v1-5', 'unet')reference_unet = UNet2DConditionModel.from_pretrained(pretrained_base_model_path_unet,).to(device, dtype=self.weight_dtype)inference_config_path = os.path.join(base_dir, 'configs', 'inference', 'inference_v2.yaml')5 unmodified linesinfer_config = OmegaConf.load(inference_config_path)denoising_unet = UNet3DConditionModel.from_pretrained_2d(pretrained_base_model_path_unet,motion_module_path,unet_additional_kwargs=infer_config.unet_additional_kwargs,).to(device, dtype=self.weight_dtype)
__pycache__/handler.cpython-310.pyc
handler.py+3-5
output.mp4Added
output/gradio/animation_output.mp4