一般模型中会包含如下几个文件:
其中,train_val.prototxt 文件是网络配置文件。该文件是在训练的时候用的。deploy.prototxt文件是在测试时使用的文件。solver.prototxt文件是网络求解文件。
deploy.prototxt文件是在train_val.prototxt 文件最大的不同是train_val.prototxt 中每一个卷积层中会有weight_filler和bias_filler对weight和bias进行初始化。
以下为train_val.prototxt 和deploy.prototxt文件的对比结果: