Hello. I am currently getting this error that I do not understand. I am pointing to the kenlm.scorer given after git cloning with git-lfs. I am not sure about this error. Any assistance would be very helpful. Thank you.
Below is a picture of my .sh file. I am running this on my CPU and have followed all training steps in the Docs.
#!/bin/sh
set -xe
if [ ! -f DeepSpeech.py ]; then
echo “Please make sure you run this from DeepSpeech’s top level directory.”
exit 1
fi;if [ -d “${COMPUTE_KEEP_DIR}” ]; then
checkpoint_dir=$COMPUTE_KEEP_DIR
else
checkpoint_dir=$(python -c ‘from xdg import BaseDirectory as xdg; print(xdg.save_data_path(“deepspeech/googlec2”))’)
fiexport CUDA_VISIBLE_DEVICES=0
export TF_FORCE_GPU_ALLOW_GROWTH=truepython -u DeepSpeech.py --train_files //tmp/external/google_cmds_processed/train.csv
–test_files //tmp/external/google_cmds_processed/test.csv
–dev_files //tmp/external/google_cmds_processed/dev.csv
–scorer_path //DeepSpeech/data/lm/kenlm.scorer
–alphabet_config_path //DeepSpeech/data/alphabet.txt
–export_dir /tmp/external/DeepSpeech_models/googlecommands
–checkpoint_dir “$checkpoint_dir”
“$@”
here is what the error looks like:
python -u DeepSpeech.py --train_files //tmp/external/google_cmds_processed/train.csv --test_files //tmp/external/google_cmds_processed/test.csv --dev_files //tmp/external/google_cmds_processed/dev.csv --scorer_path //DeepSpeech/data/lm/kenlm.scorer --alphabet_config_path //DeepSpeech/data/alphabet.txt
Traceback (most recent call last):
File “DeepSpeech.py”, line 12, in
ds_train.run_script()
File “/DeepSpeech/training/deepspeech_training/train.py”, line 941, in run_script
absl.app.run(main)
File “/root/deepspeech-train-venv/lib/python3.6/site-packages/absl/app.py”, line 299, in run
_run_main(main, args)
File “/root/deepspeech-train-venv/lib/python3.6/site-packages/absl/app.py”, line 250, in _run_main
sys.exit(main(argv))
File “/DeepSpeech/training/deepspeech_training/train.py”, line 908, in main
early_training_checks()
File “/DeepSpeech/training/deepspeech_training/train.py”, line 893, in early_training_checks
FLAGS.scorer_path, Config.alphabet)
File “/root/deepspeech-train-venv/lib/python3.6/site-packages/ds_ctcdecoder/init.py”, line 42, in init
raise ValueError(‘Scorer initialization failed with error code {}’.format(err))
ValueError: Scorer initialization failed with error code 8198
swig/python detected a memory leak of type ‘Alphabet *’, no destructor found.