
Re-illuminate people in video to match target lighting from a 360 HDRI environment map.
NVIDIA AI for Media Relighting NIM uses gRPC APIs for inferencing requests. Following instructions demonstrate the usage of AI for Media Relighting NIM 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 NVIDIA AI for Media 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.