Spaces:
Runtime error
Runtime error
Merge branch 'main' of https://huggingface.co/spaces/zcxu-eric/magicanimate
Browse files
app.py
CHANGED
|
@@ -17,6 +17,12 @@ from subprocess import PIPE, run
|
|
| 17 |
|
| 18 |
from demo.animate import MagicAnimate
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
animator = MagicAnimate()
|
| 21 |
|
| 22 |
def animate(reference_image, motion_sequence_state, seed, steps, guidance_scale):
|
|
@@ -93,7 +99,7 @@ with gr.Blocks() as demo:
|
|
| 93 |
["inputs/applications/source_image/multi1_source.png", "inputs/applications/driving/densepose/multi_dancing.mp4"],
|
| 94 |
],
|
| 95 |
inputs=[reference_image, motion_sequence],
|
| 96 |
-
outputs=animation
|
| 97 |
)
|
| 98 |
|
| 99 |
|
|
|
|
| 17 |
|
| 18 |
from demo.animate import MagicAnimate
|
| 19 |
|
| 20 |
+
from huggingface_hub import snapshot_download
|
| 21 |
+
|
| 22 |
+
snapshot_download(repo_id="runwayml/stable-diffusion-v1-5", local_dir="./stable-diffusion-v1-5")
|
| 23 |
+
snapshot_download(repo_id="stabilityai/sd-vae-ft-mse", local_dir="./sd-vae-ft-mse")
|
| 24 |
+
snapshot_download(repo_id="zcxu-eric/MagicAnimate", local_dir="./MagicAnimate")
|
| 25 |
+
|
| 26 |
animator = MagicAnimate()
|
| 27 |
|
| 28 |
def animate(reference_image, motion_sequence_state, seed, steps, guidance_scale):
|
|
|
|
| 99 |
["inputs/applications/source_image/multi1_source.png", "inputs/applications/driving/densepose/multi_dancing.mp4"],
|
| 100 |
],
|
| 101 |
inputs=[reference_image, motion_sequence],
|
| 102 |
+
outputs=animation
|
| 103 |
)
|
| 104 |
|
| 105 |
|