1. 使用python写网络配置文件
使用py-caffe定义网络结构就像keras等进行堆积木一样方便,最后通过to_proto()方法可以生成prototxt配置文件。例如:
这里写代码片
2. crfasrnn调试备忘
2.1 编译
https://github.com/torrvision/crfasrnn
代码的caffe 版本可能有问题,编译时候需要:(1)拷贝cmake/* ;(2)设置cudnn关闭,除了Makefile.config,还需要设置CMakeLists.txt,cudnn版本问题;
2.2 使用python写网络配置文件中的MultiStageMeanfield层
2.3 使用自定义的数据层
写自定义的数据层和loss层(caffe-master/examples/pycaffe有示例)
写配置文件:No module
https://groups.google.com/forum/#!topic/digits-users/FbJ7G4uLd94
https://groups.google.com/forum/#!topic/caffe-users/1LEQqXyAc88
export PYTHONPATH=/path/to/caffe/python:$PYTHONPATH
2.4 py-caffe训练接口和C++训练接口
直接执行sh文件在protocal的版本报错,https://stackoverflow.com/questions/44938147/this-program-requires-version-3-2-0-of-the-protocol-buffer-runtime-library-but