Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -19,13 +19,9 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
19 |
dtype = torch.float16
|
20 |
|
21 |
step = 4
|
22 |
-
repo = "ByteDance/AnimateDiff-Lightning"
|
23 |
-
ckpt = f"animatediff_lightning_{step}step_diffusers.safetensors"
|
24 |
-
#base = "emilianJR/epiCRealism"
|
25 |
base = "black-forest-labs/FLUX.1-dev"
|
26 |
|
27 |
-
adapter = MotionAdapter
|
28 |
-
adapter.load_state_dict(load_file(hf_hub_download(repo ,ckpt)))
|
29 |
|
30 |
scheduler = DDIMScheduler.from_pretrained(
|
31 |
base,
|
|
|
19 |
dtype = torch.float16
|
20 |
|
21 |
step = 4
|
|
|
|
|
|
|
22 |
base = "black-forest-labs/FLUX.1-dev"
|
23 |
|
24 |
+
adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-2")
|
|
|
25 |
|
26 |
scheduler = DDIMScheduler.from_pretrained(
|
27 |
base,
|