Relumix is a powerful video relighting tool that uses a fine-tuned video diffusion model to relight videos based on a reference frame. Upload a video and a reference frame showing the desired lighting condition, and the model will generate a relit version of the entire video.
- Python: 3.10
- CUDA-compatible GPU with sufficient VRAM:
- 61 frames: 80GB GPU memory (A100 or similar)
- 14 frames: 32GB GPU memory (RTX 5090 or similar)
- 6 frames: 24GB GPU memory (RTX 3090 or similar)
Install the required packages:
pip install -r requirements.txtKey dependencies include:
- PyTorch
- Gradio
- OpenCV
- Diffusers
- Transformers
- And more (see
requirements.txtfor complete list)
By default, infer 14 frames on a 32GB.
Interactive video relighting:
bash run_relumix_gradio.shThis will start a web server at http://localhost:7881 where you can:
- Upload your input video
- Upload a reference frame showing desired lighting
- Adjust processing parameters
- Generate and download the relit video
By default, infer 61 frames on a 80GB GPU.
For batch processing multiple videos, use the command-line interface:
bash run_relumix.shConfiguration for batch processing:
- Edit
examples/input_video_path.txt- specify paths to input videos - Edit
examples/ref_frame_path.txt- specify paths to reference frames - Edit
examples/output_path.txt- specify output directories
The model behavior can be customized through YAML configuration files in the carla_config/ directory:
infer_relumix.yaml- Configuration for batch processinginfer_relumix_gradio.yaml- Configuration for Gradio interface
The main limitation of our approach is its reliance on a single static reference frame, which creates an information bottleneck when processing videos with significant camera motion or parallax. This leads to inaccuracies in propagated lighting over time, as new scene content appears without correspondence to the initial frame. While SVD's motion priors handle moderate camera movement, large transformations degrade consistency. Additionally, the framework currently cannot manage dynamic light sources like moving spotlights or vehicle headlights.
If you use Relumix in your research, please cite:
@misc{wang2025relumixextendingimagerelighting,
title={ReLumix: Extending Image Relighting to Video via Video Diffusion Models},
author={Lezhong Wang and Shutong Jin and Ruiqi Cui and Anders Bjorholm Dahl and Jeppe Revall Frisvad and Siavash Bigdeli},
year={2025},
eprint={2509.23769},
archivePrefix={arXiv},
primaryClass={cs.GR},
url={https://arxiv.org/abs/2509.23769},
}This project is built upon the work of many contributors. We acknowledge the use or modification of the following libraries and works: Stable Video Diffusion, Materialist, Generative Camera Dolly and CARLA. We'd like to thank the authors for making these libraries available.