coqui-ai / TTS

🐸💬 - a deep learning toolkit for Text-to-Speech, battle-tested in research and production
http://coqui.ai
Mozilla Public License 2.0
35.08k stars 4.28k forks source link

[Bug] Tortoise tts doesn't work with Docker image on a cpu #2716

Closed springcoil closed 1 year ago

springcoil commented 1 year ago

Describe the bug

root@e901f80c5317:~# python3 TTS/server/server.py --model_name tts_models/en/multi-dataset/tortoise-v2

Downloading model to /root/.local/share/tts/tts_models--en--multi-dataset--tortoise-v2 Model's license - apache 2.0 Check https://choosealicense.com/licenses/apache-2.0/ for more info. Traceback (most recent call last): File "/root/TTS/server/server.py", line 104, in synthesizer = Synthesizer( File "/root/TTS/utils/synthesizer.py", line 91, in init self._load_tts(tts_checkpoint, tts_config_path, use_cuda) File "/root/TTS/utils/synthesizer.py", line 181, in _load_tts self.tts_config = load_config(tts_config_path) File "/root/TTS/config/init.py", line 79, in load_config ext = os.path.splitext(config_path)[1] File "/usr/local/lib/python3.10/posixpath.py", line 118, in splitext p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType

Is what I get.

To Reproduce

docker run --rm -it -p 5002:5002 --entrypoint /bin/bash ghcr.io/coqui-ai/tts-cpu python3 TTS/server/server.py --list_models #To get the list of available models python3 TTS/server/server.py --model_name tts_models/en/multi-dataset/tortoise-v2

Expected behavior

I expected the moodel to run

But might be better to run this on sagemaker

Logs

No response

Environment

Latest TTS version

Additional context

No response

erogol commented 1 year ago

Server doesn't support Tortoise. Also running Tortoise on cpu would take ages. FYI