1. 安装依赖
- CMake >= 3.12
yum install -y gcc gcc-c++ make automake wget openssl-devel
wget https://github.com/Kitware/CMake/releases/download/v3.18.0/cmake-3.18.0.tar.gz
tar -zxvf cmake-3.18.0.tar.gz
cd cmake-3.18.0
./bootstrap
gmake
gmake install
cmake --version
git clone https://github.com/AlexeyAB/darknet.git
cd darkent
sh build.sh
Download yolov4.weights
file: https://drive.google.com/open?id=1cewMfusmPjYWbrnuJRuKhPMwRe_b9PaT
cp yolov4.weights darkent/
./darknet detector test ./cfg/coco.data ./cfg/yolov4.cfg ./yolov4.weights
网友评论