neonbjb / tortoise-tts

A multi-voice TTS system trained with an emphasis on quality
Apache License 2.0
13.02k stars 1.8k forks source link

OMP: Error #396

Open x6800 opened 1 year ago

x6800 commented 1 year ago

"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/."

Everything works except when trying to generate TTS other than the "random" preset. Then it spits out this error.

Hsad commented 1 year ago

As a temporary fix, adding KMP_DUPLICATE_LIB_OK=TRUE to the path on windows does work to allow different voices

Endez commented 1 year ago

what path?

Hsad commented 1 year ago

image Windows system variables

Endez commented 1 year ago

Thank you

moojustice1 commented 1 year ago

I also ran into this issue, and found https://stackoverflow.com/questions/20554074/sklearn-omp-error-15-initializing-libiomp5md-dll-but-found-mk2iomp5md-dll-a

Adding in the KMP_DUPLICATE_LIB_OK=TRUE would work as a workaround, but what resolved it for me was to reinstall numpy

edward93 commented 10 months ago

For me it was removing libiomp5md.dll from the current env ...envs/XXX/Library/bin folder as it was already in my ...Library/bin main one