Code Monkey home page Code Monkey logo

keras_deepspeech2_speechrecognition's People

Contributors

bjtommychen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lebron-kun

keras_deepspeech2_speechrecognition's Issues

ValueError: all the input array dimensions except for the concatenation axis must match exactly

Hello, When I used your code, I got the trackback info as following? Do you konw how to solve it ?
Thanks in advance.


WARNING: libdeepspeech failed to load, resorting to deprecated code
         Refer to README.md for instructions on installing libdeepspeech
------------------------------------------------------------------------
Traceback (most recent call last):
  File "Keras_DS2_SpeechRecognition.py", line 330, in <module>
    do_train_ds2_CTC()
  File "Keras_DS2_SpeechRecognition.py", line 261, in do_train_ds2_CTC
    validation_data=gen_ctc_byclass(validGen), validation_steps=validGen.numSteps, verbose=VERBOSE)
  File "/root/anaconda3/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
    return func(*args, **kwargs)
  File "/root/anaconda3/lib/python3.6/site-packages/keras/engine/training.py", line 1418, in fit_generator
    initial_epoch=initial_epoch)
  File "/root/anaconda3/lib/python3.6/site-packages/keras/engine/training_generator.py", line 181, in fit_generator
    generator_output = next(output_generator)
  File "/root/anaconda3/lib/python3.6/site-packages/keras/utils/data_utils.py", line 709, in get
    six.reraise(*sys.exc_info())
  File "/root/anaconda3/lib/python3.6/site-packages/six.py", line 693, in reraise
    raise value
  File "/root/anaconda3/lib/python3.6/site-packages/keras/utils/data_utils.py", line 685, in get
    inputs = self.queue.get(block=True).get()
  File "/root/anaconda3/lib/python3.6/multiprocessing/pool.py", line 644, in get
    raise self._value
  File "/root/anaconda3/lib/python3.6/multiprocessing/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/root/anaconda3/lib/python3.6/site-packages/keras/utils/data_utils.py", line 626, in next_sample
    return six.next(_SHARED_SEQUENCES[uid])
  File "Keras_DS2_SpeechRecognition.py", line 164, in gen_ctc_byclass
    a_mfccs, a_mfcclens, a_label, a_labelen, wavfilenames = dataGen.__next__()
  File "Keras_DS2_SpeechRecognition.py", line 134, in __next__
    self.data[self.batchPointer: self.batchPointer + thislen])
  File "Keras_DS2_SpeechRecognition.py", line 151, in getNextSplitData
    a_mfccs, a_mfcclens = _get_files_mfcc(wav_filenames)
  File "Keras_DS2_SpeechRecognition.py", line 97, in _get_files_mfcc
    this_mfcc = audiofile_to_input_vector(audio_fname, n_input, n_context)
  File "/data/code/Keras_DeepSpeech2_SpeechRecognition/util/audio.py", line 68, in audiofile_to_input_vector
    return audioToInputVector(audio, fs, numcep, numcontext)
  File "/data/code/Keras_DeepSpeech2_SpeechRecognition/util/audio.py", line 35, in audioToInputVector
    features = np.concatenate((empty_context, features, empty_context))
ValueError: all the input array dimensions except for the concatenation axis must match exactly

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.