caffe 测试错误在测试 MNIST 时没有名为 "net" 的字段
caffe test error no field named "net" on testing MNIST
我在测试 MNIST 时遇到了与 Caffe error: no field named "net" 相同的问题。
运行
keides2@ubuntu:~/caffe$ build/tools/caffe test -model examples/mnist/lenet_solver.prototxt
-weights examples/mnist/lenet_iter_10000.caffemodel -iterations 100
我得到以下输出:
I0820 11:31:33.820005 113569 caffe.cpp:279] Use CPU. [libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 2:4: Message type "caffe.NetParameter" has no field named "net".
F0820 11:31:33.844912 113569 upgrade_proto.cpp:79] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: examples/mnist/lenet_solver.prototxt
Check failure stack trace:
@ 0x7f3f9744edaa (unknown)
@ 0x7f3f9744ece4 (unknown)
@ 0x7f3f9744e6e6 (unknown)
@ 0x7f3f97451687 (unknown)
@ 0x7f3f977fc0c7 caffe::ReadNetParamsFromTextFileOrDie()
@ 0x7f3f97834b0f caffe::Net<>::Net()
@ 0x407843 test()
@ 0x405f7b main
@ 0x7f3f9645af45 (unknown)
@ 0x406677 (unknown)
@ (nil) (unknown)
'lenet_solver.prototxt'
和'lenet_train_test.prototxt'
为原创(未修改)。
然后,
keides2@ubuntu:~/caffe$ printenv PYTHONPATH
/home/keides2/caffe/python
你能帮帮我吗?
当 运行 caffe test
您不需要解算器文件(lenet_solver.prototxt
在您的情况下),而是直接使用 net prototxt。
尝试:
build/tools/caffe test -model examples/mnist/lenet_train_test.prototxt
-weights examples/mnist/lenet_iter_10000.caffemodel -iterations 100
我在测试 MNIST 时遇到了与 Caffe error: no field named "net" 相同的问题。
运行
keides2@ubuntu:~/caffe$ build/tools/caffe test -model examples/mnist/lenet_solver.prototxt
-weights examples/mnist/lenet_iter_10000.caffemodel -iterations 100
我得到以下输出:
I0820 11:31:33.820005 113569 caffe.cpp:279] Use CPU. [libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 2:4: Message type "caffe.NetParameter" has no field named "net".
F0820 11:31:33.844912 113569 upgrade_proto.cpp:79] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: examples/mnist/lenet_solver.prototxt
Check failure stack trace:
@ 0x7f3f9744edaa (unknown)
@ 0x7f3f9744ece4 (unknown)
@ 0x7f3f9744e6e6 (unknown)
@ 0x7f3f97451687 (unknown)
@ 0x7f3f977fc0c7 caffe::ReadNetParamsFromTextFileOrDie()
@ 0x7f3f97834b0f caffe::Net<>::Net()
@ 0x407843 test()
@ 0x405f7b main
@ 0x7f3f9645af45 (unknown)
@ 0x406677 (unknown)
@ (nil) (unknown)
'lenet_solver.prototxt'
和'lenet_train_test.prototxt'
为原创(未修改)。
然后,
keides2@ubuntu:~/caffe$ printenv PYTHONPATH
/home/keides2/caffe/python
你能帮帮我吗?
当 运行 caffe test
您不需要解算器文件(lenet_solver.prototxt
在您的情况下),而是直接使用 net prototxt。
尝试:
build/tools/caffe test -model examples/mnist/lenet_train_test.prototxt
-weights examples/mnist/lenet_iter_10000.caffemodel -iterations 100