Open JarbasAl opened 1 month ago
error logs for alan-low
Generating TTS for <ovos_tts_plugin_piper.PiperTTSPlugin object at 0x78c88b916e90>/en/alan-low: 14%|█▍ | 7/49 [00:00<00:05, 7.45sentence/s]
Traceback (most recent call last):
File "/home/miro/PycharmProjects/tts-benchmarks/benchmark_rtf_en.py", line 108, in <module>
rtf, wavs, failed = get_rtf(sentences=sentences, lang=lang, plug=tts, voice=voice)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/miro/PycharmProjects/tts-benchmarks/benchmark_rtf_en.py", line 36, in get_rtf
plug.get_tts(s, wav_file=wav_path, lang=lang, voice=voice)
File "/home/miro/PycharmProjects/ovos-core/.venv/lib/python3.11/site-packages/ovos_tts_plugin_piper/__init__.py", line 386, in get_tts
engine.synthesize(sentence, f,
File "/home/miro/PycharmProjects/ovos-core/.venv/lib/python3.11/site-packages/piper/voice.py", line 95, in synthesize
for audio_bytes in self.synthesize_stream_raw(
File "/home/miro/PycharmProjects/ovos-core/.venv/lib/python3.11/site-packages/piper/voice.py", line 123, in synthesize_stream_raw
yield self.synthesize_ids_to_raw(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/miro/PycharmProjects/ovos-core/.venv/lib/python3.11/site-packages/ovos_tts_plugin_piper/__init__.py", line 77, in synthesize_ids_to_raw
audio = self.session.run(None, args, )[0].squeeze((0, 1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/miro/PycharmProjects/ovos-core/.venv/lib/python3.11/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 220, in run
return self._sess.run(output_names, input_feed, run_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Non-zero status code returned while running Reshape node. Name:'/Reshape_1' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/tensor/reshape_helper.h:28 onnxruntime::ReshapeHelper::ReshapeHelper(const onnxruntime::TensorShape&, onnxruntime::TensorShapeVector&, bool) i < input_shape.NumDimensions() was false. The dimension with value zero exceeds the dimension size of the input tensor.
ERROR with sentence 'Big sharks swimming faster grab cold fish now.' : [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Non-zero status code returned while running Reshape node. Name:'/Reshape_1' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/tensor/reshape_helper.h:28 onnxruntime::ReshapeHelper::ReshapeHelper(const onnxruntime::TensorShape&, onnxruntime::TensorShapeVector&, bool) i < input_shape.NumDimensions() was false. The dimension with value zero exceeds the dimension size of the input tensor.
while benchmarking plugins in https://github.com/TigreGotico/tts-benchmarks
i noticed i am unable to benchmark piper plugin because some sentences randomly fail, worse, sometimes this crashes the whole python process with some models
failed synths are logged in the benchmark json files under
"failed_synths"
, example https://github.com/TigreGotico/tts-benchmarks/blob/master/benchmark_tts_es.json#L762