Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'tensorflow' has no attribute 'contrib' #62

Open
AyaNasser96 opened this issue Feb 5, 2022 · 2 comments
Open

Comments

@AyaNasser96
Copy link

While try to convert .weights to pb I got this error:
AttributeError: module 'tensorflow' has no attribute 'contrib'

File "/home/aya/Deployment_project/OpenVINO-YOLOV4/yolo_v4.py", line 5, in <module> slim = tf.contrib.slim AttributeError: module 'tensorflow' has no attribute 'contrib'

I think it's related to tf version, that the 1.x is deprecated !

@hibarasheed17
Copy link

Have you got any solution for this? I am stuck as well.

@AyaNasser96
Copy link
Author

No, because he used tf 1.x, and all is using tf 2 now,
but you could tell me what do you wanna do?
and you also could check my answer here if you want to convert yolov4 to IR
openvinotoolkit/open_model_zoo#3150 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants