### Setup Environment Source: https://github.com/aigeeksgroup/light4d/blob/main/README.md Commands to create the Conda environment and install necessary dependencies, including Nvdiffrast and DepthCrafter. ```bash conda create -n Light4D python=3.10.19 conda activate Light4D pip install -r requirements.txt # Install Nvdiffrast pip install git+https://github.com/NVlabs/nvdiffrast.git # Install dependencies and diffsynth pip install -e . # Install depthcrafter. (Follow DepthCrafter's installing instruction for checkpoints preparation.) git clone https://github.com/Tencent/DepthCrafter.git ``` -------------------------------- ### Clone Repository Source: https://github.com/aigeeksgroup/light4d/blob/main/README.md Initial step to download the project source code. ```bash git clone https://github.com/AIGeeksGroup/Light4D cd Light4D ``` -------------------------------- ### Download Pretrained Models Source: https://github.com/aigeeksgroup/light4d/blob/main/README.md Commands to download required model checkpoints into the local directory. ```bash hf download Wan-AI/Wan2.1-I2V-14B-480P --local-dir ./models/Wan-AI hf download yihouxiang/EX-4D --local-dir ./models/EX-4D hf download lllyasviel/ic-light iclight_sd15_fc.safetensors --local-dir ./models hf download stablediffusionapi/realistic-vision-v51 --local-dir ./models/realistic-vision-v51 ``` -------------------------------- ### Reconstruct Source Video Source: https://github.com/aigeeksgroup/light4d/blob/main/README.md Executes the reconstruction script to generate the necessary color and mask inputs for relighting. ```bash bash recon.sh ``` -------------------------------- ### Generate 4D Relighting Video Source: https://github.com/aigeeksgroup/light4d/blob/main/README.md Runs the main relighting script using the color and mask videos generated from the reconstruction step. ```bash python 4D_relighting.py \ --color_video "/path/to/color.mp4" \ --mask_video "/path/to/mask.mp4" \ --output_video "/outputs/relighting.mp4" \ --sd_model "models/realistic-vision-v51" \ --ic_light_model "models/iclight_sd15_fc.safetensors" \ --enable_relight \ --light_direction LEFT \ --relight_prompt "Natural sunlight, cinematic quality" \ --gamma 0.7 \ --seed 42 \ --num_inference_steps 30 \ --num_frames 49 \ --height 384 \ --width 384 \ --device "cuda" \ --use_progressive_fusion ``` -------------------------------- ### Citation Source: https://github.com/aigeeksgroup/light4d/blob/main/README.md BibTeX entry for citing the Light4D paper. ```bibtex @article{wu2026light4d, title={Light4D: Training-Free Extreme Viewpoint 4D Video Relighting}, author={Wu, Zhenghuang and Chen, Kang and Zhang, Zeyu and Tang, Hao}, journal={arXiv preprint arXiv:2602.11769}, year={2026} } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.