--- title: NormalCrafter app_file: app.py sdk: gradio sdk_version: 5.23.3 --- ## ___***NormalCrafter: Learning Temporally Consistent Video Normal from Video Diffusion Priors***___ _**[Yanrui Bin1](https://scholar.google.com/citations?user=_9fN3mEAAAAJ&hl=zh-CN),[Wenbo Hu2*](https://wbhu.github.io), [Haoyuan Wang3](https://www.whyy.site/), [Xinya Chen4](https://xinyachen21.github.io/), [Bing Wang2 †](https://bingcs.github.io/)**_

1Spatial Intelligence Group, The Hong Kong Polytechnic University 2ARC Lab, Tencent PCG 3City University of Hong Kong 4Huazhong University of Science and Technology ## 🔆 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 ```