I have upgraded with tf_upgrade_v2 TF1 code to TF2. I\'m a noob with both. I got the next error:
RuntimeError: tf.placeholder() is not compatible with eager exec
If you are getting this error while doing object detection using TensorFlow model then use exporter_main_v2.py
instead of export_inference_graph.py
for exporting the model. This is right method to do. If you just off eager_execution then it will solve this error but generate other.
Also note that there are some parameter change like hear you will specify the path to directory of checkpoint instead of path to checkpoint. refer to this document for how to do object detection with TensorFlow V2