虽然我把字母表的路径,我仍然得到一个错误,字母表应该存在,并可读

2024-05-16 00:26:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我通过这个链接创建了一个非英语的模型 https://discourse.mozilla.org/t/tutorial-how-i-trained-a-specific-french-model-to-control-my-robot/22830 我遵循了这些步骤,但问题是我得到了以下错误:

FATAL Flags parsing error: flag --alphabet_config_path=/home/DeepSpeech/data/vlad/alphabet.txt: The file pointed to by --alphabet_config_path must exist and be readable.

我的sh文件如下所示:

 #!/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;

python -u DeepSpeech.py \
  --train_files data/vlad/train/train.csv \
  --test_files data/vlad/test/test.csv \
  --train_batch_size 64 \
  --test_batch_size 1 \
  --n_hidden 250 \
  --epochs 100 \
  --checkpoint_dir data/vlad/fine_tuning/\
  --export_dir /home/DeepSpeech/data/vlad/results/model_export/ \
  --checkpoint_dir /home/DeepSpeech/data/vlad/fine_tuning/ \
  --alphabet_config_path /home/DeepSpeech/data/vlad/alphabet.txt \
  --lm_binary_path /home/DeepSpeech/data/vlad/lm.binary \
  --lm_trie_path /home/DeepSpeech/data/vlad/trie\
  "$@"

你知道我能做什么吗


Tags: topathtesttxtconfighomedatamodel