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

Exception while executing vad_test.py. #15

Open
krishnamohan191 opened this issue Oct 10, 2018 · 2 comments
Open

Exception while executing vad_test.py. #15

krishnamohan191 opened this issue Oct 10, 2018 · 2 comments

Comments

@krishnamohan191
Copy link

Traceback (most recent call last):
File "/usr/lib/pycharm-community/helpers/pydev/pydevd.py", line 1596, in
globals = debugger.run(setup['file'], None, None, is_module)
File "/usr/lib/pycharm-community/helpers/pydev/pydevd.py", line 974, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/usr/lib/pycharm-community/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/kbarakam/Desktop/VAD/VAD/lib/python/VAD_test.py", line 62, in
pred, label = graph_test.do_test(graph_list[-1], data_dir, norm_dir, data_len, is_default, mode)
File "/home/kbarakam/Desktop/VAD/VAD/lib/python/graph_test.py", line 89, in do_test
valid_inputs, valid_labels = valid_data_set.next_batch(valid_batch_size)
File "/home/kbarakam/Desktop/VAD/VAD/lib/python/data_reader_bDNN_v2.py", line 94, in next_batch
self._input_spec_list[self._num_file]), batch_size, self._w)
IndexError: list index out of range

---> There is no txt file in input_dir, so when 0th index was accessed, Exception occured.
self._input_spec_list = sorted(glob.glob(input_dir+'/*.txt'))

def next_batch(self, batch_size):
    if self._start_idx == self._w:
        self._inputs = self._padding(
            self._read_input(self._input_file_list[self._num_file],
                             self._input_spec_list[self._num_file]), batch_size, self._w)
  1. Can you upload the text file in input_dir?
  2. Also, can you give more info regarding data_len = int(arg) which is passed as a parameter to graph_test.do_test()?
  3. Do you have comparison results of this VAD algorithm with webrtc VAD? If so, can you post it here
@jtkim-kaist
Copy link
Owner

I'm very sorry for late answer.

  1. audio_dir = './data/example/clean_speech.wav' # directory for specific audio file

  2. the length of your audio data i.e. length(audio) in matlab notation.

  3. Unfortunately there is no comparison.

@jiashihuigithub
Copy link

i met the same issue with you, i haven't the *.txt file, please tell me how to solve it?

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

3 participants