关于进口咖啡的问题

时间:2016-07-07 06:22:50

标签: python caffe

当我导入caffe时,它出现了一些错误:

import caffe
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/lili/caffe/1master/caffe-master/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
  File "/home/lili/caffe/1master/caffe-master/python/caffe/pycaffe.py", line 15, in <module>
    import caffe.io
  File "/home/lili/caffe/1master/caffe-master/python/caffe/io.py", line 8, in <module>
    from caffe.proto import caffe_pb2
  File "/home/lili/caffe/1master/caffe-master/python/caffe/proto/caffe_pb2.py", line 23, in <module>
    \x06\x66iller\x18\x01 \x01(\x0b\x32\x16.caffe.FillerParameter\x12\x1d\n\x0e\x63hannel_shared\x18\x02 \x01(\x08:\x05\x66\x61lse*\x1c\n\x05Phase\x12\t\n\x05TRAIN\x10\x00\x12\x08\n\x04TEST\x10\x01')
TypeError: __init__() got an unexpected keyword argument 'syntax
谁能帮助我?

2 个答案:

答案 0 :(得分:0)

看起来模型原型或您用于训练的求解器原型存在一些问题。请确保原型文件只包含已定义的属性。

答案 1 :(得分:-1)

你有没有从某个地方复制咖啡?您可能需要按类型编译caffe python: make pycaffe