-
🐛 BugThe first two lines are synthesized very slowly (up to 3 minutes to process 26 characters). if pytorch-cuda is installed.
Subsequent lines are synthesized normally (1 second for 640 characters block). To Reproduce
The complete script: https://github.com/S-trace/silero_tts_standalone/blob/master/tts.py Expected behaviorFirst lines should be synthesized without such a huge delay (2-3 seconds maybe, but not 3 minutes). EnvironmentCollecting environment information... OS: Manjaro Linux (x86_64) Python version: 3.10.10 (main, Mar 5 2023, 22:26:53) [GCC 12.2.1 20230201] (64-bit runtime) CPU: Versions of relevant libraries: Additional contextThe delay is much less with python-pytorch (only 14 seconds to process same lines). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Does this help #183? |
Beta Was this translation helpful? Give feedback.
-
I have added |
Beta Was this translation helpful? Give feedback.
I have added
torch._C._jit_set_profiling_mode(False) # Fixes initial delay
to my script, and it fixed the initial delay.Thank you!