Das ist mein logFehler Import hdf5 Datei in caffe zu trainieren 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
Das ist mein Schläger ist
.\bin\caffe.exe train --solver=D:\caffe-windows-master\examples\hdf5_classification\nonlinear_solver.prototxt
pause
Das ist mein 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
Dies ist mein nichtlinear_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"
}
der Code läuft auf den Fenstern
Erstens kann ich nicht die D finden: \ ThirdPartyLibrary;
Zweitens wurde die h5-Datei im richtigen Ordner gespeichert;
Drittens verwende ich den absoluten Pfad für jede Datei
Ich weiß nicht, warum der Code nicht gut
Copy hier stattdessen das Protokoll einfügen ein Bild zu verwenden. Geben Sie auch weitere Informationen, indem Sie die Änderungen teilen, die Sie in der Prototxt-Datei vorgenommen haben, um das eigentliche Problem zu verstehen. –
Vielen Dank für Ihren Rat, ich habe die Beschreibung geändert. – ACplus
Sollte es nicht vorwärts sein '/' anstelle von Backslash '\' im Wert von 'train_net' in nonlinear_solver.prototxt –