I am reading this tutorial: TensorFlow 2 Object Detection API tutorial. In this script,
https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/2.2.0/training.html#convert-xml-to-record
there is a line
import tensorflow.compat.v1 as tf
Which causes an error AttributeError: module 'tensorflow' has no attribute 'gfile'
Does anyone know how to solve it? Thanks.