基于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

本文详细介绍如何基于YoloV4和Keras搭建物体识别系统,包括环境配置、权重文件下载及运行测试流程。首先,指导读者安装必要的软件包如TensorFlow、Keras和OpenCV-Python;其次,提供从GitHub克隆项目和下载预训练权重的方法;最后,通过修改配置文件和运行测试脚本来实现物体识别。

349

被折叠的 条评论
为什么被折叠?



