Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeepFuze TTS Not Generating Audio #35

Closed
mmcc1 opened this issue Jul 21, 2024 · 3 comments
Closed

DeepFuze TTS Not Generating Audio #35

mmcc1 opened this issue Jul 21, 2024 · 3 comments

Comments

@mmcc1
Copy link

mmcc1 commented Jul 21, 2024

DeepFuze TTS is not generating a cloned voice. Instead, it is copying the input mp3.

The log window has the following error:

Traceback (most recent call last):
File "C:\ComfyUI-master\custom_nodes\ComfyUI-DeepFuze\tts_generation.py", line 10, in
from TTS.api import TTS
File "C:\ComfyUI-master\custom_nodes\ComfyUI-DeepFuze\TTS\api.py", line 10, in
from TTS.utils.manage import ModelManager
File "C:\ComfyUI-master\custom_nodes\ComfyUI-DeepFuze\TTS\utils\manage.py", line 14, in
from TTS.config import load_config, read_json_with_comments
File "C:\ComfyUI-master\custom_nodes\ComfyUI-DeepFuze\TTS\config_init_.py", line 10, in
from TTS.config.shared_configs import *
File "C:\ComfyUI-master\custom_nodes\ComfyUI-DeepFuze\TTS\config\shared_configs.py", line 5, in
from trainer import TrainerConfig
ModuleNotFoundError: No module named 'trainer'

trainer>=0.0.36, is missing. Install generates the following error in Python 3.12.3.

ERROR: Ignored the following versions that require a different python version: 0.0.10 Requires-Python >=3.6.0, <3.10; 0.0.11 Requires-Python >=3.6.0, <3.11; 0.0.12 Requires-Python >=3.6.0, <3.11; 0.0.13 Requires-Python >=3.6.0, <3.11; 0.0.14 Requires-Python >=3.6.0, <3.11; 0.0.15 Requires-Python >=3.6.0, <3.11; 0.0.16 Requires-Python >=3.6.0, <3.11; 0.0.17 Requires-Python >=3.6.0, <3.11; 0.0.18 Requires-Python >=3.6.0, <3.11; 0.0.19 Requires-Python >=3.6.0, <3.11; 0.0.20 Requires-Python >=3.6.0, <3.11; 0.0.21 Requires-Python >=3.6.0, <3.11; 0.0.22 Requires-Python >=3.6.0, <3.11; 0.0.23 Requires-Python >=3.6.0, <3.11; 0.0.24 Requires-Python >=3.6.0, <3.11; 0.0.25 Requires-Python >=3.6.0, <3.11; 0.0.26 Requires-Python >=3.6.0, <3.11; 0.0.27 Requires-Python >=3.6.0, <3.12; 0.0.28 Requires-Python >=3.6.0, <3.12; 0.0.29 Requires-Python >=3.6.0, <3.12; 0.0.30 Requires-Python >=3.6.0, <3.12; 0.0.31 Requires-Python >=3.6.0, <3.12; 0.0.32 Requires-Python >=3.6.0, <3.12; 0.0.33 Requires-Python >=3.6.0, <3.12; 0.0.34 Requires-Python >=3.6.0, <3.12; 0.0.35 Requires-Python >=3.6.0, <3.12; 0.0.36 Requires-Python >=3.6.0, <3.12; 0.0.5 Requires-Python >=3.6.0, <3.10; 0.0.6 Requires-Python >=3.6.0, <3.10; 0.0.7 Requires-Python >=3.6.0, <3.10; 0.0.8 Requires-Python >=3.6.0, <3.10; 0.0.9 Requires-Python >=3.6.0, <3.10
ERROR: Could not find a version that satisfies the requirement trainer (from versions: none)
ERROR: No matching distribution found for trainer

There is a suggestion here to use a replacement:
coqui-ai/Trainer#146

Opened a bug report to request a new build of trainer
coqui-ai/Trainer#147

@mmcc1
Copy link
Author

mmcc1 commented Jul 21, 2024

I added the fork of trainer:

pip install coqui-tts-trainer

This seems to have fixed the dependency error, but I'm now getting an error about a missing config.json file.

Traceback (most recent call last):
File "C:\ComfyUI-master\custom_nodes\ComfyUI-DeepFuze\tts_generation.py", line 36, in
main()
File "C:\ComfyUI-master\custom_nodes\ComfyUI-DeepFuze\tts_generation.py", line 30, in main
tts = TTS(model_path=args.model,config_path=os.path.join(args.model,"config.json")).to(device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI-master\custom_nodes\ComfyUI-DeepFuze\TTS\api.py", line 65, in init
self.config = load_config(config_path) if config_path else None
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI-master\custom_nodes\ComfyUI-DeepFuze\TTS\config_init_.py", line 88, in load_config
with fsspec.open(config_path, "r", encoding="utf-8") as f:
File "C:\Python\Python312\Lib\site-packages\fsspec\core.py", line 105, in enter
f = self.fs.open(self.path, mode=mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\Python312\Lib\site-packages\fsspec\spec.py", line 1303, in open
f = self._open(
^^^^^^^^^^^
File "C:\Python\Python312\Lib\site-packages\fsspec\implementations\local.py", line 191, in _open
return LocalFileOpener(path, mode, fs=self, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\Python312\Lib\site-packages\fsspec\implementations\local.py", line 355, in init
self._open()
File "C:\Python\Python312\Lib\site-packages\fsspec\implementations\local.py", line 360, in _open
self.f = open(self.path, mode=self.mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:/ComfyUI-master/models/deepfuze/config.json'

The calling line is here:

tts = TTS(model_path=args.model,config_path=os.path.join(args.model,"config.json")).to(device)

@SamKhoze
Copy link
Owner

@mmcc1 Did you download models?

@mmcc1
Copy link
Author

mmcc1 commented Jul 22, 2024

@mmcc1 Did you download models?

That was it. I thought that section of the ReadMe was for the Mac, so I skipped over it. Seems to be working now.

@mmcc1 mmcc1 closed this as completed Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants