-
Notifications
You must be signed in to change notification settings - Fork 45.9k
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._api.v1.compat' has no attribute 'v2' #8088
Comments
solved the problem by cloning the models v1.13.0 |
Hi Wiamadaya, I am running into the same issue. Could you please elaborate how did you solve this problem? the tensorflow version which I'm using is 1.13.1. |
hi @Aparnamaurya just download the 1.13.0 release instead https://github.com/tensorflow/models/archive/v1.13.0.zip since we are using TF 1.13 |
Hello @wiamadaya |
Please read PIP output it shares available versions. tensorflow-1.13.1, 1.13.2 |
Thanks it worked by downloading the v1.13.0 version |
what he means is that the model's version is 1.13.0 |
@DeliciousHY he is talking about the models directory not the tensorflow version. So you get tensorflow==1.13.1 installed and go to tensorflow model archives and download the 1.13.1 models folder. |
Seems like a workaround rather than solution tho 🤔 |
Where did you place the models folder? |
|
Excuse me, how to deal with this problem?I'm consistently confused |
may is your tensorflow's version 's problem |
I have tried many versions of tensorflow and this problem occurs:AttributeError: module 'tensorflow._api.v1.compat' has no attribute 'v2' |
i receive the following error when following the installation steps https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md
(tensorflow_p36) ubuntu@ip-xxx-xx-xx-xx:~/tensorflow/models/research$ python object_detection/builders/model_builder_test.py
Traceback (most recent call last): File "object_detection/builders/model_builder_test.py", line 23, in <module> from object_detection.builders import model_builder File "/home/ubuntu/tensorflow/models/research/object_detection/builders/model_builder.py", line 47, in <module> from object_detection.models.ssd_mobilenet_edgetpu_feature_extractor import SSDMobileNetEdgeTPUFeatureExtractor File "/home/ubuntu/tensorflow/models/research/object_detection/models/ssd_mobilenet_edgetpu_feature_extractor.py", line 19, in <module> from object_detection.models import ssd_mobilenet_v3_feature_extractor File "/home/ubuntu/tensorflow/models/research/object_detection/models/ssd_mobilenet_v3_feature_extractor.py", line 25, in <module> from nets.mobilenet import mobilenet File "/home/ubuntu/tensorflow/models/research/slim/nets/mobilenet/mobilenet.py", line 399, in <module> def global_pool(input_tensor, pool_op=tf.compat.v2.nn.avg_pool2d): AttributeError: module 'tensorflow._api.v1.compat' has no attribute 'v2'
The text was updated successfully, but these errors were encountered: