我正在尝试使用我使用caffe库从CSV文件准备的 **_图像数据_** 构建神经网络的最小示例。

I am trying to build a minimal example of a neural network with **_IMAGE DATA_** that I have prepared from a CSV file using the caffe libraries.

我的原始文本如下:\[wine\_train.prototxt\]

My prototext is as follows: \[wine\_train.prototxt\]

name:"wineclass"

layers {

name: "data"

type: "IMAGEDATA"

top: "data"

top: "label"

image_data_param {

source: "examples/wine/test.txt"

batch_size: 10

}

include{

phase:TEST

}

}

layer {

name: "data"

type: "IMAGEDATA"

top: "label"

top: "label"

image_data_param {

source: "examples/wine/train.txt"

batch_size: 2

}

include{

phase:TRAIN

}

}

layers {

name: "ip"

type: "INNER_PRODUCT"

bottom: "data"

top: "ip"

inner_product_param {

num_output: 3

}

}

layers {

name: "loss"

type: "SOFTMAX_LOSS"

bottom: "ip"

bottom: "label"

top: "loss"

}

layer {

name: "accuracy"

type: "Accuracy"

bottom: "ip"

bottom: "label"

top: "accuracy"

include {

phase: TEST

}

}

我的求解器如下:

and my solver is as follows:

net: "examples/wine/wine_train.prototxt"

test_iter: 250

test_interval: 1000

base_lr: 0.01

lr_policy: "step"

gamma: 0.1

stepsize: 5000

display: 1000

max_iter: 10000

momentum: 0.9

weight_decay: 0.0005

snapshot: 10000

snapshot_prefix: "wine/train"

solver_mode: CPU

每次出现以下错误:

Each time I get the following error:

LIGH@IVIP2:~/caffe$ build/tools/caffe train -model '/home/shaunak/caffe/examples/wine/wine_train.prototxt' -solver '/home/shaunak/caffe/examples/wine/solver.prototxt'

I0415 04:31:00.154145 57047 caffe.cpp:117] Use CPU.

I0415 04:31:00.154485 57047 caffe.cpp:121] Starting Optimization

I0415 04:31:00.154552 57047 solver.cpp:32] Initializing solver from parameters:

test_iter: 250

test_interval: 1000

base_lr: 0.01

display: 1000

max_iter: 10000

lr_policy: "step"

gamma: 0.1

momentum: 0.9

weight_decay: 0.0005

stepsize: 5000

snapshot: 10000

snapshot_prefix: "wine/train"

solver_mode: CPU

net: "examples/wine/wine_train.prototxt"

I0415 04:31:00.154660 57047 solver.cpp:79] Creating training net from net file: examples/wine/wine_train.prototxt

[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 4:9: Expected integer or identifier.

F0415 04:31:00.154774 57047 upgrade_proto.cpp:928] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: examples/wine/wine_train.prototxt

*** Check failure stack trace: ***

@ 0x7f4a30766c3c google::LogMessage::Fail()

@ 0x7f4a30766b88 google::LogMessage::SendToLog()

@ 0x7f4a3076658a google::LogMessage::Flush()

@ 0x7f4a30769521 google::LogMessageFatal::~LogMessageFatal()

@ 0x7f4a30b8b1ee caffe::ReadNetParamsFromTextFileOrDie()

@ 0x7f4a30b6dfa2 caffe::Solver《》::InitTrainNet()

@ 0x7f4a30b6ee63 caffe::Solver《》::Init()

@ 0x7f4a30b6f036 caffe::Solver《》::Solver()

@ 0x40c3c0 caffe::GetSolver《》()

@ 0x406361 train()

@ 0x4048f1 main

@ 0x7f4a2fe86ec5 (unknown)

@ 0x404e9d (unknown)

Aborted (core dumped)

LIGH@IVIP2:~/caffe$

错误确切说明了什么以及如何解决?

What exactly does the error say and how do I resolve it?

caffe模型文件解析_Caffe ImageData神经网络基本示例无法解析模型文件相关推荐

  1. ksd文件怎么导入存档_DAY5-step5 Python 示例说明 ZIP 压缩文件

    Python使您可以快速创建zip或者tar压缩文档. 以下命令将压缩整个目录 shutil.make_archive(output_filename, 'zip', dir_name) 以下命令使您 ...

  2. Python银行风控模型的建立 SVM 决策树 神经网络 三种模型比较

    一.首先要感谢原作者的无私分享 原文网页链接: Python银行风控模型的建立_DG息的博客-CSDN博客_银行风控模型 首先感谢"Python银行风控模型的建立"()这位老师,他 ...

  3. 【深度学习】解析神经网络中的数值稳定性、模型初始化和分布偏移(Pytorch)

    [深度学习]解析神经网络中的数值稳定性.模型初始化和分布偏移 文章目录 1 概述1.1 梯度消失和梯度爆炸1.2 打破对称性 2 参数初始化 3 环境和分布偏移3.1 协变量偏移3.2 标签偏移3.3 ...

  4. Deep Learning模型之:CNN卷积神经网络(一)深度解析CNN

    本文整理了网上几位大牛的博客,详细地讲解了CNN的基础结构与核心思想,欢迎交流. [1]Deep learning简介 [2]Deep Learning训练过程 [3]Deep Learning模型之 ...

  5. [转]Deep Learning模型之:CNN卷积神经网络(一)深度解析CNN

    Deep Learning模型之:CNN卷积神经网络(一)深度解析CNN 原文地址:http://m.blog.csdn.net/blog/wu010555688/24487301 本文整理了网上几位 ...

  6. PTMs:QLoRA技巧之源码解读(qlora.py文件)—解析命令与加载参数→数据预处理→模型训练+评估+推理

    PTMs:QLoRA技巧之源码解读(qlora.py文件)-解析命令与加载参数→数据预处理→模型训练+评估+推理 目录 QLoRA技巧之源码解读(qlora.py文件)-解析命令与加载参数→数据预处理 ...

  7. C++调用Python文件,TensorFlow和PyTorch构建的深度学习模型,无法使用GPU的情况分析。

    C++调用Python深度学习模型,包含TensorFlow和PyTorch等构造的模型,然后使用GPU出现问题.包含C++调用Python函数,C++加载模型到GPU,GPU内存占用过大,计算完毕内 ...

  8. python读取xml文件有哪些方法_深入解读Python 解析xml的几种方式

    一,概述 在XML解析方面,Python贯彻了自己开箱即用batteries included的原则, 在自带的标准库中,python提供了大量可以用于处理XML语言的包和工具 二,正文 1,什么是X ...

  9. python解析json传入变量_Python 使用 docopt 解析json参数文件过程讲解

    1. 背景 在深度学习的任务中,通常需要比较复杂的参数以及输入输出配置,比如需要不同的训练data,不同的模型,写入不同的log文件,输出到不同的文件夹以免混淆输出 常用的parser.add()方法 ...

最新文章

  1. .Net使用Redis详解之ServiceStack.Redis(七)
  2. csdn新版博客初体验
  3. 【Java从0到架构师(3),【好文推荐
  4. 929-独特的电子邮件地址
  5. oracle var/tmp,关于/var/tmp/.oracle 目录(ZT)
  6. jasperreports java web报表_iReport+jasperReports制作WEB报表
  7. iTerm2 隐藏用户名和主机名
  8. 使用默认Model Binding支持集合类
  9. 2020已过大半,量子计算机发展如何了?
  10. java(18) - 枚举类型和静态导入
  11. 对于 js 性能优化的启发,debounce 和 throttle。
  12. Java调用MQ队列
  13. u-boot-2012.04.01移植笔记——支持NAND启动
  14. 什么是CRM客户管理系统?
  15. spring-rabbitmq Direct reply-to 模式
  16. DSL是什么意思?Mbps是什么意思?
  17. ibm z系列服务器图片,IBM Z系列本本最清晰图片全面曝光(图)
  18. WEP(有线等效保密)
  19. java实现PC网站实现微信扫码登陆
  20. 2021-12-01 WPF上位机 103-西门子S7协议之V区,DB区读数据方法流程解析

热门文章

  1. Caused by: java.lang.ClassNotFoundException: Cannot find class: User
  2. Caffe2 的基本数据结构(Basics of Caffe2 - Workspaces, Operators, and Nets)[4]
  3. combobox之下拉宽度自适应
  4. linux dd使用记录
  5. 9.带有返回值的函数
  6. hello nodejs
  7. SQL获取变量类型以及变量最大长度
  8. imagick用法!
  9. 【基础知识】Sticky Bit, SUID,SGID
  10. Java sdk及tomcat安装设置