Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

The execution program propressing_common_voice.py reports the following error #50

Open
renzeyu-ai opened this issue Mar 8, 2022 · 0 comments

Comments

@renzeyu-ai
Copy link

Instructions for updating:
This op will be removed after the deprecation date. Please switch to tf.sets.difference().
Traceback (most recent call last):
File "/home2/renzy/project/rnnt-speech-recognition/preprocess_common_voice.py", line 100, in
app.run(main)
File "/home2/renzy/miniconda3/envs/wav/lib/python3.7/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/home2/renzy/miniconda3/envs/wav/lib/python3.7/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "/home2/renzy/project/rnnt-speech-recognition/preprocess_common_voice.py", line 79, in main
write_dataset(train_dataset, 'train')
File "/home2/renzy/project/rnnt-speech-recognition/preprocess_common_voice.py", line 33, in write_dataset
writer.write(dataset)
File "/home2/renzy/miniconda3/envs/wav/lib/python3.7/site-packages/tensorflow/python/lib/io/tf_record.py", line 313, in write
super(TFRecordWriter, self).write(record)
TypeError: write(): incompatible function arguments. The following argument types are supported:
1. (self: tensorflow.python._pywrap_record_io.RecordWriter, record: str) -> None

Invoked with: <tensorflow.python.lib.io.tf_record.TFRecordWriter object at 0x7feb17616bf8>, <MapDataset shapes: (), types: tf.string>

Process finished with exit code 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant