BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
34.03k stars 18.7k forks source link

libprotobuf ERROR using extract_features.exe #6850

Open vagi8 opened 4 years ago

vagi8 commented 4 years ago

I have successfully installed caffe for windows 10 x64.

Now, i am trying to implement c3d feature extraction.

I am using the file extract_c3d_features.py, this file gathers all the video converts them into images of different frames, and calling extract_features.exe using subprocess call. extracting features and converting them to CSV files.

my command is - C:\Users\..\caffe\build/tools/extract_features.exe C:\users\..\c3d-master\c3d-v1.0\examples\c3d_feature_extraction\tmp\feature_extraction.prototxt C:\users\..\c3d-master\c3d-v1.0\examples\c3d_feature_extraction\conv3d_deepnetA_sport1m_iter_1900000 0 50 9999999 C:\users\..\c3d-master\c3d-v1.0\examples\c3d_feature_extraction\tmp\output_prefix.txt fc6-1

But then i get the following error

E1016 14:29:38.616895 12684 extract_features.cpp:62] Using CPU [libprotobuf ERROR C:\Users\guillaume\work\caffe-builder\build_v140_x64\packages\protobuf\protobuf_download-prefix\src\protobuf_download\src\google\protobuf\text_format.cc:298] Error parsing text-format caffe.NetParameter: 2:1: Invalid control characters encountered in text. [libprotobuf ERROR C:\Users\guillaume\work\caffe-builder\build_v140_x64\packages\protobuf\protobuf_download-prefix\src\protobuf_download\src\google\protobuf\text_format.cc:298] Error parsing text-format caffe.NetParameter: 2:27: Invalid control characters encountered in text. [libprotobuf ERROR C:\Users\guillaume\work\caffe-builder\build_v140_x64\packages\protobuf\protobuf_download-prefix\src\protobuf_download\src\google\protobuf\text_format.cc:298] Error parsing text-format caffe.NetParameter: 2:28: Interpreting non ascii codepoint 182. [libprotobuf ERROR C:\Users\guillaume\work\caffe-builder\build_v140_x64\packages\protobuf\protobuf_download-prefix\src\protobuf_download\src\google\protobuf\text_format.cc:298] Error parsing text-format caffe.NetParameter: 2:28: Message type "caffe.NetParameter" has no field named "DeepConv3DNet_3x3_Sport1M". F1016 14:29:38.682889 12684 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: C:\users\vageeshan.mankala\c3d-master\c3d-v1.0\examples\c3d_feature_extraction\conv3d_deepnetA_sport1m_iter_1900000 Check failure stack trace:

Does it have anything to do with formating of .prototxt and .txt files ?? but i am just running same given example file in the repo. nothing new.

also, is it my caffe problem, i think i did install caffe correctly. is there any way to check it ?