'Value in checkpoint could not be found in the restored object: (root).optimizer.iter

So i was using the pre-trained weight from this link: http://download.tensorflow.org/models/object_detection/tf2/20200711/ssd_mobilenet_v2_fpnlite_320x320_coco17_tpu-8.tar.gz then i copied the pipeline.config from the download link to my folder because i want to change the optimizer to adam to train on my own dataset (the pipeline in the link is using momentum_optimizer)

Here is my code for my pipeline.config to train:

optimizer {
adam_optimizer {
  learning_rate {
    cosine_decay_learning_rate {
      learning_rate_base: 0.01
      total_steps: 50000
      warmup_learning_rate: 0.026666
      warmup_steps: 1000
    }
  }
  epsilon: 1e-8
}
use_moving_average: false

}

but then the cmd promt hit me with this:

WARNING:tensorflow:Value in checkpoint could not be found in the restored object: (root).optimizer.iter
W0419 23:47:07.776149 17436 util.py:194] Value in checkpoint could not be found in the restored object: (root).optimizer.iter
WARNING:tensorflow:Value in checkpoint could not be found in the restored object: (root).optimizer.decay
W0419 23:47:07.777309 17436 util.py:194] Value in checkpoint could not be found in the restored object: (root).optimizer.decay
WARNING:tensorflow:Value in checkpoint could not be found in the restored object: (root).optimizer.momentum
W0419 23:47:07.779311 17436 util.py:194] Value in checkpoint could not be found in the restored object: (root).optimizer.momentum

Can anyone explain please thank you [1]: https://i.stack.imgur.com/BBmVA.png



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source