erew123 / alltalk_tts

AllTalk is based on the Coqui TTS engine, similar to the Coqui_tts extension for Text generation webUI, however supports a variety of advanced features, such as a settings page, low VRAM support, DeepSpeed, narrator, model finetuning, custom models, wav file maintenance. It can also be used with 3rd Party software via JSON calls.
GNU Affero General Public License v3.0
864 stars 98 forks source link

ImportError: DLL load failed while importing _imaging: The specified module could not be found. #319

Closed ChooChoo38 closed 2 weeks ago

ChooChoo38 commented 3 weeks ago

I'm having a number of issues installing AllTalk v2 Standalone. I've followed all the instructions and I've installed the Windows & Python requirements for compiling packages.

This is the installation log from atsetup.bat: install_log.txt. The only obvious error I can see is when installing nvidia-cudnn-cu116.

Once atsetup.bat has finished installing all the requirements, I get this message when trying to run start_alltalk.bat.

Screenshot 2024-08-24 133519

start_diagnostics.bat also has an issue on my computer given one of my hard drives belongs to the company I work for and is usually encrypted, so it gives me this error:

Screenshot 2024-08-24 133731

I have to edit diagnostics.py and remove the lines that check each drive for space, then it works. This is the output: diagnostics.log. To add to that, I have plenty of free space on every drive.

Going back to the error I get when I try to run start_alltalk.bat, I found this discussion. Following that advice gets me the following:

Screenshot 2024-08-24 134908

It would seem a number of the requirements weren't installed correctly for whatever reason. At this point, I started atsetup.bat again, chose standalone and did Re-Apply/Update the requirement file, but the end result was the same, claiming I was missing various modules. I ran atsetup, deleted AllTalk's custom Python environment, tried to install again, same issues.

My next step was to run atsetup.bat, install, manually install pillow, then I tried to manually pip install the contents of requirements_standalone.txt. This worked. I could run AllTalk with no issues after that, and all the models work correctly.

Screenshot 2024-08-24 144632

So even though I solved the issue, I'm still posting this as I have no idea what went wrong, and this also might help anyone encountering the same issue.

Also, the last problem I'm having that I have yet to solve is that start_finetune.bat does not work. I get the following error:

Screenshot 2024-08-24 135944

I even tried following the Legacy manual instructions for installing Nvidia CUDA Development Toolkit 11.8, including adding the correct PATHs and such.

erew123 commented 2 weeks ago

Hi @ChooChoo38

Ive seen this a few times and Im not sure if its internet related somehow, but sometimes when Python's installer (PIP) loses connection to the downloads, it doesnt always pull the files down and just skips installation of bits, though saying that, there have also been many changes to PIP which is impacting other packages requirements, leaving a situation where its a constant gave of keep-up trying to make the requirements files work.

You can re-apply the requirements on option 3 of atsetup, which will just skip through anything thats already installed.

image

The trainer analytics can be installed with pip install trainer.

Ive updated the diagnostics to work around locked/encrypted drives.

Id suggest performing a git pull and re-apply the requirements.

Thanks