opencv 與darknet cuda dnn用vcpkg安裝與yolo4與caffemodel CPP程式辨識。用vcpkg安裝步驟如下:
if (沒安裝win git) 請安裝 win git
用系統管理員開啟cmd
切到根目錄 cd /
if (沒安裝vcpkg)
{
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg
vcpkg integrate install
}
else
{
cd vcpkg
git pull
vcpkg update
vcpkg upgrade --no-dry-run
}
if (cuda, cudnn沒裝)
{
手動安裝
再來
vcpkg install cuda:x64-windows
vcpkg install cudnn:x64-windows
}
vcpkg install darknet[full]:x64-windows
if (部分套件如darknet或opencv已裝)
vcpkg install darknet[full]:x64-windows --recurse
//不同版次的vcpkg、cuda、cudnn、opencv、darknet坑不同,解法也不同
if (error產生)
請看log檔看問題出在哪裡?
沒有留言:
張貼留言