How pycaffe reconstruct the net

36 views
Skip to first unread message

Zhanming Ou

unread,
Feb 15, 2016, 10:37:15 PM2/15/16
to Caffe Users
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`)

Can anyone provide and ideas for this, thanks!
Reply all
Reply to author
Forward
0 new messages