title: Some Python objects were not bound to checkpointed values
body: <p>I am trying to get started with Tensorflow 2.0 <a href="https://github.com/tensorflow/models/tree/master/research/object_detection" rel="noreferrer">Object Detection API</a>. I have gone through the installation following <a href="https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/install.html" rel="noreferrer">the official tutorial</a> and I pass all the tests. However, I keep getting an error message that I don't understand when I try to run the main module. This is how I run it:</p>
  <pre><code>python model_main_tf2.py --model_dir=ssd_resnet50_v1_fpn_640x640_coco17_tpu-8 --pipeline_config_path=ssd_resnet50_v1_fpn_640x640_coco17_tpu-8/pipeline.config
  </code></pre>
  <p>This is the beginning of the error message:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;model_main_tf2.py&quot;, line 113, in &lt;module&gt;
      tf.compat.v1.app.run()
    File &quot;/home/hd/hd_hd/hd_rs239/.conda/envs/jan_tf2/lib/python3.7/site-packages/tensorflow/python/platform/app.py&quot;, line 40, in run
      _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
    File &quot;/home/hd/hd_hd/hd_rs239/.conda/envs/jan_tf2/lib/python3.7/site-packages/absl/app.py&quot;, line 299, in run
      _run_main(main, args)
    File &quot;/home/hd/hd_hd/hd_rs239/.conda/envs/jan_tf2/lib/python3.7/site-packages/absl/app.py&quot;, line 250, in _run_main
      sys.exit(main(argv))
    File &quot;model_main_tf2.py&quot;, line 110, in main
      record_summaries=FLAGS.record_summaries)
    File &quot;/home/hd/hd_hd/hd_rs239/.conda/envs/jan_tf2/lib/python3.7/site-packages/object_detection/model_lib_v2.py&quot;, line 569, in train_loop
      unpad_groundtruth_tensors)
    File &quot;/home/hd/hd_hd/hd_rs239/.conda/envs/jan_tf2/lib/python3.7/site-packages/object_detection/model_lib_v2.py&quot;, line 383, in load_fine_tune_checkpoint
      ckpt.restore(checkpoint_path).assert_existing_objects_matched()
    File &quot;/home/hd/hd_hd/hd_rs239/.conda/envs/jan_tf2/lib/python3.7/site-packages/tensorflow/python/training/tracking/util.py&quot;, line 791, in assert_existing_objects_matched
      (list(unused_python_objects),))
  AssertionError: Some Python objects were not bound to checkpointed values, likely due to changes in the Python program: [SyncOnReadVariable:{
    0: &lt;tf.Variable 'conv2_block1_0_bn/moving_variance:0' shape=(256,) dtype=float32, numpy=
  array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
  </code></pre>
  <p>In the pipeline.config, I specify a checkpoint like this:</p>
  <pre><code>  fine_tune_checkpoint: &quot;ssd_resnet50_v1_fpn_640x640_coco17_tpu-8/checkpoint/ckpt-0&quot; 
  </code></pre>
  <p>These are the contents of <code>ssd_resnet50_v1_fpn_640x640_coco17_tpu-8/checkpoint/</code> :</p>
  <pre><code>checkpoint  
  ckpt-0.data-00000-of-00001  
  ckpt-0.index
  </code></pre>
  <p>I have searched Google but couldn't find any answer. In <a href="https://github.com/tensorflow/models/issues/8399" rel="noreferrer">this issue</a>, the suggested solution is outdated (the code they suggest to replace is not there anymore).</p>
  <p><strong>Question:</strong> What is the problem and how can I solve it?</p>
  <p>I am doing this on a server with CentOS Linux 7. I am using Python 3.7. I am new to Tensorflow so please if I am missing any important information, let me know.</p>