python - 仅检测人类

标签 python opencv darknet

我正在尝试使用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.

该模型正在运行,但未在视频供稿中检测到任何东西。

您能否提出可能出现问题的建议,并请提供建议?

谢谢,
帕夫洛斯

最佳答案

如果要更改配置文件,则必须更改权重文件-训练自定义网络:instructions。在您的情况下,darknet无法正确解析权重文件,因此不起作用。

或者,您可以使用默认权重和cfg,检测所有对象,但在Darknet源(C代码)中仅使人员通过。

关于python - 仅检测人类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61358257/

相关文章:

python - 交叉连接两个 vector 的元素以产生第三个 vector

python - 如何将带有依赖项的 python 脚本打包成 zip/tar?

c++ - 遍历区域并在 OpenCV 中获取平均像素值?

c++ - 如何增加fps opencv多相机设置

python - OpenCV Python 和方向梯度直方图

cuda - 支持 CUDA 5 的 GPU 上不受支持的 GPU 架构计算_30

computer-vision - Yolo 自定义培训 - 无法打开文件 : data/obj. 名称

python - 使用 Python 进行傅里叶变换

python - __unicode__() 不返回字符串

conv-neural-network - YOLOv3 SPP和YOLOv3的区别?