Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbds committed Dec 5, 2023
2 parents 1b8911a + ae5faa8 commit 419a6f0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<br>
<a href="https://arxiv.org/abs/2311.16498"><img src='https://img.shields.io/badge/arXiv-MagicAnimate-red' alt='Paper PDF'></a>
<a href='https://showlab.github.io/magicanimate'><img src='https://img.shields.io/badge/Project_Page-MagicAnimate-green' alt='Project Page'></a>
<a href=''><img src='https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue'></a>
<a href='https://huggingface.co/spaces/zcxu-eric/magicanimate'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue'></a>
<br>
<b>National University of Singapore &nbsp; | &nbsp; ByteDance</b>
</p>
Expand Down Expand Up @@ -51,6 +51,7 @@
* **[2023.12.4]** Release inference code and gradio demo. We are working to improve MagicAnimate, stay tuned!
* **[2023.11.23]** Release MagicAnimate paper and project page.


## ⚒️ Installation
prerequisites: `python>=3.8`, `CUDA>=11.3`, `ffmpeg` and `git`.

Expand All @@ -75,8 +76,7 @@ Install with Powershell run `install.ps1` or `install-cn.ps1`(for Chinese)
## 🎨 Gradio Demo

#### Online Gradio Demo:
Coming soon...
<!-- Try our [online gradio demo]() quickly. -->
Try our [online gradio demo](https://huggingface.co/spaces/zcxu-eric/magicanimate) quickly.

#### Local Gradio Demo:
Launch local gradio demo on single GPU:
Expand All @@ -89,6 +89,9 @@ Edit `run_gui.ps1` set `$mutil_gpu=1` then run.

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 gradio demo.

## 🎓 Citation
If you find this codebase useful for your research, please use the following entry.
```BibTeX
Expand Down
2 changes: 0 additions & 2 deletions demo/gradio_animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ 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'
return video

def read_image(image, size=512):
Expand Down
2 changes: 1 addition & 1 deletion demo/gradio_animate_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@ def read_image(image, size=512):
outputs=animation,
)


demo.queue(max_size=10)
demo.launch(share=True)

0 comments on commit 419a6f0

Please sign in to comment.