
Estimate gaze angles of a person in a video and redirect to make it frontal.
NVIDIA Maxine Eye Contact NIM uses gRPC APIs for inferencing requests. Following instructions demonstrate the usage of Maxine Eye Contact NIM model using Python client.
You will need a system with git and Python 3.10+ installed.
Download code by cloning the gRPC Client Repository:
git clone https://github.com/NVIDIA-Maxine/nim-clients.git
cd nim-clients/eye-contact/
Install the dependencies for the NVIDIA Maxine Eye Contact Python client:
sudo apt-get install python3-pip
pip install -r requirements.txt
cd scripts
python eye-contact.py --preview-mode \
--target grpc.nvcf.nvidia.com:443 \
--function-id b75dbca7-b5a4-458c-9275-6d2effeb432a \
--api-key $NVIDIA_API_KEY \
--input <input file path> \
--output <output file path and the file name>
python eye-contact.py --preview-mode \
--target grpc.nvcf.nvidia.com:443 \
--function-id b75dbca7-b5a4-458c-9275-6d2effeb432a \
--api-key $NVIDIA_API_KEY \
--input ../assets/sample_transactional.mp4 \
--output ../assets/output.mp4
Refer this documentation for more information.