neural-style-tf
neural-style-tf copied to clipboard
ImportError: No module named tensorflow
hi
am a newbie to this - When I try the run single image basis usage example -
bash stylize_image.sh ./image_input/lion.jpg ./styles/kandinsky.jpg
it returns with the following error
Rendering stylized image. This may take a while...
Traceback (most recent call last):
File "neural_style.py", line 1, in
installed tensorflow using http://www.python36.com/how-to-install-tensorflow-gpu-with-cuda-9-2-for-python-on-ubuntu/ - and was able to test with python3 on correct installation with hello tensorflow but python returns with issues.
please help.
thanks narayan
You might need to activate the virtual environment:
$ source ~/tensorflow/bin/activate
Or in the stylize_image.sh file, change python to python3
thanks! changing python to python3 seems to have worked for the previous error. Now am running into
AttributeError: module 'tensorflow' has no attribute 'Graph'.
Instead of running the program, can you go into Terminal and type:
(tensorflow) $ python3
>> import tensorflow as tf
>> g = tf.Graph()
>> type(g)
apologize for the silence - got the whole thing working now. thanks!
I have the same issue.. what was the solution?