産業向け インテル® Edge インサイト (インテル® EII) 搭載 GPU で安全装備 UDF サンプルを実行するためのクイック手順
安全装置 UDF サンプルの実行時に次のエラーが発生しました。
ランタイムエラー: デバイス GPU 用のプラグインを作成できませんでした
以下の手順は、インテル® Edge Insights for Industrial (インテル® EII) 搭載の GPU で安全装備のユーザー定義関数 (UDF) サンプルをセットアップして実行するのに役立ちます。
- 元の構成ファイルのコピーを作成する
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
- 安全装置のUDFディレクトリを共通ディレクトリにコピーします。
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
- テストビデオを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
- 添付された構成ファイルを VideoIngestion ディレクトリと 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 - 産業用エッジインサイトのプロビジョニングと構築
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 - サンプルを実行する
docker-compose up -d
xhost +
推論結果とともに表示されるビジュアル