Spaces:
Runtime error
Runtime error
update
Browse files- README.md +4 -0
- app.py +0 -9
- configs/prompts/animation.yaml +5 -5
README.md
CHANGED
@@ -7,5 +7,9 @@ sdk: gradio
|
|
7 |
sdk_version: 4.4.0
|
8 |
python_version: 3.8
|
9 |
app_file: app.py
|
|
|
|
|
|
|
|
|
10 |
pinned: false
|
11 |
---
|
|
|
7 |
sdk_version: 4.4.0
|
8 |
python_version: 3.8
|
9 |
app_file: app.py
|
10 |
+
models:
|
11 |
+
- zcxu-eric/MagicAnimate
|
12 |
+
- runwayml/stable-diffusion-v1-5
|
13 |
+
- stabilityai/sd-vae-ft-mse
|
14 |
pinned: false
|
15 |
---
|
app.py
CHANGED
@@ -17,15 +17,6 @@ from subprocess import PIPE, run
|
|
17 |
|
18 |
from demo.animate import MagicAnimate
|
19 |
|
20 |
-
for command in [
|
21 |
-
'mkdir ./pretrained_models && cd pretrained_models',
|
22 |
-
'git lfs clone https://huggingface.co/zcxu-eric/MagicAnimate',
|
23 |
-
'git lfs clone https://huggingface.co/runwayml/stable-diffusion-v1-5',
|
24 |
-
'git lfs clone https://huggingface.co/stabilityai/sd-vae-ft-mse',
|
25 |
-
'cd ..',
|
26 |
-
]:
|
27 |
-
run(command, stdout=PIPE, stderr=PIPE, universal_newlines=True, shell=True)
|
28 |
-
|
29 |
animator = MagicAnimate()
|
30 |
|
31 |
def animate(reference_image, motion_sequence_state, seed, steps, guidance_scale):
|
|
|
17 |
|
18 |
from demo.animate import MagicAnimate
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
animator = MagicAnimate()
|
21 |
|
22 |
def animate(reference_image, motion_sequence_state, seed, steps, guidance_scale):
|
configs/prompts/animation.yaml
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
pretrained_model_path: "
|
2 |
-
pretrained_vae_path: "
|
3 |
-
pretrained_controlnet_path: "
|
4 |
-
pretrained_appearance_encoder_path: "
|
5 |
pretrained_unet_path: ""
|
6 |
|
7 |
-
motion_module: "
|
8 |
|
9 |
savename: null
|
10 |
|
|
|
1 |
+
pretrained_model_path: "stable-diffusion-v1-5"
|
2 |
+
pretrained_vae_path: "sd-vae-ft-mse"
|
3 |
+
pretrained_controlnet_path: "MagicAnimate/densepose_controlnet"
|
4 |
+
pretrained_appearance_encoder_path: "MagicAnimate/appearance_encoder"
|
5 |
pretrained_unet_path: ""
|
6 |
|
7 |
+
motion_module: "MagicAnimate/temporal_attention/temporal_attention.ckpt"
|
8 |
|
9 |
savename: null
|
10 |
|