If you run this file, the line from object_detection.dataset_tools import tf_record_creation_util is used, and that file (url above) has the line exit_stack.enter_context(tf.python_io.TFRecordWriter(file_name)), but I believe tf.python_io is depreciated and should be replaced with tf.io.
File in question:
https://github.com/tensorflow/models/blob/master/research/object_detection/dataset_tools/tf_record_creation_util.py
Issue (and proposed fix):
If you run this file, the line
from object_detection.dataset_tools import tf_record_creation_util
is used, and that file (url above) has the lineexit_stack.enter_context(tf.python_io.TFRecordWriter(file_name))
, but I believetf.python_io
is depreciated and should be replaced withtf.io
.System information:
tf_env.txt