2016-04-29 59 views
1

這是我的日誌錯誤導入HDF5文件訓練hdf5_classification在朱古力

Log file created at: 2016/04/29 14:01:52 
    Running on machine: DELL 
    Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg 
    F0429 14:01:52.191473 14832 upgrade_proto.cpp:79] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: examples/hdf5_classification/nonlinear_auto_train.prototxt 

這是我的蝙蝠

.\bin\caffe.exe train --solver=D:\caffe-windows-master\examples\hdf5_classification\nonlinear_solver.prototxt 
pause 

這是我nonlinear_solver.prototxt

train_net: "examples/hdf5_classification/nonlinear_auto_train.prototxt" 
#test_net: "examples/hdf5_classification/nonlinear_auto_test.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: "examples/hdf5_classification/data/train" 
solver_mode: GPU 

這是我的nonlinear_auto_train.prototxt

layer { 
    name: "data" 
    type: "HDF5Data" 
    top: "data" 
    top: "label" 
    hdf5_data_param { 
    source: "D:\caffe-windows-master\examples/hdf5_classification/data/list.txt" 
    batch_size: 10 
    } 
} 
layer { 
    name: "ip1" 
    type: "InnerProduct" 
    bottom: "data" 
    top: "ip1" 
    inner_product_param { 
    num_output: 40 
    weight_filler { 
     type: "xavier" 
    } 
    } 
} 
layer { 
    name: "relu1" 
    type: "ReLU" 
    bottom: "ip1" 
    top: "ip1" 
} 
layer { 
    name: "ip2" 
    type: "InnerProduct" 
    bottom: "ip1" 
    top: "ip2" 
    inner_product_param { 
    num_output: 2 
    weight_filler { 
     type: "xavier" 
    } 
    } 
} 
layer { 
    name: "accuracy" 
    type: "Accuracy" 
    bottom: "ip2" 
    bottom: "label" 
    top: "accuracy" 
} 
layer { 
    name: "loss" 
    type: "SoftmaxWithLoss" 
    bottom: "ip2" 
    bottom: "label" 
    top: "loss" 
} 

代碼運行在Windows

首先,我無法找到d:\ ThirdPartyLibrary;

其次,h5文件已保存在正確的文件夾;

第三,我使用絕對路徑每個文件

我不知道爲什麼代碼不能運行良好

+1

複製粘貼日誌在這裏,而不是使用圖像。同時提供更多信息,通過分享您在原型文件中進行的編輯以瞭解真正的問題 –

+0

感謝您的建議,我改變了描述。 – ACplus

+0

不應該是在'linear_solver.prototxt –

回答

0

你得到一個錯誤信息「無法解析[... ] train.prototxt」。
這提示你在你的train.prototxt文件中有語法錯誤。
因爲它混合斜線和反斜線我會懷疑行

source: "D:\caffe-windows-master\examples/hdf5_classification/data/list.txt" 


嘗試:

source: "D:/caffe-windows-master/examples/hdf5_classification/data/list.txt" 
相關問題