Buckets:
4.67 GB
7 files
Updated about 2 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| .gitattributes | 1.52 kB xet | 818ba6de | |
| AnimateLCM_sd15_t2v.ckpt | 1.81 GB xet | eceea3d5 | |
| AnimateLCM_sd15_t2v_lora.safetensors | 135 MB xet | 9c954cd2 | |
| README.md | 1.95 kB xet | e7fde91f | |
| config.json | 376 Bytes xet | e3bdbb47 | |
| diffusion_pytorch_model.fp16.safetensors | 908 MB xet | 6c27dffa | |
| diffusion_pytorch_model.safetensors | 1.82 GB xet | 4479f85f |
AnimateLCM for Fast Video Generation in 4 steps.
AnimateLCM: Computation-Efficient Personalized Style Video Generation without Personalized Video Data by Fu-Yun Wang et al.
We also support fast image-to-video generation, please see AnimateLCM-SVD-xt and AnimateLCM-I2V.
For more details, please refer to our [paper] | [code] | [proj-page] | [civitai].
Using AnimateLCM with Diffusers
import torch
from diffusers import AnimateDiffPipeline, LCMScheduler, MotionAdapter
from diffusers.utils import export_to_gif
adapter = MotionAdapter.from_pretrained("wangfuyun/AnimateLCM", torch_dtype=torch.float16)
pipe = AnimateDiffPipeline.from_pretrained("emilianJR/epiCRealism", motion_adapter=adapter, torch_dtype=torch.float16)
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config, beta_schedule="linear")
pipe.load_lora_weights("wangfuyun/AnimateLCM", weight_name="AnimateLCM_sd15_t2v_lora.safetensors", adapter_name="lcm-lora")
pipe.set_adapters(["lcm-lora"], [0.8])
pipe.enable_vae_slicing()
pipe.enable_model_cpu_offload()
output = pipe(
prompt="A space rocket with trails of smoke behind it launching into space from the desert, 4k, high resolution",
negative_prompt="bad quality, worse quality, low resolution",
num_frames=16,
guidance_scale=2.0,
num_inference_steps=6,
generator=torch.Generator("cpu").manual_seed(0),
)
frames = output.frames[0]
export_to_gif(frames, "animatelcm.gif")
- Total size
- 4.67 GB
- Files
- 7
- Last updated
- Sep 28
- Pre-warmed CDN
- US EU US EU