Copyright © 2026 NVIDIA Corporation

Re-illuminate people in video to match target lighting from a 360 HDRI environment map.
Relighting uses gRPC APIs for inferencing requests. The following instructions demonstrate the usage of the Relighting model using Python client.
You will need a system with git and Python 3.10+ installed.
Download code by cloning the NVIDIA AI for Media NIM Clients Repository:
git clone https://github.com/NVIDIA-Maxine/nim-clients.git
cd nim-clients/relighting
Install the dependencies for the Relighting Python client:
sudo apt-get install python3-pip
pip install -r requirements.txt
cd scripts
python relighting.py --preview-mode \
--target grpc.nvcf.nvidia.com:443 \
--function-id 253bc77f-2d6c-4b9d-86c6-c6fb0f9e239c \
--api-key $NVIDIA_API_KEY \
--video-input <input_file_path> \
--output <output_file_path>
Refer the documentation for more information.