【邊緣AI系列】 OpenVINO C++範例編譯建置
參考應用範例
到此目錄下
C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\open_model_zoo\demos
一鍵編譯build所有的C++ 範例使用VS Build
執行:build_demos_msvc.bat
順利Build完後的執行檔位置
C:\Users\User name\Documents\Intel\OpenVINO\omz_demos_build\intel64\Release
接著就可以來下載模型來玩玩看了
首先到此目錄下尋找想要的模型並下載
C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\tools\model_downloader
執行 python downloader.py — print_all
就能看到目前intel提供已轉好的AI模型檔(每次改版都會不定期增加)
以人臉偵測範例為例
所需要的AI model 包含
face-detection-adas-0001
age-gender-recognition-retail-0013
head-pose-estimation-adas-0001
emotions-recognition-retail-0003
facial-landmarks-35-adas-0002
下載後的AI模型,模型會包含FP32 和 FP16,部分會有INT8模型
也就是針對硬體效能與精準度做取捨,可以選擇載入全精度、半精度、量化模型
跑起來~藉著我們就可以掛載AI模型來驗證囉
interactive_face_detection_demo.exe -i cam -m C:\Users\GradyHuang\Documents\Intel\OpenVINO\openvino_models\ir\intel\face-detection-adas-0001\FP32\face-detection-adas-0001.xml
interactive_face_detection_demo.exe -i cam -m face-detection-adas-0001\FP32\face-detection-adas-0001.xml -m_ag age-gender-recognition-retail-0013\FP32\age-gender-recognition-retail-0013.xml -m_em emotions-recognition-retail-0003\FP32\emotions-recognition-retail-0003.xml -m_hp head-pose-estimation-adas-0001\FP32\head-pose-estimation-adas-0001.xml -m_lm facial-landmarks-35-adas-0002\FP32\facial-landmarks-35-adas-0002.xml
Grady Huang