smthemex / ComfyUI_ParlerTTS

This is a simple ComfyUI custom TTS node based on Parler_tts.
Apache License 2.0
32 stars 3 forks source link

Import failed when starting #8

Closed liberteus closed 2 months ago

liberteus commented 2 months ago

On windows, with ComfyUI updated, went through all command lines from the installation instructions, yet I still get the following:

Warning: Missing Node Types When loading the graph, the following node types were not found:

ParlerTTS_LoadModel ParlerTTS_Sampler No selected item Nodes that have failed to load will show as red on the graph.

ComfyUI Manager tells me "Import failed" above the ComfyUI_ParlerTTS node.

smthemex commented 2 months ago

New update need transformers>=4.43.0, you can :pip show transformers, to find you transformers version.

liberteus commented 2 months ago

This is what I get:

C:\Users***\Documents\AI\ComfyUI_windows_portable\python_embeded>python -m pip show transformers Name: transformers Version: 4.44.0 Summary: State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow Home-page: https://github.com/huggingface/transformers Author: The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/transformers/graphs/contributors) Author-email: transformers@huggingface.co License: Apache 2.0 License Location: C:\Users***\Documents\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages Requires: filelock, huggingface-hub, numpy, packaging, pyyaml, regex, requests, safetensors, tokenizers, tqdm

smthemex commented 2 months ago

Can you provide detailed information about the import failure?

liberteus commented 2 months ago

Here's the result when I start ComfyUI with the json already loaded in the UI:

C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\node_wrappers\dwpose.py:26: UserWarning: DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly warnings.warn("DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly") [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.jsonTraceback (most recent call last): File "C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1998, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_ParlerTTS__init.py", line 5, in from .parler_tts_node import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_ParlerTTS\parler_tts_node.py", line 7, in from .parler_tts import ParlerTTSForConditionalGeneration File "C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_ParlerTTS\parler_tts__init__.py", line 7, in from .dac_wrapper import DACConfig, DACModel File "C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_ParlerTTS\parler_tts\dac_wrapper\init.py", line 2, in from .modeling_dac import DACModel File "C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_ParlerTTS\parler_tts\dac_wrapper\modeling_dac.py", line 2, in from ...dac.model import DAC File "C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_ParlerTTS\dac\init__.py", line 6, in import audiotools ModuleNotFoundError: No module named 'audiotools'

Cannot import C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_ParlerTTS module for custom nodes: No module named 'audiotools'

smthemex commented 2 months ago

pip install git+https://github.com/descriptinc/audiotools or git clone https://github.com/descriptinc/audiotools cd audiotools pip install .

liberteus commented 2 months ago

pip install git+https://github.com/descriptinc/audiotools or git clone https://github.com/descriptinc/audiotools cd audiotools pip install .

Which folder should I install audiotools? C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages ? C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes ?

Thanks a lot for your help by the way. Sure it will help other in the future.

smthemex commented 2 months ago

if using ComfyUI_windows_portable, under" C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\python_embeded" dir ,open CMD,fill in : python.exe -m pip install git+https://github.com/descriptinc/audiotools

liberteus commented 2 months ago

Thanks, I had tried that actually and I got an error nonetheless. I think I'm going to close the ticket as it is not related to your tool but rather to audiotools and my own comfyUI install etc. Let me know if you think this is the correct way to go, and I'll close the issue.

Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\python_embeded\AppData\Local\Temp\pip-install-f63zojjn\matplotlib_71d08f0ad3a248278ce95ea01b03eddf\setup.py", line 38, in import setupext ModuleNotFoundError: No module named 'setupext' [end of output]

Full log:

C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\python_embeded>python -m pip install git+https://github.com/descriptinc/audiotools Collecting git+https://github.com/descriptinc/audiotools Cloning https://github.com/descriptinc/audiotools to c:\users\GitUser\appdata\local\temp\pip-req-build-dnurwvgn Running command git clone --filter=blob:none --quiet https://github.com/descriptinc/audiotools 'C:\Users\GitUser\AppData\Local\Temp\pip-req-build-dnurwvgn' Resolved https://github.com/descriptinc/audiotools to commit 7776c296c711db90176a63ff808c26e0ee087263 Preparing metadata (setup.py) ... done Collecting argbind (from descript-audiotools==0.7.3) Downloading argbind-0.3.9.tar.gz (17 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: numpy in c:\users\GitUser\documents\ai\comfyui_windows_portable\python_embeded\lib\site-packages (from descript-audiotools==0.7.3) (1.26.4) Requirement already satisfied: soundfile in c:\users\GitUser\documents\ai\comfyui_windows_portable\python_embeded\lib\site-packages (from descript-audiotools==0.7.3) (0.12.1) Collecting pyloudnorm (from descript-audiotools==0.7.3) Downloading pyloudnorm-0.1.1-py3-none-any.whl.metadata (5.6 kB) Collecting importlib-resources (from descript-audiotools==0.7.3) Downloading importlib_resources-6.4.5-py3-none-any.whl.metadata (4.0 kB) Requirement already satisfied: scipy in c:\users\GitUser\documents\ai\comfyui_windows_portable\python_embeded\lib\site-packages (from descript-audiotools==0.7.3) (1.14.1) Requirement already satisfied: torch in c:\users\GitUser\documents\ai\comfyui_windows_portable\python_embeded\lib\site-packages (from descript-audiotools==0.7.3) (2.4.1+cu121) Collecting julius (from descript-audiotools==0.7.3) Downloading julius-0.2.7.tar.gz (59 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: torchaudio in c:\users\GitUser\documents\ai\comfyui_windows_portable\python_embeded\lib\site-packages (from descript-audiotools==0.7.3) (2.4.1+cu121) Requirement already satisfied: ffmpy in c:\users\GitUser\documents\ai\comfyui_windows_portable\python_embeded\lib\site-packages (from descript-audiotools==0.7.3) (0.3.0) Collecting ipython (from descript-audiotools==0.7.3) Downloading ipython-8.27.0-py3-none-any.whl.metadata (5.0 kB) Requirement already satisfied: rich in c:\users\GitUser\documents\ai\comfyui_windows_portable\python_embeded\lib\site-packages (from descript-audiotools==0.7.3) (13.8.1) Collecting matplotlib==3.5 (from descript-audiotools==0.7.3) Downloading matplotlib-3.5.0.tar.gz (35.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 35.0/35.0 MB 11.7 MB/s eta 0:00:00 Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\GitUser\Documents\AI\ComfyUI_windows_portable\python_embeded\AppData\Local\Temp\pip-install-f63zojjn\matplotlib_71d08f0ad3a248278ce95ea01b03eddf\setup.py", line 38, in import setupext ModuleNotFoundError: No module named 'setupext' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

smthemex commented 2 months ago

Try: python -m pip install descript-audio-codec

liberteus commented 2 months ago

Node works, now downloading the mini model, on my way to test it :)