pip install graphviz
from graphviz import *
import graphviz
# cmd: choco install graphviz # then from keras.utils import vis_utils vis_utils.plot_model(model, to_file='graph.png', show_shapes=True, show_layer_names=True)