gpt4 book ai didi

c++ - dlib 19.6 多分类器训练数据

转载 作者:太空宇宙 更新时间:2023-11-04 12:54:33 25 4
gpt4 key购买 nike

我正在使用 dlib 19.6 c++ 进行对象检测,到目前为止我使用的是如下所示的单一分类 enter image description here ,这些标签是使用 dlib 中的 imglab 生成的。

为此,我使用 fhog_object_detector_ex.cpp .它运行良好,能够检测到物体。

现在我已经定义了如下多分类器。 enter image description here 1.时钟 2.锅

那么我该如何使用/修改fhog_object_detector_ex.cpp训练数据。我知道如何测试图像,

std::vector<object_detector<image_scanner_type> > my_detectors;
my_detectors.push_back(detector1); // clock.svm
my_detectors.push_back(detector2); // pot.svm
my_detectors.push_back(detector3); // any other.svm

std::vector dets2 = evaluate_detectors(my_detectors, image);

但我不确定如何训练数据。我是否需要为每个图像分别标记 2 次并运行 object trainer 2 次?还是可以同时训练 2 个分类器?

最佳答案

Dlib HOG 检测器不支持多类分类器。因此您需要为每个标签训练两个单独的检测器,然后根据您获得检测器标签的权重指数组合检测器在单个图像上运行。

关于c++ - dlib 19.6 多分类器训练数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47149889/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com