在 python 中定义 caffe prototxt

defining caffe prototxt in python

如何在python中使用caffe在一个prototxt文件中为具有不同参数的TRAIN和TEST阶段添加一层?

如果您查看 https://github.com/BVLC/caffe/blob/master/examples/mnist/lenet_train_test.prototxt,您会看到训练和测试阶段的输入层具有不同的参数。

我点击了这个链接

LSTM module for Caffe
在 python 中定义 caffe prototxt。 但是我无法在一个 prototxt 文件中为不同阶段定义具有相同 blob 名称的相同层名称。

请帮忙

这是一个未解决的问题https://github.com/BVLC/caffe/issues/4044
看看这些链接:
caffe: model definition: write same layer with different phase using caffe.NetSpec()
PyCaffe NetSpec, how to create layers with the same name but different phases?