Yaron Koresh commited on
Commit
5f9fc17
·
verified ·
1 Parent(s): 2d9e77f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -206,8 +206,7 @@ def main():
206
 
207
  adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-2")
208
  vae = AutoencoderKL.from_single_file("https://huggingface.co/stabilityai/sd-vae-ft-mse-original/vae-ft-mse-840000-ema-pruned.safetensors")
209
- unet = UNet3DConditionModel.to(device, dtype)
210
- unet.load_state_dict(load_file(hf_hub_download("ByteDance/SDXL-Lightning", f"sdxl_lightning_{step}step_unet.safetensors"), device=device), strict=False)
211
 
212
  repo = "ByteDance/AnimateDiff-Lightning"
213
  ckpt = f"animatediff_lightning_{step}step_diffusers.safetensors"
 
206
 
207
  adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-2")
208
  vae = AutoencoderKL.from_single_file("https://huggingface.co/stabilityai/sd-vae-ft-mse-original/vae-ft-mse-840000-ema-pruned.safetensors")
209
+ unet = UNet3DConditionModel().to(device, dtype).load_state_dict(load_file(hf_hub_download("ByteDance/SDXL-Lightning", f"sdxl_lightning_{step}step_unet.safetensors"), device=device), strict=False)
 
210
 
211
  repo = "ByteDance/AnimateDiff-Lightning"
212
  ckpt = f"animatediff_lightning_{step}step_diffusers.safetensors"