• 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
  • 相关阅读:
    asp.net BS拖拽工作流设计及研发(附Demo源码)
    分享NOSQL开发实战
    jQuery插件开发实战
    asp.net搜索引擎(网络爬虫)设计及研发
    asp.net 统一认证及单点登录平台解决方案系列<一>
    ubuntu安装python的psycopg2库时报错
    记一次工作中的小坑(关于celery)
    ssh错误 IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    使用nobody运行redis
    安装python图像处理库PIL
  • 原文地址:https://www.cnblogs.com/morikokyuro/p/13256713.html
Copyright © 2020-2023  润新知