tortoise-tts
tortoise-tts copied to clipboard
1. Slowness, 2. libiomp5md.dll already initialized.
I installed tortoise-tts using anaconda and Python 3.10 following the Readme
First time it ran the standard phrase:
python tortoise/do_tts.py --text "I'm going to speak this" --voice random --preset fast Taking 15 mins to generate 3 audio.wavs
2nd Time with a slight variation: (tortoise-tts) C:\Users\XYZ\tortoise-tts>python tortoise/do_tts.py --text "Hello Martians bow to the Earthling overlords" --voice train_kennard --preset fast
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized. OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.
Doing a search using explorer I found 32 instances of libiomp5md.dll on my C:\drive. It is used in many different programs including Photoshop, Premiere Rush, TouchDesigner, Flowframes, DaVinciResolve, Intel Extreme Tuning Utility, StableDiffusion, oobabooga, Kohya, Bark-tts, Silero-tts
In the C:\Users\XYZ\anaconda3\path . . . there are six instances of libiomp5md.dll
I attempted to set the environment variable using System properties. The name I gave it was >OpenMPRuntime Q? Is this a good name or should it be something else? The variable>KMP_DUPLICATE_LIB_OK=TRUE
This made no difference, so I will re-boot and re-try. Rebooting and redo-ing made no difference either.
I add the same issue, I did a search on my anaconda folder too, and found that my env/tortoise add two times this file. I renamed one to libiomp5md.dllbak and it worked then.