WARNING: Logging before InitGoogleLogging() is written to STDERR
W0703 14:15:52.485920 12549 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W0703 14:15:52.485960 12549 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W0703 14:15:52.485971 12549 _caffe.cpp:142] Net('Example_Models/segnet_model_driving_webdemo.prototxt', 1, weights='Example_Models/segnet_weights_driving_webdemo.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 47:12: Message type "caffe.LayerParameter" has no field named "bn_param".
F0703 14:15:52.487574 12549 upgrade_proto.cpp:90] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: Example_Models/segnet_model_driving_webdemo.prototxt
Check failure stack trace:
Aborted (core dumped)
Make sure that the segnet-caffe is correctly imported (modify line 14 in webcam_demo.py).
For me, the error was that caffe_root didn't end with / (slash) (it needs to end with /).
I get the following error. Anything I can change to get it working?
abdullah@abdullah:~/Downloads/SegNet-Tutorial-master$ python Scripts/webcam_demo.py --model Example_Models/segnet_model_driving_webdemo.prototxt --weights Example_Models/segnet_weights_driving_webdemo.caffemodel --colours Scripts/camvid12.png
WARNING: Logging before InitGoogleLogging() is written to STDERR W0703 14:15:52.485920 12549 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface W0703 14:15:52.485960 12549 _caffe.cpp:140] Use this instead (with the named "weights" parameter): W0703 14:15:52.485971 12549 _caffe.cpp:142] Net('Example_Models/segnet_model_driving_webdemo.prototxt', 1, weights='Example_Models/segnet_weights_driving_webdemo.caffemodel') [libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 47:12: Message type "caffe.LayerParameter" has no field named "bn_param". F0703 14:15:52.487574 12549 upgrade_proto.cpp:90] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: Example_Models/segnet_model_driving_webdemo.prototxt Check failure stack trace: Aborted (core dumped)