Это мой журналОшибка импорта hdf5 файл для подготовки hdf5_classification в CAFFE
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"
}
код работает на окнах
Во-первых, я не могу найти D: \ ThirdPartyLibrary;
Во-вторых, файл h5 был сохранен в соответствующей папке;
В-третьих, я использую абсолютный путь для каждого файла
Я не знаю, почему код не работает хорошо
Скопируйте и вставьте журнал здесь вместо того, чтобы использовать изображение. Также дайте больше информации, разделив редактирование, сделанное вами в файле прототипа, чтобы понять реальную проблему. –
Спасибо за ваш совет, я изменил описание. – ACplus
Не должно быть forwardlash '/' вместо обратного слэша '\' в значении 'train_net' в nonlinear_solver.prototxt –