日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人工智能 > Caffe >内容正文

Caffe

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

發布時間:2024/7/5 Caffe 175 豆豆
生活随笔 收集整理的這篇文章主要介紹了 caffe模型文件解析_Caffe ImageData神经网络基本示例无法解析模型文件 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我正在嘗試使用我使用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神经网络基本示例无法解析模型文件的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。