Caffe-网络结构可视化
本博客将要说明了Caffe网络结构可视化的使用过程,用于学习交流,有问题欢迎反馈。
准备Python开发环境
建议安装anaconda
anaconda使用指南
http://conda.pydata.org/docs/commands/conda-install.html
然后编译pycaffe
cd caffe
make clean
make -j8
make pycaffe
http://conda.pydata.org/docs/commands/conda-install.html
代码块
/home/hdu/caffe/python 目录下:
python draw_net.py ../examples/mnist/lenet_train_test.prototxt lenet5.png
画出的LeNet-5的模型结构图如图所示:
Anaconda is a completely free Python distribution (including for commercial use and redistribution). It includes over 195 of the most popular Python packagesfor science, math, engineering, data analysis.
conda install #安装需要的包
conda list #列表说明
conda remove #移除
conda search # 查找
conda update #更新
conda info #