how to install pydot & graphviz on google colab?

前端 未结 1 1606
臣服心动
臣服心动 2021-01-12 03:23

I\'m trying plot my model on the google colab.

 from keras.utils import plot_model
 plot_model(model, to_file=\"model.png\")

and I got this

1条回答
  •  孤城傲影
    2021-01-12 04:18

    To install pydot, run:

    !pip install -q pydot
    

    Then, restart your VM to reload keras which should then detect pydot's existence. (Runtime menu -> Restart runtime...)

    0 讨论(0)
提交回复
热议问题