基于YoloV4 的Keras物体识别
一、安装环境
1.下载TensorFlow
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==1.14.0
2.安装keras
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==1.14.0
3.安装OpenCV-Python
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
二、下载包
1.从GitHub上下载
git clone https://github.com/Ma-Dan/keras-yolo4
2.下载权重文件
三、运行
1.修改文件
找到test.py,修改model_path。修改为我们前面已经引入的.h5文件。
test.py顶部添加编码
2.编译并运行
cd keras-yolo4
python3 test.py