File size: 1,396 Bytes
12e99e7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
---
license: apache-2.0
pipeline_tag: depth-estimation
library_name: diffusers
---
# NormalCrafter: Learning Temporally Consistent Normals from Video Diffusion Priors
[NormalCrafter](https://normalcrafter.github.io/) generates temporally consistent normal sequences with fine-grained details from open-world videos of arbitrary lengths. This model is based on the paper [NormalCrafter: Learning Temporally Consistent Normals from Video Diffusion Priors](https://huggingface.co/papers/2504.11427).
## ๐ 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
``` |