From adf2ef805e567f65362ae26bba62b3e2a404f877 Mon Sep 17 00:00:00 2001
From: zcxu-eric
Date: Tue, 5 Dec 2023 10:09:44 +0800
Subject: [PATCH 1/4] update README
---
README.md | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 5a715d9b..53cc55a2 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@
-
+
National University of Singapore | ByteDance
@@ -52,7 +52,7 @@
* **[2023.11.23]** Release MagicAnimate paper and project page.
## 🏃♂️ Getting Started
-Please download the pretrained base models for [StableDiffusion V1.5](runwayml/stable-diffusion-v1-5) and [MSE-finetuned VAE](stabilityai/sd-vae-ft-mse).
+Please download the pretrained base models for [StableDiffusion V1.5](https://huggingface.co/runwayml/stable-diffusion-v1-5) and [MSE-finetuned VAE](https://huggingface.co/stabilityai/sd-vae-ft-mse).
Download our MagicAnimate [checkpoints](https://huggingface.co/zcxu-eric/MagicAnimate).
@@ -81,7 +81,7 @@ prerequisites: `python>=3.8`, `CUDA>=11.3`, and `ffmpeg`.
Install with `conda`:
```bash
-conda env create -f environment.yml
+conda env create -f environment.yaml
conda activate manimate
```
or `pip`:
@@ -102,8 +102,7 @@ bash scripts/animate_dist.sh
## 🎨 Gradio Demo
#### Online Gradio Demo:
-Coming soon...
-
+Try our [online gradio demo](https://huggingface.co/spaces/zcxu-eric/magicanimate) quickly.
#### Local Gradio Demo:
Launch local gradio demo on single GPU:
@@ -116,6 +115,9 @@ python3 -m demo.gradio_animate_dist
```
Then open gradio demo in local browser.
+## 🙏 Acknowledgements
+We would like to thank [AK(@_akhaliq)](https://twitter.com/_akhaliq?lang=en) and huggingface team for the help of setting up oneline graio demo.
+
## 🎓 Citation
If you find this codebase useful for your research, please use the following entry.
```BibTeX
From 31388e68e5de0e1ae9beafbcd9fe79c1d0b228ea Mon Sep 17 00:00:00 2001
From: zcxu-eric
Date: Tue, 5 Dec 2023 14:38:28 +0800
Subject: [PATCH 2/4] fix gradio bug
---
demo/gradio_animate.py | 1 -
demo/gradio_animate_dist.py | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/demo/gradio_animate.py b/demo/gradio_animate.py
index 4c8218dc..8f27d748 100644
--- a/demo/gradio_animate.py
+++ b/demo/gradio_animate.py
@@ -52,7 +52,6 @@ def animate(reference_image, motion_sequence_state, seed, steps, guidance_scale)
submit = gr.Button("Animate")
def read_video(video):
- size = int(size)
reader = imageio.get_reader(video)
fps = reader.get_meta_data()['fps']
assert fps == 25.0, f'Expected video fps: 25, but {fps} fps found'
diff --git a/demo/gradio_animate_dist.py b/demo/gradio_animate_dist.py
index 03ff8e02..bfb7a613 100644
--- a/demo/gradio_animate_dist.py
+++ b/demo/gradio_animate_dist.py
@@ -115,5 +115,5 @@ def read_image(image, size=512):
outputs=animation,
)
-
+demo.queue(max_size=10)
demo.launch(share=True)
\ No newline at end of file
From 97aed25302c1260cb44f9b5d10c26093e3aaee2e Mon Sep 17 00:00:00 2001
From: zcxu-eric
Date: Tue, 5 Dec 2023 14:40:10 +0800
Subject: [PATCH 3/4] fix gradio bug
---
demo/gradio_animate.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/demo/gradio_animate.py b/demo/gradio_animate.py
index 8f27d748..10eaa133 100644
--- a/demo/gradio_animate.py
+++ b/demo/gradio_animate.py
@@ -54,7 +54,6 @@ def animate(reference_image, motion_sequence_state, seed, steps, guidance_scale)
def read_video(video):
reader = imageio.get_reader(video)
fps = reader.get_meta_data()['fps']
- assert fps == 25.0, f'Expected video fps: 25, but {fps} fps found'
return video
def read_image(image, size=512):
From ae5faa8b26201bd570e3d6134c62d2dd67196333 Mon Sep 17 00:00:00 2001
From: zcxu-eric
Date: Tue, 5 Dec 2023 15:04:06 +0800
Subject: [PATCH 4/4] update README
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 53cc55a2..e6251028 100644
--- a/README.md
+++ b/README.md
@@ -116,7 +116,7 @@ python3 -m demo.gradio_animate_dist
Then open gradio demo in local browser.
## 🙏 Acknowledgements
-We would like to thank [AK(@_akhaliq)](https://twitter.com/_akhaliq?lang=en) and huggingface team for the help of setting up oneline graio demo.
+We would like to thank [AK(@_akhaliq)](https://twitter.com/_akhaliq?lang=en) and huggingface team for the help of setting up oneline gradio demo.
## 🎓 Citation
If you find this codebase useful for your research, please use the following entry.