训练多类目标检测器(YOLOv4)

发布于 2025-01-13 02:54:22 字数 350 浏览 5 评论 0原文

我想在 5 个类别上训练我的 YOLOv4 检测器[Person,Car,Motorcycle,Bus,Truck]。我使用了大约 2000 张图像进行训练,使用 500 张图像进行验证。 我使用的数据集来自OID或来自COCO。

主要问题是,当训练结束时,检测器每次只能在图像中找到一个类别。例如,如果车里有人,则它仅返回 CarPerson 边界框检测。

我看到每个图像上的 .txt 注释仅适用于一个类。 我自己注释 10,000 张图像是很困难的。

所有教程通常只检测图像中的一类。

关于如何在所有 5 个类别上训练我的模型有什么想法吗?

I want to train my YOLOv4 detector on 5 classes [Person,Car,Motorcycle,Bus,Truck]. I used around 2000 images for training and 500 for validation.
The dataset I used is from OID or from COCO.

The main problem is that, when the training is over, the detector finds only one class in the image every time. For example, if it's a human in a car, it returns only the Car or the Person bounding box detection.

I saw that the .txt annotation on every image is only for one class.
It's difficult to annotate by myself 10.000 images.

All the tutorials usually detect only one class in the image.

Any ideas on how to train my model on all 5 classes?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岛歌少女 2025-01-20 02:54:22

我终于找到了解决方案。

问题是 OID 数据集下载具有特定类别的图像,例如人、汽车等。Louis

Lac 提到我必须在具有所有相关类别的数据集上训练我的模型

i finally found the solution.

The problem was that OID dataset downloads images with one specific class, like person, car etc.

AS Louis Lac mentioned i must train my model on dataset with all relevant classes

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文