import sys
sys.path.insert(0,'/home/lcy/caffe-master/python')
import os
os.environ['GLOG_minloglevel'] = '2'
import caffe
net = caffe.Net(prototxt,caffemodel,caffe.TEST)
for k,v in net.blobs.items():
print(k,v.data.shape)
data (1, 1, 128, 128)
conv1 (1, 96, 63, 63)
slice1_1 (1, 48, 63, 63)
slice1_2 (1, 48, 63, 63)
eltwise1 (1, 48, 63, 63)
pool1 (1, 48, 32, 32)
pool1_pool1_0_split_0 (1, 48, 32, 32)
pool1_pool1_0_split_1 (1, 48, 32, 32)
conv_2x1 (1, 96, 32, 32)
slice2x1_1 (1, 48, 32, 32)
slice2x1_2 (1, 48, 32, 32)
etlwise2x1 (1, 48, 32, 32)
conv_2x2 (1, 96, 32, 32)
slice2x2_1 (1, 48, 32, 32)
slice2x2_2 (1, 48, 32, 32)
etlwise2x2 (1, 48, 32, 32)
etlwise2all (1, 48, 32, 32)
conv2a (1, 96, 32, 32)
slice2a_1 (1, 48, 32, 32)
slice2a_2 (1, 48, 32, 32)
eltwise2a (1, 48, 32, 32)
conv2 (1, 192, 32, 32)
slice2_1 (1, 96, 32, 32)
slice2_2 (1, 96, 32, 32)
eltwise2 (1, 96, 32, 32)
pool2 (1, 96, 16, 16)
pool2_pool2_0_split_0 (1, 96, 16, 16)
pool2_pool2_0_split_1 (1, 96, 16, 16)
conv_3x1 (1, 192, 16, 16)
slice3x1_1 (1, 96, 16, 16)
slice3x1_2 (1, 96, 16, 16)
etlwise3x1 (1, 96, 16, 16)
conv_3x2 (1, 192, 16, 16)
slice3x2_1 (1, 96, 16, 16)
slice3x2_2 (1, 96, 16, 16)
etlwise3x2 (1, 96, 16, 16)
etlwise3all (1, 96, 16, 16)
conv3a (1, 192, 16, 16)
slice3a_1 (1, 96, 16, 16)
slice3a_2 (1, 96, 16, 16)
eltwise3a (1, 96, 16, 16)
conv3 (1, 384, 16, 16)
slice3_1 (1, 192, 16, 16)
slice3_2 (1, 192, 16, 16)
eltwise3 (1, 192, 16, 16)
pool3 (1, 192, 8, 8)
conv4a (1, 384, 8, 8)
slice4a_1 (1, 192, 8, 8)
slice4a_2 (1, 192, 8, 8)
eltwise4a (1, 192, 8, 8)
conv4 (1, 256, 8, 8)
slice4_1 (1, 128, 8, 8)
slice4_2 (1, 128, 8, 8)
eltwise4 (1, 128, 8, 8)
conv5a (1, 256, 8, 8)
slice5a_1 (1, 128, 8, 8)
slice5a_2 (1, 128, 8, 8)
eltwise5a (1, 128, 8, 8)
conv5 (1, 256, 8, 8)
slice5_1 (1, 128, 8, 8)
slice5_2 (1, 128, 8, 8)
eltwise5 (1, 128, 8, 8)
pool4 (1, 128, 4, 4)
fc1 (1, 512)
slice_fc1_1 (1, 256)
slice_fc1_2 (1, 256)
eltwise_fc1 (1, 256)