titu1994 / Super-Resolution-using-Generative-Adversarial-Networks

An implementation of SRGAN model in Keras
283 stars 85 forks source link

AttributeError: 'module' object has no attribute 'find_graphviz' #16

Closed SeekPoint closed 7 years ago

SeekPoint commented 7 years ago

rzai@rzai00:~/prj/Super-Resolution-using-Generative-Adversarial-Networks/tests$ CUDA_VISIBLE_DEVICES=1 python3 benchmark_test.py Using Theano backend. Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/theano/printing.py", line 28, in import pydot_ng as pd ImportError: No module named 'pydot_ng'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "benchmark_test.py", line 1, in from keras.layers import Input File "/usr/local/lib/python3.4/dist-packages/keras/init.py", line 2, in from . import backend File "/usr/local/lib/python3.4/dist-packages/keras/backend/init.py", line 61, in from .theano_backend import * File "/usr/local/lib/python3.4/dist-packages/keras/backend/theano_backend.py", line 1, in import theano File "/usr/local/lib/python3.4/dist-packages/theano/init.py", line 74, in from theano.printing import pprint, pp File "/usr/local/lib/python3.4/dist-packages/theano/printing.py", line 35, in if pd.find_graphviz(): AttributeError: 'module' object has no attribute 'find_graphviz' rzai@rzai00:~/prj/Super-Resolution-using-Generative-Adversarial-Networks/tests$

titu1994 commented 7 years ago

You must be trying to plot the model ? You will need to pip install pydot-ng. If that doesn't work, try conda install pydot-ng