Spaces:
Runtime error
Runtime error
| title: NormalCrafter | |
| app_file: app.py | |
| sdk: gradio | |
| sdk_version: 5.23.3 | |
| ## ___***NormalCrafter: Learning Temporally Consistent Video Normal from Video Diffusion Priors***___ | |
| _**[Yanrui Bin<sup>1</sup>](https://scholar.google.com/citations?user=_9fN3mEAAAAJ&hl=zh-CN),[Wenbo Hu<sup>2*](https://wbhu.github.io), | |
| [Haoyuan Wang<sup>3](https://www.whyy.site/), | |
| [Xinya Chen<sup>4](https://xinyachen21.github.io/), | |
| [Bing Wang<sup>2 †</sup>](https://bingcs.github.io/)**_ | |
| <br><br> | |
| <sup>1</sup>Spatial Intelligence Group, The Hong Kong Polytechnic University | |
| <sup>2</sup>ARC Lab, Tencent PCG | |
| <sup>3</sup>City University of Hong Kong | |
| <sup>4</sup>Huazhong University of Science and Technology | |
| </div> | |
| ## π Notice | |
| We recommend that everyone use English to communicate on issues, as this helps developers from around the world discuss, share experiences, and answer questions together. | |
| For business licensing and other related inquiries, don't hesitate to contact `binyanrui@gmail.com`. | |
| ## π Introduction | |
| π€ If you find NormalCrafter useful, **please help β this repo**, which is important to Open-Source projects. Thanks! | |
| π₯ NormalCrafter can generate temporally consistent normal sequences | |
| with fine-grained details from open-world videos with arbitrary lengths. | |
| - `[24-04-01]` π₯π₯π₯ **NormalCrafter** is released now, have fun! | |
| ## π Quick Start | |
| ### π€ Gradio Demo | |
| - Online demo: [NormalCrafter](https://huggingface.co/spaces/Yanrui95/NormalCrafter) | |
| - Local demo: | |
| ```bash | |
| gradio app.py | |
| ``` | |
| ### π οΈ Installation | |
| 1. Clone this repo: | |
| ```bash | |
| git clone git@github.com:Binyr/NormalCrafter.git | |
| ``` | |
| 2. Install dependencies (please refer to [requirements.txt](requirements.txt)): | |
| ```bash | |
| pip install -r requirements.txt | |
| ``` | |
| ### π€ Model Zoo | |
| [NormalCrafter](https://huggingface.co/Yanrui95/NormalCrafter) is available in the Hugging Face Model Hub. | |
| ### πββοΈ Inference | |
| #### 1. High-resolution inference, requires a GPU with ~20GB memory for 1024x576 resolution: | |
| ```bash | |
| python run.py --video-path examples/example_01.mp4 | |
| ``` | |
| #### 2. Low-resolution inference requires a GPU with ~6GB memory for 512x256 resolution: | |
| ```bash | |
| python run.py --video-path examples/example_01.mp4 --max-res 512 | |
| ``` | |