hdf5 - ValueError:不是属性列表类(不是属性列表类)

时间:2017-02-15 13:03:55

标签: python ubuntu deep-learning caffe hdf5

当我尝试使用caffe训练网络时,我收到以下错误信息:

....
layer {
  name: "sigmoid_speed"
  type: "Sigmoid"
  bottom: "fc8-final"
  top: "pred_speed"
}
layer {
  name: "loss"
  type: "EuclideanLoss"
  bottom: "pred_speed"
  bottom: "reshape-label"
  top: "loss"
}

I0215 20:39:01.273730 29855 layer_factory.hpp:76] Creating layer data
Traceback (most recent call last):
  File "/home/jcsu/workshop/rnn/caffe-jeff/examples/LRCN_activity_recognition/sequence_input_layer_drive.py", line 18, in <module>
    import h5py
  File "/usr/local/lib/python2.7/dist-packages/h5py/__init__.py", line 46, in <module>
    from ._hl.base import is_hdf5, HLObject
  File "/usr/local/lib/python2.7/dist-packages/h5py/_hl/base.py", line 79, in <module>
    dlapl = default_lapl()
  File "/usr/local/lib/python2.7/dist-packages/h5py/_hl/base.py", line 66, in default_lapl
    lapl = h5p.create(h5p.LINK_ACCESS)
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/tmp/pip-4rPeHA-build/h5py/_objects.c:2684)
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/tmp/pip-4rPeHA-build/h5py/_objects.c:2642)
  File "h5py/h5p.pyx", line 135, in h5py.h5p.create (/tmp/pip-4rPeHA-build/h5py/h5p.c:2726)
ValueError: Not a property list class (Not a property list class)
Done

以下是caffe模型文件**.prototxt的相关部分:

layer {
  name: "data"
  type: "Python"
  top: "data"
  top: "label_speed"
  top: "clip_markers"
  python_param {
    module: "sequence_input_layer_drive"
    layer: "videoReadTrain_RGB"
  }
  include: { phase: TRAIN }
}

layer {
  name: "data"
  type: "Python"
  top: "data"
  top: "label_speed"
  top: "clip_markers"
  python_param {
    module: "sequence_input_layer_drive"
    layer: "videoReadTest_RGB"
  }
  include: { phase: TEST stage: "test-on-test" }
}

为了解决问题,我尝试了:

  $ python
  >>> import h5py

成功了。

然后我尝试了:

  python sequence_input_layer_drive.py

它也被执行了。

所以我被困住了......有人可以帮助我吗?

0 个答案:

没有答案