antonior92/automatic-ecg-diagnosis

Unable to predict

raghavzns opened this issue · 0 comments

python predict.py model/model.hdf5 --ouput_file outputs/

Traceback (most recent call last):
  File "predict.py", line 28, in <module>
    seq = ECGSequence(args.path_to_hdf5, args.dataset_name, batch_size=args.bs)
  File "/media/raghav/Win11/ECG/datasets.py", line 25, in __init__
    self.x = self.f[hdf5_dset]
  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 "/home/raghav/.conda/envs/ecg/lib/python3.8/site-packages/h5py/_hl/group.py", line 264, 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 'tracings' doesn't exist)"