mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-10-16 02:21:52 +00:00
[GH-ISSUE #178] Attempting to do TTS with Coqui and Tortoise results in "missing keys in state dict" #103
Labels
No labels
bug
duplicate
planned
pull-request
under consideration
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/SillyTavern-Extras#103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @InconsolableCellist on GitHub (Oct 24, 2023).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Extras/issues/178
I'm trying to generate voices with TTS using Tortoise and it's resulting in an error.
Steps to reproduce:
Click "Add Voice" and name it "new"
Select "new" as the Default Voice
Go back to a story and click the megaphone icon to narrate the text
Observed Behavior:
No audio is output. The console output is:
Expected behavior:
Tortoise TTS works and generates a voice
Environment & More Information:
My launch options:
python3 server.py --enable-modules=caption,summarize,classify,sd,coqui-tts,rvc --listen --sd-remote --sd-remote-host xx.xx.xx.xx --classification-model joeddav/distilbert-base-uncased-go-emotions-student --coqui-gpuOn branch
main, commit2830a5ffrequirements-complete.txtlists the TTS dependency version as0.15.6, which I have:My transformers version:
The requirements file specifies that version.
Attempted fix
I found this issue on the tortoise-tts project that says to downgrade (upgrade in our case) to
4.29.2. I tried that and it didn't work, unfortunately.I'm really surprised that solution above didn't work, so I tried twice. I'm not sure what else could be going on. I'm using
micromambaand installed transformers and SillyTavern-extras in the same environment, and it doesn't look likeserver.pyis attempting to change to some other venv.@Ph0rk0z commented on GitHub (Oct 28, 2023):
With a newer version, even my custom tortoise model worked no problem. The coqui in requirements is relatively old.
Just upgrade coqui. They also released XTTS which is much faster tortoise with clone but this repo doesn't provide the required wav file. Using it from the command line the inference was much much faster.
@Cohee1207 commented on GitHub (Oct 28, 2023):
I'd like to update the coqui TTS version, however the newer version of coqui conflicts with chromadb package. It's possible to just upgrade it separately by editing out chroma from requirements file.
@Ph0rk0z commented on GitHub (Oct 29, 2023):
I haven't tried to use chromadb since you've implemented the transformers version of the same thing. Does chromadb crash when you install it first and install new COQUI over it? Things complain of conflicts and still run 90% of the time.
@Cohee1207 commented on GitHub (Oct 29, 2023):
The problem comes not from torch or transformers, but from tqdm this time. Coqui has it locked on 4.64.*, chroma requires 4.65 and above.
@Ph0rk0z commented on GitHub (Oct 29, 2023):
Does either one not work with the "wrong" TQDM? I distinctly remember running newer coqui than in the req and using chromadb. I'll give it another go as I have it now and see what happens.
edit: I tested it and chromadb loaded normally for me, but I had it previously installed.