image-analogies
image-analogies copied to clipboard
module 'tensorflow.python.framework.ops' has no attribute '_TensorLike'
Hi,
I was trying to run:
make_image_analogy.py images/arch-mask.jpg images/arch.jpg images/arch-newmask.jpg out/arch
When I got this:
AttributeError: module 'tensorflow.python.framework.ops' has no attribute '_TensorLike'
Any idea how to fix that?
Thank you!
Hi, I had this same error when I was trying to import keras which uses tensorflow in the backend. Then I re-installed tensorflow with virtual environment. Now the error has gone. I am not sure if this may help. I followed the "Installing with Virtualenv" section in this site : https://www.tensorflow.org/install/install_linux And then maybe you can run the program in the virtual environment
AttributeError: module 'tensorflow.python.framework.ops' has no attribute '_TensorLike'
Same error when using keras where tensorflow as backend
Hi, I have tried by installing the tensorflow with virtualenv but the erroe was same. Any idea how to fix that?
(venv) pi@raspberrypi:~ $ python3 /home/pi/Desktop/final\ face/facenet\ face\ recognition/facenet.py Using TensorFlow backend.
** (facenet.py:27420): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Traceback (most recent call last):
File "/home/pi/Desktop/final face/facenet face recognition/facenet.py", line 19, in
I got the exact same error as @taktikal17 but with a keras.layers.LSTM
instance. I am running this on OSX 10.11 so I had to install tensorflow/keras with virtualenv. Pretty sure my OS is my problem but it might not...
i use version tensorflow==1.10.0 with no problem
I am getting same error while using ImageAI
Just fix the imports like from keras import import Sequential
to this: tensorflow.keras import Sequential
Similarly for other imports starting with 'from keras'
I am getting same error while using ImageAI
I am also getting this error while using ImageAI. Referring to this.