hyh21521038 / ssd-plate_detection

SSD-based plate detection
122 stars 75 forks source link

Normalize layer problem #2

Open shihongf opened 7 years ago

shihongf commented 7 years ago

I was trying do forward the net. However, an error message popped out said: _Error parsing text-format caffe.NetParameter: 758:14: Message type "caffe.LayerParameter" has no field named "normparam". Can you help me explain this? Maybe it's the problem of different versions. Which caffe version did you use?

hyh21521038 commented 7 years ago

@shihongfang I think the main reason is that the version is not match, you may go for the latest version and try it again

shihongf commented 7 years ago

@hyh21521038 I'm actually using the latest version. Also it seems like object caffe_pb2 has no attribute 'LabelMap' in my environment. Did you use any other packages?

hyh21521038 commented 7 years ago

@shihongfang have you copied all files in my github?

shihongf commented 7 years ago

yes, totally!

hyh21521038 commented 7 years ago

@shihongfang I think you should go to SSD author's web .and fork his source.maybe your caffe version does not have normalization layer

shihongf commented 7 years ago

@hyh21521038 I reinstalled and figured it out. Thanks!

BestJuly commented 7 years ago

@shihongf Hi, I met the same problem with you. And my problem seems weird. When I trained the model or use python script to do detection, it went well, while when I used ssd_detect.cpp to do detection, though it complied successfully but when I ran the project, it reported the errors as you described. I install the author's SSD in another place and link relative files (libcaffe.so/ include files) to my project but it still report such error.

shihongf commented 7 years ago

@BestJuly Hi, I just reinstalled everything. Maybe you should go to the SSD author's website and see if you could update your caffe to his.

BestJuly commented 7 years ago

@shihongf Thanks for your suggestion. Though I still have this problem, I can run and debug the program. I compiled it using codeblock. The executable file generated in debug mode can be run by GDB while failed in codeblock. Maybe the problem is with codeblock. For now, I debug the program using GDB.