When i'm trying to use plot_model it doesn'to work:
from keras.utils.vis_utils import plot_model
plot_model(model, to_file='model_plot.png', show_shapes=True, show_layer_names=True)
and i get this message in the terminal:
"dot" with args ['-Tps', 'C:\Users\CHETEM~1\AppData\Local\Temp\tmprst0j6pn'] returned code: 1
stdout, stderr: b'' b"'C:\Users\Chete' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
any one have any idea?
Not sure why it happens but it looks like graph viz does not configure the plugins when it got installed, I had the same issue and I simply fixed it by:
dot -c, this will configure the GraphViz pluginsAfter this simple fix I was able to plot Keras models.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With