1

I'm trying to run the Pix2Pix tutorial for Tensorflow. I'm using the official docker container for this. This is how I start my container:

docker run --gpus all -it -p 8888:8888 --rm -v $PWD:/tf -w /tmp tensorflow/tensorflow:latest-gpu-py3-jupyter

I'm not able to get pass by this cell

generator = Generator()
tf.keras.utils.plot_model(generator, show_shapes=True, dpi=64)
# output -> Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.

I have tried also installing the pydot and graphviz using pip and also apt-get. Even if this libraries are installed I get the same error.

Bogdan Oloeriu
  • 183
  • 2
  • 11

1 Answers1

0

I had same problem and follow this link

In short:

  • run these command on command prompt.
 pip install pydot 
 pip install graphviz
  • From website, download and install graphviz software

Note: in install time, check "add to system path" option to add bin folder to path variable otherwise you should do it manually. restart your windows

Hassan
  • 118
  • 6
  • Can you please share the exact command that worked for you? This line is too abstract: `install graphviz software from its [website][2]` Is this answer referring to my problem with the official docker container? – Bogdan Oloeriu Feb 10 '21 at 08:43
  • Thank you for your comment. does my edit solve the problem? Graphviz is a software that needs to be installed separately. – Hassan Feb 10 '21 at 11:20