--- title: RelightVid emoji: π₯ colorFrom: red colorTo: yellow sdk: gradio sdk_version: 5.23.3 app_file: app.py license: mit --- # RelightVid **[RelightVid: Temporal-Consistent Diffusion Model for Video Relighting](https://arxiv.org/abs/2501.16330)** [Ye Fang](https://github.com/Aleafy)\*, [Zeyi Sun](https://github.com/SunzeY)\*, [Shangzhan Zhang](https://zhanghe3z.github.io/), [Tong Wu](https://wutong16.github.io/), [Yinghao Xu](https://justimyhxu.github.io/), [Pan Zhang](https://panzhang0212.github.io/), [Jiaqi Wang](https://myownskyw7.github.io/), [Gordon Wetzstein](https://web.stanford.edu/~gordonwz/), [Dahua Lin](http://dahua.site/)
*Equal Contribution
 ## π News β¨ [2025/3/12] The [inference code](xxx), [project page](xxx) and [huggingface demo](xxx) are released! β¨ [2025/1/27] We release the [paper](https://arxiv.org/abs/2501.16330) of RelightVid! ## π‘ Highlights - π₯ We first demonstrate that **GPT-4V** can effectively **recognize and describe materials**, allowing our model to precisely identifies and aligns materials with the corresponding components of 3D objects. - π₯ We construct a **Material Library** containing thousands of materials with highly detailed descriptions readily for MLLMs to look up and assign. - π₯ **An effective pipeline** for texture segmentation, material identification and matching, enabling the high-quality application of materials to 3D assets. ## π¨βπ» Todo - [ ] Evaluation for Existed and Model-Generated Assets (both code & test assets) - [ ] More Interactive Demos (huggingface, jupyter) - [x] Make-it-Real Pipeline Inference Code - [x] Highly detailed Material Library annotations (generated by GPT-4V) - [x] Paper and Web Demos ## πΎ Installation ```bash git clone https://github.com/Aleafy/RelightVid.git cd RelightVid conda create -n relitv python=3.10 conda activate relitv pip install torch==2.1.2 torchvision==0.16.2 --index-url https://download.pytorch.org/whl/cu118 pip install -r requirements.txt ``` ## π¦ Data Preparation 1. **Annotations**: in `data/material_lib/annotations` [folder](data/material_lib/annotations), include: - Highly-detailed descriptions by GPT-4V: offering thorough descriptions of the materialβs visual characteristics and rich semantic information. - Category-tree: Divided into a hierarchical structure with coarse and fine granularity, it includes over 80 subcategories. 2. **PBR Maps**: You can download the complete PBR data collection at [Huggingface](https://huggingface.co/datasets/gvecchio/MatSynth/tree/main), or download the data used in our project at [OpenXLab](https://openxlab.org.cn/datasets/YeFang/MatSynth/tree/main) (Recommended). (If you have any questions, please refer to [issue#5](https://github.com/Aleafy/Make_it_Real/issues/5)) 3. **Material Images(optinal)**: You can download the material images file [here](https://drive.google.com/file/d/1ob7CV6JiaqFyjuCzlmSnBuNRkzt2qMSG/view?usp=sharing), to check and visualize the material appearance.Make_it_Real βββ data βββ material_lib βββ annotations βββ mat_images βββ pbr_maps βββ train βββ Ceremic βββ Concrete βββ ... βββ Wood## β‘ Quick Start #### Inference ```bash python main.py --obj_dir