NormalCrafter / README.md
Yanrui95's picture
Upload folder using huggingface_hub
e34f325 verified
---
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 &dagger;</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 `[email protected]`.
## πŸ”† 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 [email protected]: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
```