Update
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def generate_image(prompt, base, motion, step):
|
|
49 |
if motion_loaded != motion:
|
50 |
pipe.unload_lora_weights()
|
51 |
if motion != "":
|
52 |
-
pipe.load_lora_weights(
|
53 |
pipe.set_adapters(["motion"], [0.7])
|
54 |
motion_loaded = motion
|
55 |
|
@@ -86,8 +86,8 @@ with gr.Blocks(css="style.css") as demo:
|
|
86 |
label='Motion',
|
87 |
choices=[
|
88 |
("Default", ""),
|
89 |
-
("Zoom in", "
|
90 |
-
("Zoom out", "
|
91 |
],
|
92 |
value="",
|
93 |
interactive=True
|
|
|
49 |
if motion_loaded != motion:
|
50 |
pipe.unload_lora_weights()
|
51 |
if motion != "":
|
52 |
+
pipe.load_lora_weights(motion, adapter_name="motion")
|
53 |
pipe.set_adapters(["motion"], [0.7])
|
54 |
motion_loaded = motion
|
55 |
|
|
|
86 |
label='Motion',
|
87 |
choices=[
|
88 |
("Default", ""),
|
89 |
+
("Zoom in", "guoyww/animatediff-motion-lora-zoom-in"),
|
90 |
+
("Zoom out", "guoyww/animatediff-motion-lora-zoom-out"),
|
91 |
],
|
92 |
value="",
|
93 |
interactive=True
|