caffe notes 02 【20180712/20180713】
caffe notes 02 【20180712/20180713】
warning:switch(status)未处理。
switch (status) {
^
In file included from ./include/caffe/util/device_alternate.hpp:40:0,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/layers/base_data_layer.cpp:4:
./include/caffe/util/cudnn.hpp: In function ‘const char* cudnnGetErrorString(cudnnStatus_t)’:
./include/caffe/util/cudnn.hpp:21:10: warning: enumeration value ‘CUDNN_STATUS_RUNTIME_PREREQUISITE_MISSING’ not handled in switch [-Wswitch]
fix:加入默认项。
default:
break;
error:
gpu_share@jxf262626:~/jz/about-caffe/gklz1982/caffe-yolov2-master$ ./build/tools/caffe train --solver="./examples/yolo/darknet_v3/gnet_region_train_small.prototxt" -gpu 4,5,6,7 | tee train_small_jz_0713.log
[libprotobuf ERROR google/protobuf/text_format.cc:299] Error parsing text-format caffe.SolverParameter: 1:5: Message type "caffe.SolverParameter" has no field named "name".
F0713 17:20:15.177826 5740 upgrade_proto.cpp:1063] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse SolverParameter file: ./examples/yolo/darknet_v3/gnet_region_train_small.prototxt
*** Check failure stack trace: ***
@ 0x7f96a281a5cd google::LogMessage::Fail()
@ 0x7f96a281c433 google::LogMessage::SendToLog()
@ 0x7f96a281a15b google::LogMessage::Flush()
@ 0x7f96a281ce1e google::LogMessageFatal::~LogMessageFatal()
@ 0x7f96a2e717f1 caffe::ReadSolverParamsFromTextFileOrDie()
@ 0x40d5a6 train()
@ 0x408907 main
@ 0x7f96a1aa8830 __libc_start_main
@ 0x4090c9 _start
@ (nil) (unknown)
fix:这里solver=文件写错,传入solver而不是train的prototxt
gpu_share@jxf262626:~/jz/about-caffe/gklz1982/caffe-yolov2-master$ ./build/tools/caffe train --solver="./examples/yolo/darknet_v3/gnet_region_solver_small.prototxt" -gpu 4,5,6,7 | tee train_small_jz_0713.log