简体   繁体   English

Tensorflow 对象检测 API 变量在检查点中不可用

[英]Tensorflow Object detection API Variable is not available in checkpoint

I am trying to retrain an object detection model from Tensorflow's model zoo , but I am getting a looong list of variables that were not found in the checkpoint (see some of the warnings in the list below).我正在尝试从Tensorflow 的模型 zoo重新训练对象检测模型,但我得到了一个在检查点中找不到的变量列表(请参阅下面列表中的一些警告)。

I am using:我在用:

  • Tensoflow version: 1.15.2 Tensoflow 版本:1.15.2
  • Windows 10视窗 10
  • Python 3.6.10蟒蛇 3.6.10

The config file that I am using is the one that comes in the zip file with the pre-trained model and the only thing that I have changed is number of detected classes and the paths.我使用的配置文件是带有预训练模型的 zip 文件中的配置文件,我唯一更改的是检测到的类和路径的数量。

I tried multiple models, but I get the same problem every time.我尝试了多个模型,但每次都遇到相同的问题。

The transfer learning works, but I guess that I'm not using a significant number of pre-trained weights.迁移学习有效,但我想我没有使用大量的预训练权重。 What is causing that?这是什么原因造成的?

Full log can be found here. 完整日志可以在这里找到。

My config file can be found here 我的配置文件可以在这里找到

Warnings:警告:

W0215 22:04:03.197386  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_0/BatchNorm/beta/ExponentialMovingAverage] is not available in checkpoint
W0215 22:04:03.197386  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_0/BatchNorm/beta/RMSProp] is not available in checkpoint
W0215 22:04:03.197386  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_0/BatchNorm/beta/RMSProp_1] is not available in checkpoint
W0215 22:04:03.197386  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_0/BatchNorm/gamma/ExponentialMovingAverage] is not available in checkpoint
W0215 22:04:03.197386  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_0/BatchNorm/gamma/RMSProp] is not available in checkpoint
W0215 22:04:03.197386  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_0/BatchNorm/gamma/RMSProp_1] is not available in checkpoint
W0215 22:04:03.198379  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_0/weights/ExponentialMovingAverage] is not available in checkpoint
W0215 22:04:03.198379  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_0/weights/RMSProp] is not available in checkpoint
W0215 22:04:03.198379  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_0/weights/RMSProp_1] is not available in checkpoint
W0215 22:04:03.198379  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_depthwise/BatchNorm/beta/ExponentialMovingAverage] is not available in checkpoint
W0215 22:04:03.198379  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_depthwise/BatchNorm/beta/RMSProp] is not available in checkpoint
W0215 22:04:03.198379  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_depthwise/BatchNorm/beta/RMSProp_1] is not available in checkpoint
W0215 22:04:03.198379  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_depthwise/BatchNorm/gamma/ExponentialMovingAverage] is not available in checkpoint
W0215 22:04:03.198379  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_depthwise/BatchNorm/gamma/RMSProp] is not available in checkpoint
W0215 22:04:03.198379  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_depthwise/BatchNorm/gamma/RMSProp_1] is not available in checkpoint
W0215 22:04:03.198379  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_depthwise/depthwise_weights/ExponentialMovingAverage] is not available in checkpoint
W0215 22:04:03.198379  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_depthwise/depthwise_weights/RMSProp] is not available in checkpoint
W0215 22:04:03.198379  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_depthwise/depthwise_weights/RMSProp_1] is not available in checkpoint
W0215 22:04:03.199381  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_pointwise/BatchNorm/beta/ExponentialMovingAverage] is not available in checkpoint
W0215 22:04:03.199381  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_pointwise/BatchNorm/beta/RMSProp] is not available in checkpoint
W0215 22:04:03.199381  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_pointwise/BatchNorm/beta/RMSProp_1] is not available in checkpoint
W0215 22:04:03.199381  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_pointwise/BatchNorm/gamma/ExponentialMovingAverage] is not available in checkpoint
W0215 22:04:03.199381  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_pointwise/BatchNorm/gamma/RMSProp] is not available in checkpoint
W0215 22:04:03.199381  5668 variables_helper.py:157] Variable [FeatureExtractor/MobilenetV1/Conv2d_10_pointwise/BatchNorm/gamma/RMSProp_1] is not available in checkpoint

Not sure if this is still relevant but I also encountered this issue and it looks like this might be a display bug as stated here by one of the contributors to the models repo.不知道这仍然是相关的,但我也遇到了这个问题,它看起来像这可能是为说明一个显示问题在这里由贡献者之一模型回购协议。

No matter what the base model is ,this bug will happen just because we use pretrained model to train ssd.If we initialize the ssd model randomly, this won't happen.More,it will use more cpu than randomly initialized when training.(About 55%cpu used compared to 45%)无论基础模型是什么,这个bug都会发生,因为我们使用预训练模型训练ssd。如果我们随机初始化ssd模型,这不会发生。更多,它会比训练时随机初始化使用更多的cpu。(使用了大约 55% 的 CPU,而 45%)

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

相关问题 TensorFlow 对象检测 API 微调检查点 - TensorFlow object detection API fine tune checkpoint Tensorflow,问题加载检查点以通过微调进行对象检测[在检查点中不可用] - Tensorflow, problem loading checkpoint for object detection via fine-tuning[Not available in checkpoint] Tensorflow对象检测API:如何禁用从检查点加载 - Tensorflow object detection API: How to disable loading from checkpoint Tensorflow Object 检测 API:从导出的 Z20F35E630DAF44DBFA4C3F68F539D8C 检查点训练 - Tensorflow Object Detection API: Train from exported model checkpoint 如何使用TensorFlow中的fine_tune_checkpoint Object检测API - How to use the fine_tune_checkpoint in TensorFlow Object Detection API Tensorflow object 检测 API 只评估最新的检查点 - Tensorflow object detection API only evaluates the latest checkpoint 如何使用 TF1 在 TensorFlow 对象检测 API 中正确恢复检查点? - How to properly restore a checkpoint in TensorFlow object detection API with TF1? Tensorflow:使用分类检查点进行对象检测 - Tensorflow: Object Detection using a Classification Checkpoint Tensorflow Object 检测加载检查点失败 - Tensorflow Object Detection fails to load checkpoint Tensorflow 对象检测 API 低损失低置信度 - 检查点不保存权重 - Tensorflow Object Detection API low loss low confidence - checkpoint not saving weights
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM