caffe notes 02 【20180712/20180713】

编程入门 行业动态 更新时间:2024-10-09 02:29:10

caffe <a href=https://www.elefans.com/category/jswz/34/1759271.html style=notes 02 【20180712/20180713】"/>

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: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

更多推荐

caffe notes 02 【20180712/20180713】

本文发布于:2024-02-07 05:08:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1753236.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:notes   caffe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!