Open EllieGholami opened 5 years ago
Try to extract features with default values on CPU and got this error: Do you have any idea about this error @dutran @puneet29
os.getcwd() /app/examples/c3d_feature_extraction file exists number of frames 347 file per sec 30.0 [Info] num_frames=347, fps=30.0 input_file /app/examples/c3d_feature_extraction/resource/output_tmp/input.txt output_prefix_file /app/examples/c3d_feature_extraction/resource/output_tmp/output_prefix.txt feature_prototxt /app/examples/c3d_feature_extraction/resource/output_tmp/feature_extraction.prototxt [Warning] frame_dir=/app/examples/c3d_feature_extraction/resource/output_tmp/RoadAccidents002_x264 does exist. Will overwrite [Info] Extracting frame num=165.5 [Info] Extracting frame num=166.5 [Info] Extracting frame num=167.5 [Info] Extracting frame num=168.5 [Info] Extracting frame num=169.5 [Info] Extracting frame num=170.5 [Info] Extracting frame num=171.5 [Info] Extracting frame num=172.5 [Info] Extracting frame num=173.5 [Info] Extracting frame num=174.5 [Info] Extracting frame num=175.5 [Info] Extracting frame num=176.5 [Info] Extracting frame num=177.5 [Info] Extracting frame num=178.5 [Info] Extracting frame num=179.5 [Info] Extracting frame num=180.5 The temp directory does exist: /app/examples/c3d_feature_extraction/resource/output_tmp caffe_root /opt/caffe/ [Info] Running C3D feature extraction: "/opt/caffe/build/tools/extract_features /app/examples/c3d_feature_extraction/resource/output_tmp/feature_extraction.prototxt /app/examples/c3d_feature_extraction/conv3d_deepnetA_sport1m_iter_1900000 -1 5 9999999 /app/examples/c3d_feature_extraction/resource/output_tmp/output_prefix.txt fc6-1" E0906 02:28:49.145242 14 extract_features.cpp:62] Using CPU [libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 2:1: Invalid control characters encountered in text. [libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 2:27: Invalid control characters encountered in text. [libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 2:28: Interpreting non ascii codepoint 182. [libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 2:28: Message type "caffe.NetParameter" has no field named "DeepConv3DNet_3x3_Sport1M". F0906 02:28:49.169955 14 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /app/examples/c3d_feature_extraction/conv3d_deepnetA_sport1m_iter_1900000 *** Check failure stack trace: *** @ 0x7f27ed8885cd google::LogMessage::Fail() @ 0x7f27ed88a433 google::LogMessage::SendToLog() @ 0x7f27ed88815b google::LogMessage::Flush() @ 0x7f27ed88ae1e google::LogMessageFatal::~LogMessageFatal() @ 0x7f27ede12891 caffe::ReadNetParamsFromTextFileOrDie() @ 0x7f27eddfdc82 caffe::Net<>::Net() @ 0x40b176 feature_extraction_pipeline<>() @ 0x7f27ec9c0830 __libc_start_main @ 0x405b79 _start @ (nil) (unknown) [Error] feature extraction failed! Done in 27.59s.
The Caffe installation should be fine, as I can run the feature extraction code here, and this is the log:
root@045c38549154:/opt/caffe# ./scripts/download_model_binary.py models/bvlc_reference_caffenet ...100%, 232 MB, 578 KB/s, 411 seconds passedroot@045c38549154:/opt/caffe# mkdir ./examples/_temp root@045c38549154:/opt/caffe# find pwd/examples/images -type f -exec echo {} \; > examples/_temp/temp.txt root@045c38549154:/opt/caffe# sed "s/$/ 0/" examples/_temp/temp.txt > examples/_temp/file_list.txt root@045c38549154:/opt/caffe# ./data/ilsvrc12/get_ilsvrc_aux.sh Downloading... --2019-09-06 02:56:21-- http://dl.caffe.berkeleyvision.org/caffe_ilsvrc12.tar.gz Resolving dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)... 169.229.222.251 Connecting to dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)|169.229.222.251|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 17858008 (17M) [application/octet-stream] Saving to: caffe_ilsvrc12.tar.gz caffe_ilsvrc12.tar.gz 100%[===============================>] 17.03M 500KB/s in 33s 2019-09-06 02:56:55 (528 KB/s) - caffe_ilsvrc12.tar.gz saved [17858008/17858008] Unzipping... Done. root@045c38549154:/opt/caffe# cp examples/feature_extraction/imagenet_val.prototxt examples/_temp root@045c38549154:/opt/caffe# ./build/tools/extract_features models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel examples/_temp/imagenet_val.prototxt fc6 examples/_temp/features 10 leveldb E0906 02:59:06.618793 27 extract_features.cpp:62] Using CPU E0906 02:59:07.137260 27 extract_features.cpp:133] Extracting Features E0906 02:59:49.265465 27 extract_features.cpp:176] Extracted features of 500 query images for feature blob fc6 E0906 02:59:49.265573 27 extract_features.cpp:181] Successfully extracted the features!
Try to extract features with default values on CPU and got this error: Do you have any idea about this error @dutran @puneet29
The Caffe installation should be fine, as I can run the feature extraction code here, and this is the log: