--- title: "RelightVid" emoji: "๐ก" colorFrom: "blue" colorTo: "green" sdk: "gradio" # ไฝ ็้กน็ฎไฝฟ็จ็ SDK (gradio / streamlit / docker) app_file: "app.py" # ไฝ ็ไธป็จๅบๆไปถ --- # 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 ๐ [2024/6/8] We release our [inference pipeline of Make-it-Real](#โก-quick-start), including material matching and generation of albedo-only 3D objects. ๐ [2024/6/8] [Material library annotations](#๐ฆ-data-preparation) generated by GPT-4V and [data engine](#โก-quick-start) are released! ๐ [2024/4/26] The [paper](https://arxiv.org/abs/2404.16829) and [project page](https://sunzey.github.io/Make-it-Real) are released! ## ๐ก 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