tensorflow/models

AttributeError: module 'tensorflow.python.ops.control_flow_ops' has no attribute 'case'`

ShubhamModi77 opened this issue · 0 comments

I am facing an error while training a TensorFlow custom object detection model. Initially, I started with TensorFlow 2.13.0, but the GPU was not detected. Therefore, I upgraded to TensorFlow 2.15.0.

File "/usr/local/lib/python3.10/dist-packages/object_detection/data_decoders/tf_example_decoder.py", line 556, in decode *
tensors = decoder.decode(serialized_example, items=keys)
File "/usr/local/lib/python3.10/dist-packages/tf_slim/data/tfexample_decoder.py", line 722, in decode *
outputs.append(handler.tensors_to_item(keys_to_tensors))
File "/usr/local/lib/python3.10/dist-packages/tf_slim/data/tfexample_decoder.py", line 405, in tensors_to_item *
return self._decode(image_buffer, image_format)
File "/usr/local/lib/python3.10/dist-packages/tf_slim/data/tfexample_decoder.py", line 453, in _decode *
image = control_flow_ops.case(

AttributeError: module 'tensorflow.python.ops.control_flow_ops' has no attribute 'case'`