如何运行Pixel Objectness的预训练模型

时间:2017-06-07 07:27:16

标签: python neural-network deep-learning caffe image-segmentation

我无法运行Suyog Dutt Jain等人于2017年发布的 Pixel Objectness 的预训练模型。

我在GitHub上的README.md中引用了使用预训练模型部分,但是无法理解以下程序。

·设置:从此处下载并安装Deeplab-v1

·有关如何运行代码的详细说明,请参阅demo.py.

我尝试安装并运行“demo.py”,但是我遇到了一些错误。 虽然我在网站上提到了解决方案,但仍然存在无法解决的错误。

/usr/bin/python2.7 /mnt/C6BF-F678/pixelobjectness/pixelobjectness-master/demo.py
/usr/local/DL-Box/digits-4.0/caffe/distribute/bin/caffe.bin test --model=/mnt/C6BF-F678/pixelobjectness/pixelobjectness-master/test.prototxt --weights=/mnt/C6BF-F678/pixelobjectness/pixelobjectness-master/pixel_objectness.caffemodel --gpu=0 --iterations=4
I0606 14:34:09.451035  9830 caffe.cpp:261] Use GPU with device ID 0
I0606 14:34:09.451524  9830 caffe.cpp:265] GPU device name: Quadro P6000
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 424:16: Message type "caffe.LayerParameter" has no field named "interp_param".
F0606 14:34:09.811586  9830 upgrade_proto.cpp:79] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /mnt/C6BF-F678/pixelobjectness/pixelobjectness-master/test.prototxt
*** Check failure stack trace: ***
@     0x7f3829e1cdaa  (unknown)
@     0x7f3829e1cce4  (unknown)
@     0x7f3829e1c6e6  (unknown)
@     0x7f3829e1f687  (unknown)
@     0x7f382a58ef7e  caffe::ReadNetParamsFromTextFileOrDie()
@     0x7f382a5c8418  caffe::Net<>::Net()
@           0x407954  test()
@           0x40625c  main
@     0x7f3828979f45  (unknown)
@           0x406a2d  (unknown)
@              (nil)  (unknown)
Aborted (core dumped)

Process finished with exit code 0

我已经安装了GPU和caffe。

非常感谢您仔细解释程序。

0 个答案:

没有答案