models icon indicating copy to clipboard operation
models copied to clipboard

SSD MobileNet: Cannot finetune from checkpoint

Open groakat opened this issue 9 years ago • 40 comments

Hi,

I am trying to finetune SDD MobileNet and I am failing because somehow the variables are not found in the checkpoint even though they are present. Finetunig FasterRCNN on the same dataset works fine btw.

/ExponentialMovingAverage not found in checkpoint
2017-07-02 22:59:48.794763: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_1/ClassPredictor/biases not fo
und in checkpoint
2017-07-02 22:59:48.794821: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_1/BoxEncodingPredictor/biases/
RMSProp_1 not found in checkpoint
2017-07-02 22:59:48.810102: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/BoxEncodingPredictor/biases/
ExponentialMovingAverage not found in checkpoint
2017-07-02 22:59:48.813253: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key FeatureExtractor/MobilenetV1/Conv2d_9_point
wise/BatchNorm/moving_variance not found in checkpoint
2017-07-02 22:59:48.813408: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/BoxEncodingPredictor/biases/
RMSProp not found in checkpoint
2017-07-02 22:59:48.813459: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_1/ClassPredictor/biases/RMSPro
p_1 not found in checkpoint
2017-07-02 22:59:48.813511: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_1/ClassPredictor/weights/Expon
entialMovingAverage not found in checkpoint
2017-07-02 22:59:48.813561: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/BoxEncodingPredictor/biases
not found in checkpoint
2017-07-02 22:59:48.813613: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_1/ClassPredictor/weights/RMSPr
op not found in checkpoint
2017-07-02 22:59:48.813666: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_1/ClassPredictor/weights/RMSPr
op_1 not found in checkpoint
2017-07-02 22:59:48.813721: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_1/ClassPredictor/weights not f
ound in checkpoint
2017-07-02 22:59:48.818346: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/BoxEncodingPredictor/weights
 not found in checkpoint
2017-07-02 22:59:48.829594: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/BoxEncodingPredictor/weights
/RMSProp_1 not found in checkpoint
2017-07-02 22:59:48.829707: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/ClassPredictor/biases/Expone
ntialMovingAverage not found in checkpoint
2017-07-02 22:59:48.832935: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/BoxEncodingPredictor/biases/
RMSProp_1 not found in checkpoint
2017-07-02 22:59:48.833103: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/ClassPredictor/biases not fo
und in checkpoint
2017-07-02 22:59:48.833143: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/BoxEncodingPredictor/weights
/ExponentialMovingAverage not found in checkpoint
2017-07-02 22:59:48.833195: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key FeatureExtractor/MobilenetV1/Conv2d_9_point
wise/BatchNorm/moving_mean not found in checkpoint
2017-07-02 22:59:48.833244: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/BoxEncodingPredictor/weights
/RMSProp not found in checkpoint
2017-07-02 22:59:48.833294: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/ClassPredictor/biases/RMSPro
p not found in checkpoint
2017-07-02 22:59:48.835462: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/ClassPredictor/biases/RMSPro
p_1 not found in checkpoint
2017-07-02 22:59:48.835508: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/ClassPredictor/weights not f
ound in checkpoint
2017-07-02 22:59:48.885331: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/ClassPredictor/weights/RMSPr
op not found in checkpoint
2017-07-02 22:59:48.887146: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/BoxEncodingPredictor/biases/
ExponentialMovingAverage not found in checkpoint
2017-07-02 22:59:48.887275: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/BoxEncodingPredictor/biases/
RMSProp_1 not found in checkpoint
2017-07-02 22:59:48.887440: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/ClassPredictor/weights/Expon
entialMovingAverage not found in checkpoint
2017-07-02 22:59:48.887446: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/BoxEncodingPredictor/biases
not found in checkpoint
2017-07-02 22:59:48.887461: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/BoxEncodingPredictor/biases/
RMSProp not found in checkpoint
2017-07-02 22:59:48.887467: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_2/ClassPredictor/weights/RMSPr
op_1 not found in checkpoint
2017-07-02 22:59:48.887513: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key FeatureExtractor/MobilenetV1/Conv2d_9_point
wise/BatchNorm/gamma/RMSProp_1 not found in checkpoint
2017-07-02 22:59:48.890507: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/BoxEncodingPredictor/weights
 not found in checkpoint
2017-07-02 22:59:48.891118: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/BoxEncodingPredictor/weights
/ExponentialMovingAverage not found in checkpoint
2017-07-02 22:59:48.894821: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/ClassPredictor/biases/Expone
ntialMovingAverage not found in checkpoint
2017-07-02 22:59:48.899697: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/BoxEncodingPredictor/weights
/RMSProp not found in checkpoint
2017-07-02 22:59:48.902223: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/ClassPredictor/weights not f
ound in checkpoint
2017-07-02 22:59:48.902278: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/BoxEncodingPredictor/weights
/RMSProp_1 not found in checkpoint
2017-07-02 22:59:48.903933: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key FeatureExtractor/MobilenetV1/Conv2d_9_point
wise/BatchNorm/gamma/RMSProp not found in checkpoint
2017-07-02 22:59:48.904057: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/ClassPredictor/weights/Expon
entialMovingAverage not found in checkpoint
2017-07-02 22:59:48.904106: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/ClassPredictor/biases not fo
und in checkpoint
2017-07-02 22:59:48.904158: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/ClassPredictor/biases/RMSPro
p_1 not found in checkpoint
2017-07-02 22:59:48.904214: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/ClassPredictor/biases/RMSPro
p not found in checkpoint
2017-07-02 22:59:48.904274: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/ClassPredictor/weights/RMSPr
op not found in checkpoint
2017-07-02 22:59:48.907282: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_4/BoxEncodingPredictor/biases
not found in checkpoint
2017-07-02 22:59:48.907388: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_3/ClassPredictor/weights/RMSPr
op_1 not found in checkpoint
2017-07-02 22:59:48.955458: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key FeatureExtractor/MobilenetV1/Conv2d_9_point
wise/BatchNorm/gamma/ExponentialMovingAverage not found in checkpoint
2017-07-02 22:59:48.957467: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_4/BoxEncodingPredictor/biases/
RMSProp not found in checkpoint
2017-07-02 22:59:48.957677: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_4/BoxEncodingPredictor/weights
/ExponentialMovingAverage not found in checkpoint
2017-07-02 22:59:48.957730: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_4/BoxEncodingPredictor/biases/
ExponentialMovingAverage not found in checkpoint
2017-07-02 22:59:48.957773: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_4/BoxEncodingPredictor/weights
/RMSProp_1 not found in checkpoint
2017-07-02 22:59:48.957865: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_4/BoxEncodingPredictor/weights
 not found in checkpoint
2017-07-02 22:59:48.957902: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_4/BoxEncodingPredictor/weights
/RMSProp not found in checkpoint
2017-07-02 22:59:48.957823: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_4/BoxEncodingPredictor/biases/
RMSProp_1 not found in checkpoint
2017-07-02 22:59:48.961594: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key FeatureExtractor/MobilenetV1/Conv2d_9_point
wise/BatchNorm/gamma not found in checkpoint
2017-07-02 22:59:48.966140: W tensorflow/core/framework/op_kernel.cc:1165] Not found: Key BoxPredictor_4/ClassPredictor/weights/Expon
entialMovingAverage not found in checkpoint

...


Traceback (most recent call last):
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1285, in _do_call
    return fn(*args)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1264, in _run_fn
    status, run_metadata)
  File "/opt/conda/lib/python3.6/contextlib.py", line 89, in __exit__
    next(self.gen)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_st
atus
    pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.NotFoundError: Key BoxPredictor_0/BoxEncodingPredictor/biases/ExponentialMovingAverage not fo
und in checkpoint
         [[Node: save_1/RestoreV2_1 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save_1/Const
_0_0, save_1/RestoreV2_1/tensor_names, save_1/RestoreV2_1/shape_and_slices)]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/models/object_detection/train.py", line 198, in <module>
    tf.app.run()
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "/tmp/models/object_detection/train.py", line 194, in main
    worker_job_name, is_chief, FLAGS.train_dir)
  File "/tmp/models/object_detection/trainer.py", line 290, in train
    saver=saver)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/contrib/slim/python/slim/learning.py", line 738, in train
    master, start_standard_services=False, config=session_config) as sess:
  File "/opt/conda/lib/python3.6/contextlib.py", line 82, in __enter__
    return next(self.gen)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/training/supervisor.py", line 964, in managed_session
    self.stop(close_summary_writer=close_summary_writer)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/training/supervisor.py", line 792, in stop
    stop_grace_period_secs=self._stop_grace_secs)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/training/coordinator.py", line 389, in join
    six.reraise(*self._exc_info_to_raise)
  File "/opt/conda/lib/python3.6/site-packages/six.py", line 686, in reraise
    raise value
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/training/supervisor.py", line 953, in managed_session
    start_standard_services=start_standard_services)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/training/supervisor.py", line 708, in prepare_or_wait_for_session
    init_feed_dict=self._init_feed_dict, init_fn=self._init_fn)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/training/session_manager.py", line 273, in prepare_session
    config=config)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/training/session_manager.py", line 205, in _restore_checkpoint
    saver.restore(sess, ckpt.model_checkpoint_path)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1555, in restore
    {self.saver_def.filename_tensor_name: save_path})
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 896, in run
    run_metadata_ptr)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1124, in _run
    feed_dict_tensor, options, run_metadata)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1279, in _do_run
    options, run_metadata)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1298, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.NotFoundError: Key BoxPredictor_0/BoxEncodingPredictor/biases/ExponentialMovingAverage not fo
und in checkpoint
         [[Node: save_1/RestoreV2_1 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save_1/Const
_0_0, save_1/RestoreV2_1/tensor_names, save_1/RestoreV2_1/shape_and_slices)]]

Caused by op 'save_1/RestoreV2_1', defined at:
  File "/tmp/models/object_detection/train.py", line 198, in <module>
    tf.app.run()
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "/tmp/models/object_detection/train.py", line 194, in main
    worker_job_name, is_chief, FLAGS.train_dir)
  File "/tmp/models/object_detection/trainer.py", line 275, in train
    keep_checkpoint_every_n_hours=keep_checkpoint_every_n_hours)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1140, in __init__
    self.build()
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1172, in build
    filename=self._filename)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 688, in build
    restore_sequentially, reshape)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 407, in _AddRestoreOps
    tensors = self.restore_op(filename_tensor, saveable, preferred_shard)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 247, in restore_op
    [spec.tensor.dtype])[0])
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/ops/gen_io_ops.py", line 661, in restore_v2
    dtypes=dtypes, name=name)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
    op_def=op_def)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2534, in create_op
    original_op=self._default_original_op, op_def=op_def)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1203, in __init__
    self._traceback = self._graph._extract_stack()  # pylint: disable=protected-access

NotFoundError (see above for traceback): Key BoxPredictor_0/BoxEncodingPredictor/biases/ExponentialMovingAverage not found in checkpo
int
         [[Node: save_1/RestoreV2_1 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save_1/Const
_0_0, save_1/RestoreV2_1/tensor_names, save_1/RestoreV2_1/shape_and_slices)]]

ERROR:tensorflow:==================================
Object was never used (type <class 'tensorflow.python.framework.ops.Tensor'>):
<tf.Tensor 'init_ops/report_uninitialized_variables/boolean_mask/Gather:0' shape=(?,) dtype=string>
If you want to mark it as used call its "mark_used()" method.
It was originally created here:
['File "/tmp/models/object_detection/train.py", line 198, in <module>\n    tf.app.run()', 'File "/opt/conda/lib/python3.6/site-packag
es/tensorflow/python/platform/app.py", line 48, in run\n    _sys.exit(main(_sys.argv[:1] + flags_passthrough))', 'File "/tmp/models/o
bject_detection/train.py", line 194, in main\n    worker_job_name, is_chief, FLAGS.train_dir)', 'File "/tmp/models/object_detection/t
rainer.py", line 290, in train\n    saver=saver)', 'File "/opt/conda/lib/python3.6/site-packages/tensorflow/contrib/slim/python/slim/
learning.py", line 663, in train\n    ready_op = tf_variables.report_uninitialized_variables()', 'File "/opt/conda/lib/python3.6/site
-packages/tensorflow/python/util/tf_should_use.py", line 170, in wrapped\n    return _add_should_use_warning(fn(*args, **kwargs))', '
File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/util/tf_should_use.py", line 139, in _add_should_use_warning\n    wrap
ped = TFShouldUseWarningWrapper(x)', 'File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/util/tf_should_use.py", line 96,
 in __init__\n    stack = [s.strip() for s in traceback.format_stack()]']

If I inspect the checkpoint, all these variables seem to exist:

FeatureExtractor/MobilenetV1/Conv2d_6_depthwise/BatchNorm/gamma (DT_FLOAT) [256]
FeatureExtractor/MobilenetV1/Conv2d_6_depthwise/BatchNorm/gamma/ExponentialMovingAverage (DT_FLOAT) [256]
FeatureExtractor/MobilenetV1/Conv2d_6_depthwise/BatchNorm/gamma/RMSProp (DT_FLOAT) [256]
FeatureExtractor/MobilenetV1/Conv2d_6_depthwise/BatchNorm/gamma/RMSProp_1 (DT_FLOAT) [256]
FeatureExtractor/MobilenetV1/Conv2d_6_depthwise/BatchNorm/moving_mean (DT_FLOAT) [256]
FeatureExtractor/MobilenetV1/Conv2d_6_depthwise/BatchNorm/moving_variance (DT_FLOAT) [256]
FeatureExtractor/MobilenetV1/Conv2d_6_depthwise/depthwise_weights (DT_FLOAT) [3,3,256,1]
FeatureExtractor/MobilenetV1/Conv2d_6_depthwise/depthwise_weights/ExponentialMovingAverage (DT_FLOAT) [3,3,256,1]
FeatureExtractor/MobilenetV1/Conv2d_6_depthwise/depthwise_weights/RMSProp (DT_FLOAT) [3,3,256,1]
FeatureExtractor/MobilenetV1/Conv2d_6_depthwise/depthwise_weights/RMSProp_1 (DT_FLOAT) [3,3,256,1]
FeatureExtractor/MobilenetV1/Conv2d_6_pointwise/BatchNorm/beta (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_6_pointwise/BatchNorm/beta/ExponentialMovingAverage (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_6_pointwise/BatchNorm/beta/RMSProp (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_6_pointwise/BatchNorm/beta/RMSProp_1 (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_6_pointwise/BatchNorm/gamma (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_6_pointwise/BatchNorm/gamma/ExponentialMovingAverage (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_6_pointwise/BatchNorm/gamma/RMSProp (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_6_pointwise/BatchNorm/gamma/RMSProp_1 (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_6_pointwise/BatchNorm/moving_mean (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_6_pointwise/BatchNorm/moving_variance (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_6_pointwise/weights (DT_FLOAT) [1,1,256,512]
FeatureExtractor/MobilenetV1/Conv2d_6_pointwise/weights/ExponentialMovingAverage (DT_FLOAT) [1,1,256,512]
FeatureExtractor/MobilenetV1/Conv2d_6_pointwise/weights/RMSProp (DT_FLOAT) [1,1,256,512]
FeatureExtractor/MobilenetV1/Conv2d_6_pointwise/weights/RMSProp_1 (DT_FLOAT) [1,1,256,512]
FeatureExtractor/MobilenetV1/Conv2d_7_depthwise/BatchNorm/beta (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_depthwise/BatchNorm/beta/ExponentialMovingAverage (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_depthwise/BatchNorm/beta/RMSProp (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_depthwise/BatchNorm/beta/RMSProp_1 (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_depthwise/BatchNorm/gamma (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_depthwise/BatchNorm/gamma/ExponentialMovingAverage (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_depthwise/BatchNorm/gamma/RMSProp (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_depthwise/BatchNorm/gamma/RMSProp_1 (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_depthwise/BatchNorm/moving_mean (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_depthwise/BatchNorm/moving_variance (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_depthwise/depthwise_weights (DT_FLOAT) [3,3,512,1]
FeatureExtractor/MobilenetV1/Conv2d_7_depthwise/depthwise_weights/ExponentialMovingAverage (DT_FLOAT) [3,3,512,1]
FeatureExtractor/MobilenetV1/Conv2d_7_depthwise/depthwise_weights/RMSProp (DT_FLOAT) [3,3,512,1]
FeatureExtractor/MobilenetV1/Conv2d_7_depthwise/depthwise_weights/RMSProp_1 (DT_FLOAT) [3,3,512,1]
FeatureExtractor/MobilenetV1/Conv2d_7_pointwise/BatchNorm/beta (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_pointwise/BatchNorm/beta/ExponentialMovingAverage (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_pointwise/BatchNorm/beta/RMSProp (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_pointwise/BatchNorm/beta/RMSProp_1 (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_pointwise/BatchNorm/gamma (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_pointwise/BatchNorm/gamma/ExponentialMovingAverage (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_pointwise/BatchNorm/gamma/RMSProp (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_pointwise/BatchNorm/gamma/RMSProp_1 (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_pointwise/BatchNorm/moving_mean (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_pointwise/BatchNorm/moving_variance (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_7_pointwise/weights (DT_FLOAT) [1,1,512,512]
FeatureExtractor/MobilenetV1/Conv2d_7_pointwise/weights/ExponentialMovingAverage (DT_FLOAT) [1,1,512,512]
FeatureExtractor/MobilenetV1/Conv2d_7_pointwise/weights/RMSProp (DT_FLOAT) [1,1,512,512]
FeatureExtractor/MobilenetV1/Conv2d_7_pointwise/weights/RMSProp_1 (DT_FLOAT) [1,1,512,512]
FeatureExtractor/MobilenetV1/Conv2d_8_depthwise/BatchNorm/beta (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_depthwise/BatchNorm/beta/ExponentialMovingAverage (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_depthwise/BatchNorm/beta/RMSProp (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_depthwise/BatchNorm/beta/RMSProp_1 (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_depthwise/BatchNorm/gamma (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_depthwise/BatchNorm/gamma/ExponentialMovingAverage (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_depthwise/BatchNorm/gamma/RMSProp (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_depthwise/BatchNorm/gamma/RMSProp_1 (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_depthwise/BatchNorm/moving_mean (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_depthwise/BatchNorm/moving_variance (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_depthwise/depthwise_weights (DT_FLOAT) [3,3,512,1]
FeatureExtractor/MobilenetV1/Conv2d_8_depthwise/depthwise_weights/ExponentialMovingAverage (DT_FLOAT) [3,3,512,1]
FeatureExtractor/MobilenetV1/Conv2d_8_depthwise/depthwise_weights/RMSProp (DT_FLOAT) [3,3,512,1]
FeatureExtractor/MobilenetV1/Conv2d_8_depthwise/depthwise_weights/RMSProp_1 (DT_FLOAT) [3,3,512,1]
FeatureExtractor/MobilenetV1/Conv2d_8_pointwise/BatchNorm/beta (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_pointwise/BatchNorm/beta/ExponentialMovingAverage (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_pointwise/BatchNorm/beta/RMSProp (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_pointwise/BatchNorm/beta/RMSProp_1 (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_pointwise/BatchNorm/gamma (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_pointwise/BatchNorm/gamma/ExponentialMovingAverage (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_pointwise/BatchNorm/gamma/RMSProp (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_pointwise/BatchNorm/gamma/RMSProp_1 (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_pointwise/BatchNorm/moving_mean (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_pointwise/BatchNorm/moving_variance (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_8_pointwise/weights (DT_FLOAT) [1,1,512,512]
FeatureExtractor/MobilenetV1/Conv2d_8_pointwise/weights/ExponentialMovingAverage (DT_FLOAT) [1,1,512,512]
FeatureExtractor/MobilenetV1/Conv2d_8_pointwise/weights/RMSProp (DT_FLOAT) [1,1,512,512]
FeatureExtractor/MobilenetV1/Conv2d_8_pointwise/weights/RMSProp_1 (DT_FLOAT) [1,1,512,512]
FeatureExtractor/MobilenetV1/Conv2d_9_depthwise/BatchNorm/beta (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_depthwise/BatchNorm/beta/ExponentialMovingAverage (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_depthwise/BatchNorm/beta/RMSProp (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_depthwise/BatchNorm/beta/RMSProp_1 (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_depthwise/BatchNorm/gamma (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_depthwise/BatchNorm/gamma/ExponentialMovingAverage (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_depthwise/BatchNorm/gamma/RMSProp (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_depthwise/BatchNorm/gamma/RMSProp_1 (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_depthwise/BatchNorm/moving_mean (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_depthwise/BatchNorm/moving_variance (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_depthwise/depthwise_weights (DT_FLOAT) [3,3,512,1]
FeatureExtractor/MobilenetV1/Conv2d_9_depthwise/depthwise_weights/ExponentialMovingAverage (DT_FLOAT) [3,3,512,1]
FeatureExtractor/MobilenetV1/Conv2d_9_depthwise/depthwise_weights/RMSProp (DT_FLOAT) [3,3,512,1]
FeatureExtractor/MobilenetV1/Conv2d_9_depthwise/depthwise_weights/RMSProp_1 (DT_FLOAT) [3,3,512,1]
FeatureExtractor/MobilenetV1/Conv2d_9_pointwise/BatchNorm/beta (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_pointwise/BatchNorm/beta/ExponentialMovingAverage (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_pointwise/BatchNorm/beta/RMSProp (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_pointwise/BatchNorm/beta/RMSProp_1 (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_pointwise/BatchNorm/gamma (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_pointwise/BatchNorm/gamma/ExponentialMovingAverage (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_pointwise/BatchNorm/gamma/RMSProp (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_pointwise/BatchNorm/gamma/RMSProp_1 (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_pointwise/BatchNorm/moving_mean (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_pointwise/BatchNorm/moving_variance (DT_FLOAT) [512]
FeatureExtractor/MobilenetV1/Conv2d_9_pointwise/weights (DT_FLOAT) [1,1,512,512]
FeatureExtractor/MobilenetV1/Conv2d_9_pointwise/weights/ExponentialMovingAverage (DT_FLOAT) [1,1,512,512]
FeatureExtractor/MobilenetV1/Conv2d_9_pointwise/weights/RMSProp (DT_FLOAT) [1,1,512,512]
FeatureExtractor/MobilenetV1/Conv2d_9_pointwise/weights/RMSProp_1 (DT_FLOAT) [1,1,512,512]
global_step (DT_INT64) []

I am using the checkpoint ssd_mobilenet_v1_coco_11_06_2017.tar.gz from the model zoo, tensorflow 1.2 and the master branch of tensorflow/models

groakat avatar Jul 02 '17 23:07 groakat

How did you train the net? Could you tell me? Thanks

xhzcyc avatar Jul 03 '17 00:07 xhzcyc

I downloaded the pretraine model from http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_coco_11_06_2017.tar.gz

and followed the tutorial https://github.com/tensorflow/models/blob/master/object_detection/g3doc/running_locally.md using the Oxford Pets sample config file (only changed the number of classes and the paths). If I do the same steps with the pretrained FasterRCNN model, everything works.

groakat avatar Jul 03 '17 06:07 groakat

BTW Im using Python 3.6, so I had the change an iteritems() to items(), to get rid of this error I am getting from the plain master code

Traceback (most recent call last):
  File "/tmp/models/object_detection/train.py", line 198, in <module>
    tf.app.run()
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "/tmp/models/object_detection/train.py", line 194, in main
    worker_job_name, is_chief, FLAGS.train_dir)
  File "/tmp/models/object_detection/trainer.py", line 184, in train
    data_augmentation_options)
  File "/tmp/models/object_detection/trainer.py", line 77, in _create_input_queue
    prefetch_queue_capacity=prefetch_queue_capacity)
  File "/tmp/models/object_detection/core/batcher.py", line 87, in __init__
    for key, tensor in tensor_dict.iteritems()})
AttributeError: 'dict' object has no attribute 'iteritems'
diff --git a/object_detection/core/batcher.py b/object_detection/core/batcher.py
index 2325a5e..c5dfb71 100644
--- a/object_detection/core/batcher.py
+++ b/object_detection/core/batcher.py
@@ -84,7 +84,7 @@ class BatchQueue(object):
     # Remember runtime shapes to unpad tensors after batching.
     runtime_shapes = collections.OrderedDict(
         {(key + rt_shape_str): tf.shape(tensor)
-         for key, tensor in tensor_dict.iteritems()})
+         for key, tensor in tensor_dict.items()})

     all_tensors = tensor_dict
     all_tensors.update(runtime_shapes)

groakat avatar Jul 03 '17 06:07 groakat

I also have similar issue.

python object_detection/train.py --logtostderr --pipeline_config_path=./object_detection/samples/configs/rfcn_resnet101_pets.config --train_dir=object_detection/pet_train

W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv1/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv1/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv2/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv1/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_6/bottleneck_v1/conv3/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv2/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv2/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv1/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv1/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_6/bottleneck_v1/conv3/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_6/bottleneck_v1/conv3/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_6/bottleneck_v1/conv3/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv2/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv2/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv2/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv2/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_6/bottleneck_v1/conv3/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv3/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv3/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv3/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv2/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv3/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv3/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv1/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv3/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv3/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv1/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_7/bottleneck_v1/conv3/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv2/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv1/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv1/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv2/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv2/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv2/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv3/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv3/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv2/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv3/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv1/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv1/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv1/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv2/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv3/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv2/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv1/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv1/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv3/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv3/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv3/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv3/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_8/bottleneck_v1/conv2/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv1/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv3/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv1/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv2/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv2/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv2/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv1/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv1/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv1/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv2/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv3/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv2/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv3/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv2/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv1/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv2/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv2/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv1/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv1/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv3/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv3/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv3/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv3/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block3/unit_9/bottleneck_v1/conv3/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv3/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv3/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv3/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv1/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv1/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv1/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv2/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv3/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv2/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv3/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv1/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv3/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv2/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/conv1/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv1/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv3/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv3/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv2/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv3/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv2/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/conv1/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/conv1/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/conv1/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/block4/unit_3/bottleneck_v1/conv3/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/conv1/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageBoxPredictor/class_predictions/biases/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageBoxPredictor/class_predictions/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageBoxPredictor/class_predictions/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageBoxPredictor/reduce_depth/biases not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageBoxPredictor/reduce_depth/biases/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/conv1/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/conv1/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageBoxPredictor/class_predictions/biases not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key FirstStageFeatureExtractor/resnet_v1_101/conv1/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageBoxPredictor/refined_locations/biases/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageBoxPredictor/reduce_depth/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageBoxPredictor/reduce_depth/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageBoxPredictor/refined_locations/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageBoxPredictor/refined_locations/biases not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageBoxPredictor/refined_locations/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/beta not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/gamma not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/moving_variance not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/gamma/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/moving_mean not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/weights/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/BatchNorm/beta/Momentum not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/weights not found in checkpoint W tensorflow/core/framework/op_kernel.cc:993] Not found: Key SecondStageFeatureExtractor/resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/BatchNorm/beta not found in checkpoint INFO:tensorflow:Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.NotFoundError'>, Key FirstStageFeatureExtractor/resnet_v1_101/block1/unit_1/bottleneck_v1/conv1/BatchNorm/gamma/Momentum not found in checkpoint [[Node: save_1/RestoreV2_15 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save_1/Const_0, save_1/RestoreV2_15/tensor_names, save_1/RestoreV2_15/shape_and_slices)]]

Caused by op u'save_1/RestoreV2_15', defined at: File "object_detection/train.py", line 198, in tf.app.run() File "/usr/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 44, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "object_detection/train.py", line 194, in main worker_job_name, is_chief, FLAGS.train_dir) File "build/bdist.linux-x86_64/egg/object_detection/trainer.py", line 275, in train keep_checkpoint_every_n_hours=keep_checkpoint_every_n_hours) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1040, in init self.build() File "/usr/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1070, in build restore_sequentially=self._restore_sequentially) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 675, in build restore_sequentially, reshape) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 402, in _AddRestoreOps tensors = self.restore_op(filename_tensor, saveable, preferred_shard) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 242, in restore_op [spec.tensor.dtype])[0]) File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/gen_io_ops.py", line 668, in restore_v2 dtypes=dtypes, name=name) File "/usr/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 763, in apply_op op_def=op_def) File "/usr/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2327, in create_op original_op=self._default_original_op, op_def=op_def) File "/usr/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1226, in init self._traceback = _extract_stack()

NotFoundError (see above for traceback): Key FirstStageFeatureExtractor/resnet_v1_101/block1/unit_1/bottleneck_v1/conv1/BatchNorm/gamma/Momentum not found in checkpoint [[Node: save_1/RestoreV2_15 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save_1/Const_0, save_1/RestoreV2_15/tensor_names, save_1/RestoreV2_15/shape_and_slices)]]

Traceback (most recent call last): File "object_detection/train.py", line 198, in tf.app.run() File "/usr/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 44, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "object_detection/train.py", line 194, in main worker_job_name, is_chief, FLAGS.train_dir) File "build/bdist.linux-x86_64/egg/object_detection/trainer.py", line 290, in train saver=saver) File "/usr/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/learning.py", line 776, in train master, start_standard_services=False, config=session_config) as sess: File "/usr/lib64/python2.7/contextlib.py", line 17, in enter return self.gen.next() File "/usr/lib/python2.7/site-packages/tensorflow/python/training/supervisor.py", line 960, in managed_session self.stop(close_summary_writer=close_summary_writer) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/supervisor.py", line 788, in stop stop_grace_period_secs=self._stop_grace_secs) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/coordinator.py", line 386, in join six.reraise(*self._exc_info_to_raise) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/supervisor.py", line 949, in managed_session start_standard_services=start_standard_services) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/supervisor.py", line 706, in prepare_or_wait_for_session init_feed_dict=self._init_feed_dict, init_fn=self._init_fn) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/session_manager.py", line 256, in prepare_session config=config) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/session_manager.py", line 188, in _restore_checkpoint saver.restore(sess, ckpt.model_checkpoint_path) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1428, in restore {self.saver_def.filename_tensor_name: save_path}) File "/usr/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 767, in run run_metadata_ptr) File "/usr/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 965, in _run feed_dict_string, options, run_metadata) File "/usr/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1015, in _do_run target_list, options, run_metadata) File "/usr/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1035, in _do_call raise type(e)(node_def, op, message) tensorflow.python.framework.errors_impl.NotFoundError: Key FirstStageFeatureExtractor/resnet_v1_101/block1/unit_1/bottleneck_v1/conv1/BatchNorm/gamma/Momentum not found in checkpoint [[Node: save_1/RestoreV2_15 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save_1/Const_0, save_1/RestoreV2_15/tensor_names, save_1/RestoreV2_15/shape_and_slices)]]

Caused by op u'save_1/RestoreV2_15', defined at: File "object_detection/train.py", line 198, in tf.app.run() File "/usr/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 44, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "object_detection/train.py", line 194, in main worker_job_name, is_chief, FLAGS.train_dir) File "build/bdist.linux-x86_64/egg/object_detection/trainer.py", line 275, in train keep_checkpoint_every_n_hours=keep_checkpoint_every_n_hours) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1040, in init self.build() File "/usr/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1070, in build restore_sequentially=self._restore_sequentially) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 675, in build restore_sequentially, reshape) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 402, in _AddRestoreOps tensors = self.restore_op(filename_tensor, saveable, preferred_shard) File "/usr/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 242, in restore_op [spec.tensor.dtype])[0]) File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/gen_io_ops.py", line 668, in restore_v2 dtypes=dtypes, name=name) File "/usr/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 763, in apply_op op_def=op_def) File "/usr/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2327, in create_op original_op=self._default_original_op, op_def=op_def) File "/usr/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1226, in init self._traceback = _extract_stack()

NotFoundError (see above for traceback): Key FirstStageFeatureExtractor/resnet_v1_101/block1/unit_1/bottleneck_v1/conv1/BatchNorm/gamma/Momentum not found in checkpoint [[Node: save_1/RestoreV2_15 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save_1/Const_0, save_1/RestoreV2_15/tensor_names, save_1/RestoreV2_15/shape_and_slices)]]

is03wlei avatar Jul 03 '17 11:07 is03wlei

@groakat @is03wlei Make sure that the path --train_dir is initialized when you did your training. I had the same problem before, it was because in my --train_dir there was an checkpoint file of a different model, so when you run with the current model, this wrong checkpoint file will be searched and used instead .

chenyuZha avatar Jul 06 '17 20:07 chenyuZha

@chenyuZha How to initialize --train_dir?

is03wlei avatar Jul 10 '17 08:07 is03wlei

@is03wlei just remove the old checkpoints in the folder or you indicate a new path of --train_dir.

chenyuZha avatar Jul 10 '17 08:07 chenyuZha

@chenyuZha It works. Thanks

is03wlei avatar Jul 11 '17 03:07 is03wlei

I downloaded the ssd mobilenet tar.gz . I have an empty train_dir, and I have put the checkpoints in the data folder, it still gives me the following error: Traceback (most recent call last): File "train.py", line 198, in <module> tf.app.run() File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py", line 48, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "train.py", line 194, in main worker_job_name, is_chief, FLAGS.train_dir) File "/usr/local/lib/python3.5/dist-packages/tensorflow/models/object_detection/trainer.py", line 216, in train from_detection_checkpoint=train_config.from_detection_checkpoint) File "/usr/local/lib/python3.5/dist-packages/tensorflow/models/object_detection/meta_architectures/ssd_meta_arch.py", line 590, in restore_fn saver = tf.train.Saver(variables_to_restore) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/training/saver.py", line 1139, in __init__ self.build() File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/training/saver.py", line 1161, in build raise ValueError("No variables to save") ValueError: No variables to save

fib5813 avatar Jul 21 '17 21:07 fib5813

https://stackoverflow.com/questions/45325675/unable-to-load-finetune-checkpoint-in-object-detection-training/45363642#45363642

sreeragh-ar avatar Jul 28 '17 05:07 sreeragh-ar

hello,i also test the model,ssd_mobilenet_v1_coco_11_06_2017.tar.gz, but it can not rechieve the real-time performance ,isn`t it?

mathCrazyy avatar Sep 21 '17 10:09 mathCrazyy

@chenyuZha can you explain what you mean by initializing the train_dir? I am using the checkpoint files provided from ssd_mobilenet_v1_coco_11_06_2017.tar.gz in the model detection zoo, and my pipeline configuration file correctly points to the location of these checkpoint files, yet it still fails to find all of these feature extractors.

gavincmartin avatar Jan 28 '18 22:01 gavincmartin

@gavincmartin

Your train script is probably something like:

python3 train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/fasterrcnn_inception_coco.config

Do the following:

  1. In your models/research/object-detection directory, create a new empty folder, and call it "train"
  2. Modify your train script to replace the train_dir=training/ with train_dir=train/

Your final train script will be: python3 train.py --logtostderr --train_dir=train/ --pipeline_config_path=training/fasterrcnn_inception_coco.config

Yes, it is absolutely bizarre that this solution works.

ssk1991 avatar Jan 31 '18 01:01 ssk1991

@chenyuZha I finetune mobilenet for classification and got four files, checkpoint, out_graph-2000.data-00000-of-00001, out_graph-2000.index, out_graph-2000.meta. so which one should delete.

WillLiGitHub avatar Mar 15 '18 07:03 WillLiGitHub

@gavincmartin That means train_dir should be empty.

chenyuZha avatar Mar 15 '18 08:03 chenyuZha

@WillLiGitHub The checkpoint file contains the paths of all of ckpt that you have trained (in your case you have only one because it seems like you trained just for one ckpt). The rest 3 files is used to export your graph .pb. So if you delete any of 3 you will not success to have .pb file.

chenyuZha avatar Mar 15 '18 08:03 chenyuZha

@chenyuZha
Thanks!! I have find the error, when i saved model variables, I just saved variables_trainable, actualy should saved variables_to_restore. Thanks again!

WillLiGitHub avatar Mar 15 '18 09:03 WillLiGitHub

@chenyuZha remove the train dir does work. But this same error occur when restoring from parameters from the same models. Just run it, stop, and run it again without changing anything, and you will see the same error showing up. It is potentially a bug in the implementation.

walkerlala avatar Apr 20 '18 10:04 walkerlala

Similar warning:

WARNING:root:Variable [FeatureExtractor/InceptionV2/Mixed_5c_2_Conv2d_5_3x3_s2_128/BatchNorm/beta/ExponentialMovingAverage] is not available in checkpoint ( just one of multiple warning messages )

happens in ssd_inception_v2_coco_2017_11_17.

WillSapgreen avatar May 02 '18 19:05 WillSapgreen

Happens in Faster RCNN with Inception ResNet V2 as well and initiating the train log folder does not change anything

zhiaozhou avatar May 02 '18 21:05 zhiaozhou