bootphon / ABXpy

ABX discrimination task in python
https://docs.cognitive-ml.fr/ABXpy
MIT License
43 stars 16 forks source link

An error occured during Computing the distances #16

Open sameerkhurana10 opened 5 years ago

sameerkhurana10 commented 5 years ago

Hi,

running python bin/sample_eval1.py MFCC feats, gives me the following error

MFCC is the sample MFCCs provided in this repo.

Processing task across_talkers
Preprocessing... Writing the features in h5 format
Computing the distances
An error occured during the computation
Traceback (most recent call last):
  File "bin/sample_eval1.py", line 358, in <module>
final_score = fullrun(task, args.features, args.distance, args.output, ncpus=ncpus, keepcsv=args.csv)
  File "bin/sample_eval1.py", line 277, in fullrun
distance_file, distancefun, n_cpu=ncpus)
  File "/data/sls/temp/sameerk/tools/anaconda3/envs/abx2/lib/python2.7/site-packages/ABXpy-0.1.0-py2.7-linux-x86_64.egg/ABXpy/distances/distances.py", line 265, in compute_distances
jobs = create_distance_jobs(pair_file, distance_file, n_cpu)
  File "/data/sls/temp/sameerk/tools/anaconda3/envs/abx2/lib/python2.7/site-packages/ABXpy-0.1.0-py2.7-linux-x86_64.egg/ABXpy/distances/distances.py", line 41, in create_distance_jobs
by_dsets = [by_dset for by_dset in fh['unique_pairs']]
  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 "/data/sls/temp/sameerk/tools/anaconda3/envs/abx2/lib/python2.7/site-packages/h5py-2.9.0-py2.7-linux-x86_64.egg/h5py/_hl/group.py", line 262, 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

what could be going wrong?

mmmaat commented 5 years ago

Hi,

I need more context to understand the bug...

sameerkhurana10 commented 5 years ago

Hi,

Sorry, I should have mentioned that I am running Zerospeech2015 branch.

In the above branch we have bin/sample_eval1.py

I am not in a docker container.

Running python setup.py test in branch zerospeech2015, I have attached the full log file. (4 tests failed). test_log.txt