仅检测个人类

2024-06-01 01:50:45 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用YoloV3检测视频中的“person”类

为此,我做了以下修改:

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.

模型运行,但在视频提要中未检测到任何内容

您能就可能出现的问题提出建议并提供建议吗

谢谢, 帕夫洛斯


Tags: ofthetoinfromnumber视频cfg
1条回答
网友
1楼 · 发布于 2024-06-01 01:50:45

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

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

相关问题 更多 >