Tensorflow音频识别-训练数据

时间:2018-08-03 03:35:40

标签: python tensorflow speech-recognition voice-recognition

我想通过训练自己的数据来测试Tensorflow的音频识别。按照Tensorflow简单音频识别教程中的说明进行操作:

https://www.tensorflow.org/tutorials/sequences/audio_recognition

我运行train.py时收到错误消息: 语法错误:'unicodescape'编解码器无法解码位置2-3的再见...

我将--data_dir=/your/data/folder/更改为计算机上具有自己的数据集的文件夹,方法是在训练脚本中进行如下操作:

parser.add_argument(
  '--data_dir',
  type=str,
  default='C:\Users\Matthew Chen\Documents\GSF\ALL',
  help="""\
  Where to download the speech training data to.
  """)

其中ALL是包含我所有WAV文件的文件夹。

我假设我没有正确禁用--data_url=,但是文档似乎没有提供足够的细节来说明如何禁用它。

--data_url=的外观如下:

parser.add_argument(
  '--data_url',
  type=str,
  pylint: disable=line-too-long
  #default='C:\Users\Matthew Chen\Documents\GSF\...\ALL',
  # pylint: enable=line-too-long
  help='Location of speech training data archive on the web.')

是否可能必须输入特定的字符串才能将其禁用?

0 个答案:

没有答案
相关问题