Étapes rapides pour exécuter l’exemple d’UDF Safety Gear sur un GPU avec Intel® Edge Insights for Industrial (Intel® EII)
Vous avez rencontré l’erreur suivante lors de l’exécution de l’exemple de configuration de sécurité UDF :
Erreur d’exécution : Impossible de créer le plug-in pour le GPU de l’appareil
Les étapes suivantes vous aideront à configurer et à exécuter l’exemple de fonction définie par l’utilisateur (UDF) sur un GPU avec Intel® Edge Insights for Industrial (Intel® EII).
- Créer une copie des fichiers de configuration d’origine
mv <working_dir>/edge_insights_industrial/Edge_Insights_for_Industrial_2.6.2/IEdgeInsights/VideoIngestion/config.json <working_dir>/edge_insights_industrial/Edge_Insights_for_Industrial_2.6.2/IEdgeInsights/VideoIngestion/config.json.bkup
mv <working_dir>/edge_insights_industrial/Edge_Insights_for_Industrial_2.6.2/IEdgeInsights/VideoAnalytics/config.json <working_dir>/edge_insights_industrial/Edge_Insights_for_Industrial_2.6.2/IEdgeInsights/VideoAnalytics/config.json.bkup
- Copiez le répertoire UDF de l’équipement de sécurité dans le répertoire commun
cp -r <working_dir>/edge_insights_industrial/Edge_Insights_for_Industrial_2.6.2/IEdgeInsights/CustomUdfs/PySafetyGearAnalytics/safety_gear <working_dir>/edge_insights_industrial/Edge_Insights_for_Industrial_2.6.2/IEdgeInsights/common/video/udfs/python
- Copiez la vidéo de test dans le répertoire test_videos
cp <working_dir>/edge_insights_industrial/Edge_Insights_for_Industrial_2.6.2/IEdgeInsights/CustomUdfs/PySafetyGearIngestion/Safety_Full_Hat_and_Vest.avi <working_dir>/edge_insights_industrial/Edge_Insights_for_Industrial_2.6.2/IEdgeInsights/VideoIngestion/test_videos/Safety_Full_Hat_and_Vest.avi
- Copiez les fichiers de configuration joints dans les répertoires VideoIngestion et VideoAnalytics
cp config-VideoIngestion.json <working_dir>/edge_insights_industrial/Edge_Insights_for_Industrial_2.6.2/IEdgeInsights/VideoIngestion/config.json
cp config-VideoAnalytics.json <working_dir>/edge_insights_industrial/Edge_Insights_for_Industrial_2.6.2/IEdgeInsights/VideoAnalytics/config.json - Fournir et créer Edge Insights for Industrial
python3 builder.py -f usecases/video-streaming-all-udfs.yml
cd <working_dir>/edge_insights_industrial/Edge_Insights_for_Industrial_2.6.2/IEdgeInsights/build
cd provision && sudo -E ./provision.sh ../docker-compose.yml
cd .. && docker-compose -f docker-compose-build.yml build - Exécuter l’exemple
docker-compose up -d
xhost +
Un testament visuel affiché avec les résultats de l’inférence