python - 仅检测人员类
问题描述
我正在尝试使用 yolo v3 仅检测视频中的“人”类。
为此,我做了以下修改:
I changed number of filters (lines 603, 689, 776 ) from 255 to 18 in yolov3.cfg.
I changed the number of classes from 80 to 1 in the yolov3.cfg and the coco.data files.
I edited the coco.names file in order to leave only the "person" class.
该模型运行但未检测到视频源中的任何内容。
您能否就可能出现的问题提出建议并提供建议?
谢谢,巴甫洛斯
解决方案
如果要更改配置文件,则必须更改权重文件 - 训练您的自定义网络:说明。在您的情况下,暗网无法正确解析权重文件并且不起作用。
或者您可以使用默认权重和 cfg,检测所有对象,但在暗网源(在 C 代码中)仅通过人。
推荐阅读
- python - 我只需要两个列表的第一个 p 标签中的文本
- javascript - 用vue动态改变body背景
- android-source - 我可以使用新的语言区域设置和键盘布局向 Android 发送提交吗?
- r - 使用正则表达式从 R 中的 pdf 文档中提取所有不同的参考选项(多个选项/捕获组?)
- ruby-on-rails - Rails EXCEPT 查询(过滤掉联合表中存在的记录)
- c# - 如何基于 Kinect SDK 中的点创建面部网格
- ibm-cloud-infrastructure - 如何使用 Node.js 连接到 IBM Cloud Databases for Redis?
- python - 为什么 web.py 找不到本地 css?
- excel - 我放弃。获取运行时错误 438 并想知道我的代码哪里有缺陷
- python - 从命令行读取 CSV 文件并从命令行运行 python 脚本