torch / torch7

http://torch.ch
Other
9k stars 2.38k forks source link

libprotobuf ERROR google/protobuf/text_format.cc:288 #1150

Open zhong-xin opened 6 years ago

zhong-xin commented 6 years ago

我在用torch7调用caffemodel时,发生以下错误: xin@xin-X10DAi-Invalid-entry-length-16-Fixed-up-to-11:~/pytorch-vgg-master$ th caffemodel_to_t7.lua

[libprotobuf ERROR google/protobuf/text_format.cc:288] Error parsing text-format caffe.NetParameter: 42:14: Message type "caffe.PythonParameter" has no field named "param_str". Successfully loaded /home/xin/pytorch-vgg-master/snapshot_iter_2320.caffemodel warning: module 'train-data [type Data]' not found warning: module 'data_aug [type Python]' not found warning: module 'sub_mean [type Scale]' not found warning: module 'conv1_srelu1_1 [type Scale]' not found warning: module 'conv1_srelu1_3 [type Scale]' not found warning: module 'pool1_pool1_0_split [type Split]' not found warning: module 'res1_1_1_srelu_1 [type Scale]' not found warning: module 'res1_1_1_srelu_3 [type Scale]' not found warning: module 'res1_1_sum [type Eltwise]' not found warning: module 'res1_1_srelu_1 [type Scale]' not found warning: module 'res1_1_srelu_3 [type Scale]' not found warning: module 'res1_1_res1_1_srelu_3_0_split [type Split]' not found warning: module 'res1_2_1_srelu_1 [type Scale]' not found warning: module 'res1_2_1_srelu_3 [type Scale]' not found warning: module 'res1_2_sum [type Eltwise]' not found warning: module 'res1_2_srelu_1 [type Scale]' not found warning: module 'res1_2_srelu_3 [type Scale]' not found warning: module 'res1_2_res1_2_srelu_3_0_split [type Split]' not found warning: module 'res2_1_1_srelu_1 [type Scale]' not found warning: module 'res2_1_1_srelu_3 [type Scale]' not found warning: module 'res2_1_sum [type Eltwise]' not found warning: module 'res2_1_srelu_1 [type Scale]' not found warning: module 'res2_1_srelu_3 [type Scale]' not found warning: module 'res2_1_res2_1_srelu_3_0_split [type Split]' not found warning: module 'res2_2_1_srelu_1 [type Scale]' not found warning: module 'res2_2_1_srelu_3 [type Scale]' not found warning: module 'res2_2_sum [type Eltwise]' not found warning: module 'res2_2_srelu_1 [type Scale]' not found warning: module 'res2_2_srelu_3 [type Scale]' not found warning: module 'res2_2_res2_2_srelu_3_0_split [type Split]' not found warning: module 'res3_1_1_srelu_1 [type Scale]' not found warning: module 'res3_1_1_srelu_3 [type Scale]' not found warning: module 'res3_1_sum [type Eltwise]' not found warning: module 'res3_1_srelu_1 [type Scale]' not found warning: module 'res3_1_srelu_3 [type Scale]' not found warning: module 'res3_1_res3_1_srelu_3_0_split [type Split]' not found warning: module 'res3_2_1_srelu_1 [type Scale]' not found warning: module 'res3_2_1_srelu_3 [type Scale]' not found warning: module 'res3_2_sum [type Eltwise]' not found warning: module 'res3_2_srelu_1 [type Scale]' not found warning: module 'res3_2_srelu_3 [type Scale]' not found warning: module 'res3_2_res3_2_srelu_3_0_split [type Split]' not found warning: module 'res4_1_1_srelu_1 [type Scale]' not found warning: module 'res4_1_1_srelu_3 [type Scale]' not found warning: module 'res4_1_sum [type Eltwise]' not found warning: module 'res4_1_srelu_1 [type Scale]' not found warning: module 'res4_1_srelu_3 [type Scale]' not found warning: module 'res4_1_res4_1_srelu_3_0_split [type Split]' not found warning: module 'res4_2_1_srelu_1 [type Scale]' not found warning: module 'res4_2_1_srelu_3 [type Scale]' not found warning: module 'res4_2_sum [type Eltwise]' not found warning: module 'res4_2_srelu_1 [type Scale]' not found warning: module 'res4_2_srelu_3 [type Scale]' not found warning: module 'pool_avg_pool_avg_0_split [type Split]' not found warning: module 'cee_loss [type Python]' not found conv1: 64 3 7 7 res1_1_1: 64 64 3 3 res1_1_2: 64 64 3 3 res1_2_1: 64 64 3 3 res1_2_2: 64 64 3 3 res2_1_1: 128 64 3 3 res2_1_2: 128 128 3 3 res2_1_proj: 128 64 1 1 res2_2_1: 128 128 3 3 res2_2_2: 128 128 3 3 res3_1_1: 256 128 3 3 res3_1_2: 256 256 3 3 res3_1_proj: 256 128 1 1 res3_2_1: 256 256 3 3 res3_2_2: 256 256 3 3 res4_1_1: 512 256 3 3 res4_1_2: 512 512 3 3 res4_1_proj: 512 256 1 1 res4_2_1: 512 512 3 3 res4_2_2: 512 512 3 3 fc3: 1 1 512 3 fc3_t: 1 1 512 3 /home/xin/torch/install/bin/lua: caffemodel_to_t7.lua:26: assertion failed! stack traceback: [C]: in function 'assert' caffemodel_to_t7.lua:26: in main chunk [C]: in function 'dofile' .../xin/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: in ?

Thanks for your help.

AOoligei commented 4 years ago

hello,how did you solve it?