简体   繁体   English

fast-rcnn对象检测中的误报

[英]False positives in faster-rcnn object detection

I'm training an object detector using tensorflow and the faster_rcnn_inception_v2_coco model and am experiencing a lot of false positives when classifying on a video. 我正在使用tensorflow和faster_rcnn_inception_v2_coco模型训练一个物体探测器,并且在对视频进行分类时遇到很多误报。

After some research I've figured out that I need to add negative images to the training process. 经过一些研究,我发现我需要在训练过程中添加负面图像。

How do I add these to tfrecord files? 如何将这些添加到tfrecord文件? I used the csv to tfrecord file code provided in the tutorial here . 我在这里使用了教程中提供的csv到tfrecord文件代码。

Also it seems that ssd has a hard_example_miner in the config that allows to configure this behaviour but this doesn't seem to be the case for faster rcnn? 此外,似乎ssd在配置中有一个hard_example_miner允许配置此行为,但这似乎不是更快的rcnn的情况? Is there a way to achieve something similar on faster rcnn? 有没有办法在更快的rcnn上实现类似的东西?

I was facing the same issue with faster RCNN, although you cannot actually use hard_example_miner with the faster RCNN model, you can add some background images , ie. 我用更快的RCNN遇到了同样的问题,虽然你实际上不能 将hard_example_miner更快的RCNN模型一起使用,但你可以添加一些背景图像 ,即。 images with no objects (Everything remains the same, except there is not object tag in the xml for that particular picture) 没有对象的图像(一切都保持不变,除了xml中没有该特定图片的对象标记)

One more thing that actually worked wonders for me was using the imgaug library , you can augment the images and the bounding boxes using the same script . 实际上对我来说奇迹的另一件事是使用imgaug ,你可以使用相同的脚本扩充图像和边界框 Try and increase the training data by 10 or 15 times, and then I would suggest you to train again to around 150000-200000 steps. 尝试将训练数据增加10或15倍,然后我建议你再次训练大约150000-200000步。

These two steps helped me reduce the number of false positives effectively. 这两个步骤帮助我有效地减少了误报的数量。

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

相关问题 物体检测,faster-rcnn - Object detection, faster-rcnn Tensorflow对象检测API Faster-RCNN收敛但检测不准确 - Tensorflow Object Detection API Faster-RCNN converges but detection is innacurate 如何去除 Faster RCNN 中的误检(误报) - How to remove false detection (False Positives) in Faster RCNN Tensorflow对象检测API未经训练的Faster-RCNN模型 - Tensorflow Object Detection API Untrained Faster-RCNN Model 在张量流模型中使用更快的RCNN进行小物体检测 - small object detection with faster-RCNN in tensorflow-models 是否有一个适用于TensorFlow对象检测api的Faster-RCNN架构神经网络修剪的示例? - Is there a worked example for neural network pruning for the Faster-RCNN architecture from TensorFlow's object detection api? Tensorflow更快的rcnn提供了良好的检测能力,但仍然可以检测到可可物体的误报 - Tensorflow faster rcnn giving good detection but still detecting false positives with coco objects Tensor Flow 2 Object Detection API2 Batch Non Max Suppression 在 TPU 上训练有素的 Faster-RCNN 网络中似乎不起作用。 这是一个错误吗? - Tensor Flow 2 Object Detection API2 Batch Non Max Suppression in trained Faster-RCNN network on TPU does not seem to work. Is this a bug? 如何在Faster-RCNN中修改匹配器的协议 - How to modify the protocol of matcher in faster-RCNN 更快地训练图像大小 - Training Image Size Faster-RCNN
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM