caffe icon indicating copy to clipboard operation
caffe copied to clipboard

when run ssd_pascal.py, AttributeError: 'str' object has no attribute '_to_proto'

Open fnzhan opened this issue 8 years ago • 4 comments

Traceback (most recent call last): File "/home/frankzhan/caffe/examples/ssd/ssd_pascal_orig.py", line 466, in print(net.to_proto(), file=f) File "/home/frankzhan/caffe/python/caffe/net_spec.py", line 209, in to_proto top._to_proto(layers, names, autonames) File "/home/frankzhan/caffe/python/caffe/net_spec.py", line 100, in _to_proto return self.fn._to_proto(layers, names, autonames) File "/home/frankzhan/caffe/python/caffe/net_spec.py", line 142, in _to_proto inp._to_proto(layers, names, autonames) AttributeError: 'str' object has no attribute '_to_proto'

I have searched, but I find no others have the same problem.

fnzhan avatar Jul 07 '17 11:07 fnzhan

I have the same problem, have you soloved?

liangxi627 avatar Mar 13 '18 13:03 liangxi627

+1

cxm1995 avatar Nov 05 '18 13:11 cxm1995

+1

Betty-tkx avatar Apr 29 '19 12:04 Betty-tkx

Hey Guys,

I don't know if this error is still a topic, however, I had the same error and in my case I debugged it by making sure that the layers are indeed caffe layers and not strings. In my case I forgot to call a value, so it resulted in the program trying to concat a string to a caffe layer, which leads to this error.

I hope I could help.

Cheers, d3lt4-papa

dprosperino avatar Jun 12 '19 11:06 dprosperino