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' object has no attribute 'keras' #5590

Closed
farzadhallaji opened this issue Oct 23, 2018 · 3 comments
Closed

AttributeError: 'module' object has no attribute 'keras' #5590

farzadhallaji opened this issue Oct 23, 2018 · 3 comments
Assignees

Comments

@farzadhallaji
Copy link

I follow this install instructions
when I was Testing the Installation I got this error

$ 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/farzad/Desktop/jrnl/face recognition/tensorflow/models/research/object_detection/builders/model_builder.py", line 22, in <module>
    from object_detection.builders import box_predictor_builder
  File "/home/farzad/Desktop/jrnl/face recognition/tensorflow/models/research/object_detection/builders/box_predictor_builder.py", line 21, in <module>
    from object_detection.predictors import convolutional_box_predictor
  File "/home/farzad/Desktop/jrnl/face recognition/tensorflow/models/research/object_detection/predictors/convolutional_box_predictor.py", line 19, in <module>
    from object_detection.core import box_predictor
  File "/home/farzad/Desktop/jrnl/face recognition/tensorflow/models/research/object_detection/core/box_predictor.py", line 137, in <module>
    class KerasBoxPredictor(tf.keras.Model):
AttributeError: 'module' object has no attribute 'keras'

Python 2.7.12
TensorFlow 1.2.0
Keras 2.2.4

@tensorflowbutler tensorflowbutler added the stat:awaiting response Waiting on input from the contributor label Oct 24, 2018
@tensorflowbutler
Copy link
Member

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
What is the top-level directory of the model you are using
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce

@farzadhallaji
Copy link
Author

What is the top-level directory of the model you are using : research/object_detection
Have I written custom code : NO
OS Platform and Distribution : Linux Mint 18.4
TensorFlow installed from : PyPI
TensorFlow version : 1.2.0
Bazel version : N/A
CUDA/cuDNN version : N/A
GPU model and memory : N/A
Exact command to reproduce : python object_detection/builders/model_builder_test.py

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Waiting on input from the contributor label Oct 25, 2018
@farzadhallaji
Copy link
Author

it's solved with updating tensorflow.
pip install -U tensorflow

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

3 participants