pydot 安装 用于caffe画图

来源:互联网 发布:手机淘宝如何退换货物 编辑:程序博客网 时间:2024/06/06 05:04

直接使用caffe中的画图功能,会遇到问题: ImportError: No module named pydot,说明缺少pydot库

直接安装pydot:

pip install pydot

重新测试画图

~/ml/caffe/python$ python draw_net.py \../examples/mnist/lenet_train_test.prototxt lenet5.pngDrawing net to lenet5.png

注: 如果没有安装graphviz, 会出现Exception: "dot" not found in path.的问题

安装graphviz不要用pip install安装,否则还是会找不到可执行程序

安装:

sudo apt-get insall graphviz

转载自:
pydot 安装 用于caffe画图

原创粉丝点击