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

Test_Anomaly_Detector_public.py error due to tensorflow version #77

Open
WurmD opened this issue Oct 19, 2020 · 1 comment
Open

Test_Anomaly_Detector_public.py error due to tensorflow version #77

WurmD opened this issue Oct 19, 2020 · 1 comment

Comments

@WurmD
Copy link

WurmD commented Oct 19, 2020

$ pip3 list
Keras 1.1.0
tensorflow==2.3.1

Traceback (most recent call last):
  File "/home/dario/AnomalyDetectionCVPR2018/Test_Anomaly_Detector_public.py", line 1, in <module>
    from keras.models import Sequential
  File "/home/dario/.local/lib/python3.6/site-packages/keras/__init__.py", line 2, in <module>
    from . import backend
  File "/home/dario/.local/lib/python3.6/site-packages/keras/backend/__init__.py", line 64, in <module>
    from .tensorflow_backend import *
  File "/home/dario/.local/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 17, in <module>
    _LEARNING_PHASE = tf.placeholder(dtype='uint8', name='keras_learning_phase')  # 0 = test, 1 = train
AttributeError: module 'tensorflow' has no attribute 'placeholder'

What version of tensorflow did you use? (and please add it to the requirements in the README.md)

@WurmD
Copy link
Author

WurmD commented Oct 19, 2020

pip3 install tensorflow==1.15.4
and updating the code to python 3 works

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

1 participant