herrDeng網內搜尋

自訂搜尋

Ads

2021年6月30日 星期三

opencv 與darknet cuda dnn安裝與yolo4與caffemodel C++程式辨識

 
 opencv 與darknet cuda dnn用vcpkg安裝與yolo4與caffemodel CPP程式辨識。用vcpkg安裝步驟如下:

  1. if (沒安裝win git) 請安裝 win git
  2.  
  3. 用系統管理員開啟cmd
  4. 切到根目錄 cd /
  5.  
  6. if (沒安裝vcpkg)
  7. {
  8. git clone https://github.com/microsoft/vcpkg.git
  9. cd vcpkg
  10. bootstrap-vcpkg
  11. vcpkg integrate install
  12. }
  13. else
  14. {
  15. cd vcpkg
  16. git pull
  17. vcpkg update
  18. vcpkg upgrade --no-dry-run
  19. }
  20. if (cuda, cudnn沒裝)
  21. {
  22. 手動安裝
  23. 再來
  24. vcpkg install cuda:x64-windows
  25. vcpkg install cudnn:x64-windows
  26. }
  27.  
  28. vcpkg install darknet[full]:x64-windows
  29. if (部分套件如darknetopencv已裝)
  30. vcpkg install darknet[full]:x64-windows --recurse
  31.  
  32. //不同版次的vcpkg、cuda、cudnn、opencv、darknet坑不同,解法也不同
  33. if (error產生)
  34. 請看log檔看問題出在哪裡?

沒有留言:

Related Posts Plugin for WordPress, Blogger...

熱門文章