简体   繁体   English

每10k-12k步骤使用ssd_mobilenet_v2_quantized_300x300_coco的对象检测模型的丢失增加

[英]Loss of Object detection model using ssd_mobilenet_v2_quantized_300x300_coco increases after every 10k-12k steps

I'm re-training ssd_mobilenet_v2_quantized_300x300_coco object detection model on a custom dataset. 我正在自定义数据集上训练ssd_mobilenet_v2_quantized_300x300_coco对象检测模型。 The dataset consists of approx 2.6k images and 19 classes. 该数据集包含约2.6k图像和19个类别。 After the training step reaches 10k-12k the loss graph starts increasing. 训练步骤达到10k-12k后,损耗图开始增加。 This happens even if I change my model to ssd_mobilenet_v2_coco and at the same step range. 即使我将模型更改为ssd_mobilenet_v2_coco并且在相同的步距范围内, ssd_mobilenet_v2_coco发生这种情况。 I couldn't find anything that is related to this behaviour in the config file. 我在配置文件中找不到与此行为相关的任何内容。 Also this disappers when using faster_rcnn models. 当使用faster_rcnn模型时, faster_rcnn消失。 When the issue arises the mAP becomes almost constant. 当问题出现时,mAP几乎变得恒定。 Also tha accuracy doesn't go beyond 50%. 准确度也不会超过50%。 Can anyone explain this behaviour ? 谁能解释这种行为?

Sample Dataset: 样本数据集:

在此输入图像描述

Loss Graph 损失图

a) ssd_mobilenet_v2_quantized_300x300_coco a)ssd_mobilenet_v2_quantized_300x300_coco ssd_mobilenet_v2_quantized_300x300_coco

b) ssd_mobilenet_v2_coco b)ssd_mobilenet_v2_coco

在此输入图像描述

Config File: a) ssd_mobilenet_v2_quantized_300x300_coco 配置文件:a)ssd_mobilenet_v2_quantized_300x300_coco

https://pastebin.com/BBwqEruK https://pastebin.com/BBwqEruK

b) ssd_mobilenet_v2_coco b)ssd_mobilenet_v2_coco

https://pastebin.com/F8K0BhQV https://pastebin.com/F8K0BhQV

What about your training loss? 那你的训练损失呢? Notice that total_loss is the validation loss here. 请注意, total_loss是此处的验证损失。

If your training loss is decreasing while the validation loss is increasing, this is clearly a sign of overfitting, you may use regularization loss during training by adding the following in the config file, in part train_config 如果您的训练损失在减少,而验证损失在增加,这显然是过度拟合的迹象,您可以在训练期间通过在配置文件中的train_config部分中添加以下内容来使用正则化损失

add_regularization_loss: true

just as batch_size: 24 就像batch_size: 24

暂无
暂无

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

相关问题 如何在 google colab tensorflow 1.15.2 上训练自定义对象检测模型 ssd_mobilenet_v1_coco 和 ssd_inception_v2_coco? - how to train a custom object detection model ssd_mobilenet_v1_coco and ssd_inception_v2_coco on google colab tensorflow 1.15.2? 如何将 ssd_mobilenet_v1_COCO_2017_11_17 加载到本地的 object_detection_webcam? - How can I load the ssd_mobilenet_v1_COCO_2017_11_17 to the object_detection_webcam locally? 使用Tensorflow对象检测API改变/波动SSD Mobilenet训练损失 - Varying/Fluctuating SSD Mobilenet Training loss using tensorflow object detection API model_main.py 无法训练 mobilenet ssd v2 - tensorflow object 检测 api - model_main.py fails to traing mobilenet ssd v2 - tensorflow object detection api 减少 SSD-300 的训练步骤 - Reduce Training steps for SSD-300 Tensorflow 的 pb 和 pbtxt 文件在重新训练 MobileNet SSD V1 COCO 后不适用于 OpenCV - Tensorflow' pb and pbtxt files don't work with OpenCV after retraining MobileNet SSD V1 COCO 使用tensorflow时,在哪里可以找到ssd_mobilenet_v1_coco的标签映射文件(pbtxt)? - Where can I find the label map file(pbtxt) of ssd_mobilenet_v1_coco when using tensorflow? 尝试添加警报以检测 model “ssd_mobilenet_v2”,引发错误 - Trying to add an alert to detection model "ssd_mobilenet_v2", throws an error 对象检测tensorflow api中的ssd mobilenet v1可以尝试使用不同于默认值的调整大小形状吗? - Can ssd mobilenet v1 in object detection tensorflow api be tried with different resize shapes than the default ones? 致命的Python错误:在训练模型(faster_rcnn_inception_v2_coco)进行对象检测时,Win 10上的分段错误 - Fatal Python error: Segmentation fault on Win 10 while training the model (faster_rcnn_inception_v2_coco) for object detection
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM