I have configured and installed two Ubuntu 16.04 environments for training with DeepSpeech in the last weeks.
Both environments with the same steps as before:
- Git clone DeepSpeech
- Install requirements
- Instal python bindings
$ pip install deepspeech
- Install libraries (and make them available in the LD_LIBRARY_PATH)
$ ./utils/taskcluster.py --target .
- Training run with DeepSpeech.py
The first one was working fine as usual.
But the second one, failed running the training.
The errors were :
/DeepSpeech/util/audio.py:17: DeepSpeechDeprecationWarning: DeepSpeech Python bindings could not be imported, resorting to slower code to compute audio features. Refer to README.md for instructions on how to install (or build) the DeepSpeech Python bindings. category=DeepSpeechDeprecationWarning) Traceback (most recent call last): File "./DeepSpeech.numcep.py", line 1952, in <module> tf.app.run() File "/home/ubuntu/miniconda3/envs/deep-speech/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 126, in run _sys.exit(main(argv)) File "./DeepSpeech.numcep.py", line 1909, in main train() File "./DeepSpeech.numcep.py", line 1558, in train results_tuple, gradients, mean_edit_distance, loss = get_tower_results(model_feeder, optimizer) File "./DeepSpeech.numcep.py", line 669, in get_tower_results calculate_mean_edit_distance_and_loss(model_feeder, i, dropout_rates) File "./DeepSpeech.numcep.py", line 562, in calculate_mean_edit_distance_and_loss decoded, _ = decode_with_lm(logits, batch_seq_len, merge_repeated=False, beam_width=FLAGS.beam_width) File "./DeepSpeech.numcep.py", line 517, in decode_with_lm top_paths=top_paths, merge_repeated=merge_repeated)) TypeError: ctc_beam_search_decoder_with_lm() got an unexpected keyword argument 'word_count_weight'
I noticed that the libdeepspeech_utils.so is not anymore in the native_client.tar.xz package, but the python bindings seems to keep wanting it. Even more the ctc_beam_search_decoder_with_lm function seems to be different as expected.
Indeed using the native_client_tar.xz package from the first environment solved the problem.
I have also noticed that in the native_client compilation README.md the //native_client:deepspeech_utils target has dissappear as well.
So, do I have to download something else installing other environments from now on? Or is just a temporary version mismatch between python bindings, DeepSpeech.py and taskcluster?.