zoukankan      html  css  js  c++  java
  • 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 functionconst 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
  • 相关阅读:
    Web Ajax入门一讲
    Delphi – 我的代码之简单五子棋
    闲话 纪念我的4520G
    Delphi 我的代码之窗体移动
    破文 黑客游戏
    破文 OD常用断点
    Web 简单的开始 – Ajax + XML +DOM
    工具 – XMLSPY 和 UModel 商业版 2010v12.0有注册机
    API InterlockedCompareExchange用法
    软件工程 设计模式学习之策略模式Strategy
  • 原文地址:https://www.cnblogs.com/morikokyuro/p/13256713.html
Copyright © 2011-2022 走看看