What I want is, After loading a net, I will decompose some certain layers and save the new net. For example
Orignial net:
data -> conv1 -> conv2 -> fc1 -> fc2 -> softmax;
New net:
data -> conv1_1 -> conv1_2 -> conv2_1 -> conv2_2 -> fc1 -> fc2 -> softmax
Therefore, during this process, I stuck in the following situation:
1. How to new a certain layer with specified layer parameters in pycaffe
?
2. How to copy the layer parameters from existing layers(such as fc1
and fc2
above)?
I know by using caffe::net_spec
, we can define a new net manually. But caffe::net_spec
can not specify a layer from a existing one(e.g: fc1
).