Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eval.py returns an error #5

Open
RaulMedeiros opened this issue Mar 21, 2018 · 0 comments
Open

eval.py returns an error #5

RaulMedeiros opened this issue Mar 21, 2018 · 0 comments

Comments

@RaulMedeiros
Copy link

RaulMedeiros commented Mar 21, 2018

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)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant