asr-study icon indicating copy to clipboard operation
asr-study copied to clipboard

eval.py returns an error

Open RaulMedeiros opened this issue 6 years ago • 0 comments

The example from README.md > python eval.py --model data/models/brsmv1.h5 --dataset .datasets/brsd/data.h5 returns the following error:

Requirement already satisfied: h5py in /usr/local/lib/python2.7/dist-packages Requirement already satisfied: numpy>=1.7 in /usr/local/lib/python2.7/dist-packages (from h5py) Requirement already satisfied: six in /usr/local/lib/python2.7/dist-packages (from h5py) Requirement already satisfied: librosa in /usr/local/lib/python2.7/dist-packages Requirement already satisfied: unidecode in /usr/local/lib/python2.7/dist-packages Requirement already satisfied: decorator>=3.0.0 in /usr/local/lib/python2.7/dist-packages (from librosa) Requirement already satisfied: audioread>=2.0.0 in /usr/local/lib/python2.7/dist-packages (from librosa) Requirement already satisfied: scikit-learn!=0.19.0,>=0.14.0 in /usr/local/lib/python2.7/dist-packages (from librosa) Requirement already satisfied: resampy>=0.2.0 in /usr/local/lib/python2.7/dist-packages (from librosa) Requirement already satisfied: joblib>=0.7.0 in /usr/local/lib/python2.7/dist-packages (from librosa) Requirement already satisfied: numpy>=1.8.0 in /usr/local/lib/python2.7/dist-packages (from librosa) Requirement already satisfied: scipy>=0.14.0 in /usr/local/lib/python2.7/dist-packages (from librosa) Requirement already satisfied: six>=1.3 in /usr/local/lib/python2.7/dist-packages (from librosa) Requirement already satisfied: numba>=0.32 in /usr/local/lib/python2.7/dist-packages (from resampy>=0.2.0->librosa) Requirement already satisfied: funcsigs in /usr/local/lib/python2.7/dist-packages (from numba>=0.32->resampy>=0.2.0->librosa) Requirement already satisfied: enum34 in /usr/local/lib/python2.7/dist-packages (from numba>=0.32->resampy>=0.2.0->librosa) Requirement already satisfied: llvmlite>=0.22.0.dev0 in /usr/local/lib/python2.7/dist-packages (from numba>=0.32->resampy>=0.2.0->librosa) Requirement already satisfied: singledispatch in /usr/local/lib/python2.7/dist-packages (from numba>=0.32->resampy>=0.2.0->librosa) /usr/local/lib/python2.7/dist-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters Using TensorFlow backend. WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/keras/backend/tensorflow_backend.py:1029: calling reduce_sum (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version. Instructions for updating: keep_dims is deprecated, use keepdims instead WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/keras/backend/tensorflow_backend.py:1108: calling reduce_mean (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version. Instructions for updating: keep_dims is deprecated, use keepdims instead Traceback (most recent call last): File "eval.py", line 74, in test_flow = data_gen.flow_from_fname(args.dataset, datasets=args.subset) File "/content/asr-study/datasets/dataset_generator.py", line 72, in flow_from_fname for dataset in datasets] File "/content/asr-study/datasets/dataset_generator.py", line 111, in flow_from_h5_group mode=self.mode) File "/content/asr-study/datasets/dataset_generator.py", line 258, in init inputs = h5group['inputs'] File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "/usr/local/lib/python2.7/dist-packages/h5py/_hl/group.py", line 167, in getitem oid = h5o.open(self.id, self._e(name), lapl=self._lapl) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py/h5o.pyx", line 190, in h5py.h5o.open KeyError: "Unable to open object (object 'inputs' doesn't exist)"

RaulMedeiros avatar Mar 21 '18 17:03 RaulMedeiros