简体   繁体   English

即使损失很低,Tensorboard mAP分数也均为0

[英]Tensorboard mAP scores are all 0, even if the loss is low

I trained a faster-rcnn model on the tensorflow object detection API on a custom dataset. 我在自定义数据集的Tensorflow对象检测API上训练了更快的rcnn模型。 I found that the loss is ~2 after 3.5k steps. 我发现在3.5k步后损失约为2。 However, when I ran eval.py, the mAP scores are all almost 0 as shown below. 但是,当我运行eval.py时,mAP分数几乎都为0,如下所示。 运行eval.py时的张量板标量输出

I do not understand why this is the case. 我不明白为什么会这样。 However, when I look at the images at 3.5k steps, the model has captured some of the boxes as shown below 但是,当我以3.5k的步长查看图像时,该模型捕获了一些框,如下所示

3.5k次迭代后,faster-rcnn模型的输出

Can someone please explain why the mAP scores are close to zero, even though the model has learned to output quite a few boxes? 有人可以解释为什么即使模型已经学会输出很多盒子,但是mAP分数却接近于零?

The images are showing AP@0.5IOU scores of each category not mAP. 图像显示每个类别的AP@0.5IOU得分,而不是mAP。 As you can see in PerformanceByCategory, it gets score of each category in your case it shows 'awning-tricycle', 'bicycle', 'bus', 'car', 'ignored regions' etc... 正如您在PerformanceByCategory中看到的那样,在您的情况下,它会获得每个类别的得分,并显示“遮阳篷三轮车”,“自行车”,“公共汽车”,“汽车”,“被忽略的区域”等...

As in the image output, the categories detected such as 'car', 'motor', 'pedestrian' are showing AP scores deviated from zero, while the rest category AP scores are zero. 如图像输出中所示,检测到的类别(例如“汽车”,“汽车”,“行人”)显示AP分数偏离零,而其余类别的AP分数为零。 It means that the model still has not found the corresponding categories in the testing images. 这意味着该模型仍未在测试图像中找到相应的类别。

This could be due to many variables in your experiment. 这可能是由于您的实验中存在许多变量。 Here are some of the questions you could ask yourself. 以下是您可能会问自己的一些问题。 How many training images have you distributed per category ? 您为每个类别分配了多少张训练图像? The ratio of training images per category should be more or less equal and also the testing images per category as well. 每个类别的训练图像的比例应大致相等,每个类别的测试图像的比例也应大致相等。 If there are more training images for cars and pedestrians then the model would be more likely to pick up car and pedestrian objects and therefore shows non-zero AP scores for them whereas bicycle is showing zero AP score. 如果有更多针对汽车和行人的训练图像,则该模型将更有可能拾取汽车和行人的物体,因此会为他们显示非零的AP得分,而自行车的AP得分为零。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM