tensorflow / models

Models and examples built with TensorFlow
Other
77.04k stars 45.77k forks source link

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

Open qazalkz opened 11 months ago

qazalkz commented 11 months ago

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

hi there, even downgrading to tf 12 or 13 didnt work, im sure that i ran my code 2 days ago and it worked corectly but now i get this error. also im using google colab, tensorflow object detection api. thanks

arnodorian-r commented 11 months ago

@qazalkz build tf-slim from source it works

qazalkz commented 11 months ago

hello, I just restarted runtime twice, and then it works. once after pip install and once after running TFOD model.

laxmareddyp commented 9 months ago

Hi @qazalkz,

I strongly suggest utilizing the TensorFlow Official Model Garden to circumvent issues related to outdated code commonly found in research codebases. Unlike the research repositories, the Official Model Garden is consistently updated and aligned with the latest changes in TensorFlow and other libraries and there are lot of API's are available that you can define a training experiment using Python commands in the TensorFlow Model library.We have developed several Notebook examples like object detection that illustrate how to train models from the ground up.

Thanks.