Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -206,7 +206,7 @@ def main():
|
|
206 |
|
207 |
adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-3")
|
208 |
vae = AutoencoderKL.from_single_file("https://huggingface.co/stabilityai/sd-vae-ft-mse-original/vae-ft-mse-840000-ema-pruned.safetensors")
|
209 |
-
unet =
|
210 |
|
211 |
repo = "ByteDance/AnimateDiff-Lightning"
|
212 |
ckpt = f"animatediff_lightning_{step}step_diffusers.safetensors"
|
|
|
206 |
|
207 |
adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-3")
|
208 |
vae = AutoencoderKL.from_single_file("https://huggingface.co/stabilityai/sd-vae-ft-mse-original/vae-ft-mse-840000-ema-pruned.safetensors")
|
209 |
+
unet = UNet2DConditionModel.from_config("emilianJR/epiCRealism",subfolder="unet").to(device, dtype).load_state_dict(load_file(hf_hub_download("emilianJR/epiCRealism", "unet/diffusion_pytorch_model.safetensors"), device=device), strict=False)
|
210 |
|
211 |
repo = "ByteDance/AnimateDiff-Lightning"
|
212 |
ckpt = f"animatediff_lightning_{step}step_diffusers.safetensors"
|