SillyTavern / SillyTavern-Launcher

Launcher scripts for SillyTavern and ST-Extras.
MIT License
219 stars 58 forks source link

No module named "TTS" Error at starting Extras via SillyTavern-Launcher #15

Closed H1ghSyst3m closed 1 year ago

H1ghSyst3m commented 1 year ago

I use Windows 11, I installed SillyTavern and the extras via the Launcher. I didn't install (I chose "N") coqui as it asked me if I want or not.

When I start SillyTavern with extras, then I get an error in the Extras Shell:

Using torch device: cpu
Initializing talkinghead pipeline in cpu mode....
Using the separable_float model.
Initializing an image captioning model...
Loading the eyebrow decomposer ... DONE!!!
Loading the eyebrow morphing conbiner ... DONE!!!
Loading the face morpher ... DONE!!!
Loading the face-body rotator ... DONE!!!
Loading the combiner ... DONE!!!
Initializing a text summarization model...
Initializing ChromaDB
ChromaDB is running in-memory with persistence. Persistence is stored in .chroma_db. Can be cleared by deleting the folder or purging db.
Successfully pinged ChromaDB! Your client is successfully connected.
Setting MAX_CONTENT_LENGTH to 1000 Mb
Initializing RVC voice conversion (from ST request file)
Increasing server upload limit
RVC saving file option detected, input/output audio will be savec into data/tmp/ folder
2023-11-26 02:12:31 | INFO | fairseq.tasks.text_to_speech | Please install tensorboardX: pip install tensorboardX
2023-11-26 02:12:31 | INFO | faiss.loader | Loading faiss with AVX2 support.
2023-11-26 02:12:31 | INFO | faiss.loader | Could not load library with AVX2 support due to:
ModuleNotFoundError("No module named 'faiss.swigfaiss_avx2'")
2023-11-26 02:12:31 | INFO | faiss.loader | Loading faiss.
2023-11-26 02:12:31 | INFO | faiss.loader | Successfully loaded faiss.
<RVC module> Checking RVC models folder: data/models/rvc/
> Searching for pth files
> Searching for index files
<RVC module> RVC model folder checked.
Initializing Coqui TTS client in GPU mode
Traceback (most recent call last):
  File "C:\AITools\SillyTavern-Launcher\SillyTavern-extras\server.py", line 399, in <module>
    import modules.text_to_speech.coqui.coqui_module as coqui_module
  File "C:\AITools\SillyTavern-Launcher\SillyTavern-extras\modules\text_to_speech\coqui\coqui_module.py", line 22, in <module>
    from TTS.api import TTS
ModuleNotFoundError: No module named 'TTS'
H1ghSyst3m commented 1 year ago

I fixed the Problem as I deleted the module in the Launcher.bat. It was really good hidden. I think it's still a bug, because at the installation it asks if you want to use coqui or not and even though you selected "no" it still tried to start with coqui, because the parameter was still in the Launcher.bat.

A second file for extras start parameter would also help. Then it is easily editable.

Cohee1207 commented 1 year ago

Coqui is gone from the launcher.