github上有源文件,以及配置说明 ,地址为:https://github.com/AlexeyAB/darknet
我装环境采用的是这个视频指导:
https://www.bilibili.com/video/BV1HZ4y1s7YF?from=search&seid=3520113328573922934,但是github上的是经常更新的,所以当你安装的时候github上的要求已经和视频里的有出入,而且我不太认同他的安装顺序,因为按照他的顺序装了之后还是会报错,可能多种因素影响吧,视频下面有很多评论,都是前人踩过的坑,可以参考。
Requirements
- Windows or Linux
- CMake >= 3.12: https://cmake.org/download/
- CUDA >= 10.2: https://developer.nvidia.com/cuda-toolkit-archive (on Linux do Post-installation Actions)
- OpenCV >= 2.4: use your preferred package manager (brew, apt), build from source using vcpkg or download from OpenCV official site (on Windows set system variable
OpenCV_DIR
=C:\opencv\build
- where are theinclude
andx64
folders image) - cuDNN >= 8.0.2 https://developer.nvidia.com/rdp/cudnn-archive (on Linux copy
cudnn.h
,libcudnn.so
... as desribed here https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#installlinux-tar , on Windows copycudnn.h
,cudnn64_7.dll
,cudnn64_7.lib
as desribed here https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.