okay actually i am trying to fine tune the deepspeech 0.3.0 model, the data set is around 2hr 19 mins length. my system configuration is
4 GB RAM and intel core i3 CPU.
tensorflow version = 1.12.0rc2
python 2.7
installed all the required files which are recommended by deepspeech repo requirement.txt
Platform: Windows Subsystem for Linux : Ubuntu 16.04
my directory structure is…
- home
- userk
- DeepSpeechPro
- DeepSpeech - // this is the core project directory
- native_client
- bin
- deepspeech
- generate_trie
- libctc_decoder_with_kenlm.so
- libdeepspeech.so
- LICENSE
- native_client.tar.xz
- README.mozilla
- models
- output_graph.pb
- output_graph.pbmm
- other files
- tuned_model // export_directory
- datasets // the train, test, dev sets lies here
I am trying to train the model from /home/userk/DeepSpeechPro/DeepSpeech/
-> the command recommended by deepspeech readme file…
python DeepSpeech.py
–train_files /home/userk/DeepSpeechPro/datasets/train/train.csv
–dev_files /home/userk/DeepSpeechPro/datasets/dev/dev.csv
–test_files /home/userk/DeepSpeechPro/datasets/test/test.csv
–n_hidden 2048
–epoch -3
–learning_rate 0.0001
produces the following error…
ERROR: The decoder library file does not exist. Make sure you have downloaded or built the native client binaries and pass the appropriate path to the binaries in the --decoder_library_path parameter.
Traceback (most recent call last):
File “DeepSpeech.py”, line 1959, in
tf.app.run(main)
File “/home/userk/.local/lib/python2.7/site-packages/tensorflow/python/platform/app.py”, line 125, in run
_sys.exit(main(argv))
File “DeepSpeech.py”, line 1910, in main
initialize_globals()
File “DeepSpeech.py”, line 330, in initialize_globals
custom_op_module = tf.load_op_library(FLAGS.decoder_library_path)
File “/home/userk/.local/lib/python2.7/site-packages/tensorflow/python/framework/load_library.py”, line 60, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: native_client/libctc_decoder_with_kenlm.so: cannot open shared object file: No such file or directory
-> the command which I saw from the mozilla discourse forum…
python DeepSpeech.py
–train_files /home/userk/DeepSpeechPro/datasets/train/train.csv
–dev_files /home/userk/DeepSpeechPro/datasets/dev/dev.csv
–test_files /home/userk/DeepSpeechPro/datasets/test/test.csv
–n_hidden 2048
–epoch -30
–export_dir /home/userk/DeepSpeechPro/tuned_model/models/
– lm_binary_path /home/userk/DeepSpeechPro/native_client/models/lm.binary
–checkpoint_dir /mnt/c/users/karthikeyan/downloads/modelss/DeepSpeech/
–decoder_library_path /home/userk/DeepSpeechPro/native_client/bin/libctc_decoder_with_kenlm.so
–alphabet_config_path /home/userk/DeepSpeechPro/native_client/models/alphabet.txt
–lm_trie_path /home/userk/DeepSpeechPro/native_client/models/trie
–learning_rate 0.0001
produces the following error…
Traceback (most recent call last):
File “DeepSpeech.py”, line 1959, in
tf.app.run(main)
File “/home/userk/.local/lib/python2.7/site-packages/tensorflow/python/platform/app.py”, line 125, in run
_sys.exit(main(argv))
File “DeepSpeech.py”, line 1910, in main
initialize_globals()
File “DeepSpeech.py”, line 330, in initialize_globals
custom_op_module = tf.load_op_library(FLAGS.decoder_library_path)
File “/home/userk/.local/lib/python2.7/site-packages/tensorflow/python/framework/load_library.py”, line 60, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /home/userk/DeepSpeechPro/native_client/bin/libctc_decoder_with_kenlm.so: undefined symbol: _ZN10tensorflow12OpDefBuilderC1EN4absl11string_viewE
I hope this information is feasible. if needed more information please ask sir.
I Even gone through lot of github issues but I can’t Find a solution. Hope you might be able to help me out in this.
Thank you…