Summary
Workaround to run the RI on a GPU.
Description
Failed to run the Social Distancing for Retail Settings Reference Implementation (RI) on a GPU. The RPS Dashboard shows null across all channels.
The RI was successfully run on a CPU.
Resolution
Note | The Social Distancing for Retail Settings RI does not actually support inferencing on GPU devices. The steps below are an unofficial workaround to bringing up a GPU in the Docker container and do not yield 100% success. |
Edit the Docker Container and run the RI on GPU:
- Edit OpenVINO's dockerfile to the latest version tag:
In Social_Distancing_for_Retail_Settings_<version>/Social_Distancing_for_Retail_Settings/retail-settings, open the Dockerfile and edit line 13 to show the latest version of OpenVINO™. - Add the following line to requirements.txt:
itsdangerous==2.0.1 - Compile the Docker Container:
sudo -E docker-compose build - Lauch the Docker Container:
export HOST_IP=$(hostname -I | cut -d' ' -f1)
sudo -E docker-compose up -d
It will likely take a while for the GPU device to initialize, so it is recommended to allocate at least 8GB of RAM to your machine.