davidADSP / GDL_code

The official code repository for examples in the O'Reilly book 'Generative Deep Learning'

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InvocationException: Program terminated with status: 1. stderr follows: Format: "ps" not recognized. in: 03_01_autoencoder_train

nischwitz opened this issue · comments

Hello!
in 03_01_autoencoder_train the following failure occurs in cell 4:
AE = Autoencoder(
input_dim = (28,28,1)
, encoder_conv_filters = [32,64,64, 64]
, encoder_conv_kernel_size = [3,3,3,3]
, encoder_conv_strides = [1,2,2,1]
, decoder_conv_t_filters = [64,64,32,1]
, decoder_conv_t_kernel_size = [3,3,3,3]
, decoder_conv_t_strides = [1,2,2,1]
, z_dim = 2
)

if MODE == 'build':
AE.save(RUN_FOLDER)
else:
AE.load_weights(os.path.join(RUN_FOLDER, 'weights/weights.h5'))
InvocationException Traceback (most recent call last)
in
11
12 if MODE == 'build':
---> 13 AE.save(RUN_FOLDER)
14 else:
15 AE.load_weights(os.path.join(RUN_FOLDER, 'weights/weights.h5'))

D:\DeepLearning\GDL_code\models\AE.py in save(self, folder)
153 ], f)
154
--> 155 self.plot_model(folder)
156
157

D:\DeepLearning\GDL_code\models\AE.py in plot_model(self, run_folder)
182
183 def plot_model(self, run_folder):
--> 184 plot_model(self.model, to_file=os.path.join(run_folder ,'viz/model.png'), show_shapes = True, show_layer_names = True)
185 plot_model(self.encoder, to_file=os.path.join(run_folder ,'viz/encoder.png'), show_shapes = True, show_layer_names = True)
186 plot_model(self.decoder, to_file=os.path.join(run_folder ,'viz/decoder.png'), show_shapes = True, show_layer_names = True)

c:\programdata\anaconda3\envs\destructive\lib\site-packages\tensorflow_core\python\keras\utils\vis_utils.py in plot_model(model, to_file, show_shapes, show_layer_names, rankdir, expand_nested, dpi)
281 rankdir=rankdir,
282 expand_nested=expand_nested,
--> 283 dpi=dpi)
284 if dot is None:
285 return

c:\programdata\anaconda3\envs\destructive\lib\site-packages\tensorflow_core\python\keras\utils\vis_utils.py in model_to_dot(model, show_shapes, show_layer_names, rankdir, expand_nested, dpi, subgraph)
100 from tensorflow.python.keras.engine import network
101
--> 102 if not check_pydot():
103 if 'IPython.core.magics.namespace' in sys.modules:
104 # We don't raise an exception here in order to avoid crashing notebook

c:\programdata\anaconda3\envs\destructive\lib\site-packages\tensorflow_core\python\keras\utils\vis_utils.py in check_pydot()
48 # Attempt to create an image of a blank graph
49 # to check the pydot/graphviz installation.
---> 50 pydot.Dot.create(pydot.Dot())
51 return True
52 except OSError:

c:\programdata\anaconda3\envs\destructive\lib\site-packages\pydotplus\graphviz.py in create(self, prog, format)
2030 raise InvocationException(
2031 'Program terminated with status: %d. stderr follows: %s' % (
-> 2032 status, stderr_output))
2033 elif stderr_output:
2034 print(stderr_output)

InvocationException: Program terminated with status: 1. stderr follows: Format: "ps" not recognized. Use one of:

We searched for some hours for a solution! We have used branch tensorflow2 and changed to TF2.1 due to availability in conda.
Can anyone help, please?

Thank you very much and good bye