gokayfem / ComfyUI_VLM_nodes

Custom ComfyUI nodes for Vision Language Models, Large Language Models, Image to Music, Text to Music, Consistent and Random Creative Prompt Generation
Apache License 2.0
382 stars 31 forks source link

No module named 'transformers.models.fastspeech2_conformer.configuration_fastspeech2_conformer' #48

Closed KumaPlayWithShader closed 6 months ago

KumaPlayWithShader commented 6 months ago

Error occurred when executing UformGen2QwenNode:

Failed to import transformers.models.fastspeech2_conformer.configuration_fastspeech2_conformer because of the following error (look up to see its traceback): No module named 'transformers.models.fastspeech2_conformer.configuration_fastspeech2_conformer'

gokayfem commented 6 months ago

update transformers library if you want to use this i think

click install pip packages inside ComfyUI Manager

write transformers>=4.38.2

then restart ComfyUI

image

KumaPlayWithShader commented 6 months ago

I try , but everytime at restart, there is other custom node keep uninstall transformer4.38.2 , and install transformer4.36.2 again.

Missing or outdated packages: transformers==4.36.2 Installing/Updating missing packages... Collecting transformers==4.36.2 Using cached transformers-4.36.2-py3-none-any.whl.metadata (126 kB) Requirement already satisfied: filelock in d:\comfyui_portable\python_embeded\lib\site-packages (from transformers==4.36.2) (3.13.1) Requirement already satisfied: huggingface-hub<1.0,>=0.19.3 in d:\comfyui_portable\python_embeded\lib\site-packages (from transformers==4.36.2) (0.20.3) Requirement already satisfied: numpy>=1.17 in d:\comfyui_portable\python_embeded\lib\site-packages (from transformers==4.36.2) (1.26.4) Requirement already satisfied: packaging>=20.0 in d:\comfyui_portable\python_embeded\lib\site-packages (from transformers==4.36.2) (23.2) Requirement already satisfied: pyyaml>=5.1 in d:\comfyui_portable\python_embeded\lib\site-packages (from transformers==4.36.2) (6.0.1) Requirement already satisfied: regex!=2019.12.17 in d:\comfyui_portable\python_embeded\lib\site-packages (from transformers==4.36.2) (2023.12.25) Requirement already satisfied: requests in d:\comfyui_portable\python_embeded\lib\site-packages (from transformers==4.36.2) (2.31.0) Requirement already satisfied: tokenizers<0.19,>=0.14 in d:\comfyui_portable\python_embeded\lib\site-packages (from transformers==4.36.2) (0.15.1) Requirement already satisfied: safetensors>=0.3.1 in d:\comfyui_portable\python_embeded\lib\site-packages (from transformers==4.36.2) (0.4.2) Requirement already satisfied: tqdm>=4.27 in d:\comfyui_portable\python_embeded\lib\site-packages (from transformers==4.36.2) (4.66.2) Requirement already satisfied: fsspec>=2023.5.0 in d:\comfyui_portable\python_embeded\lib\site-packages (from huggingface-hub<1.0,>=0.19.3->transformers==4.36.2) (2024.2.0) Requirement already satisfied: typing-extensions>=3.7.4.3 in d:\comfyui_portable\python_embeded\lib\site-packages (from huggingface-hub<1.0,>=0.19.3->transformers==4.36.2) (4.9.0) Requirement already satisfied: colorama in d:\comfyui_portable\python_embeded\lib\site-packages (from tqdm>=4.27->transformers==4.36.2) (0.4.6) Requirement already satisfied: charset-normalizer<4,>=2 in d:\comfyui_portable\python_embeded\lib\site-packages (from requests->transformers==4.36.2) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in d:\comfyui_portable\python_embeded\lib\site-packages (from requests->transformers==4.36.2) (3.6) Requirement already satisfied: urllib3<3,>=1.21.1 in d:\comfyui_portable\python_embeded\lib\site-packages (from requests->transformers==4.36.2) (2.2.0) Requirement already satisfied: certifi>=2017.4.17 in d:\comfyui_portable\python_embeded\lib\site-packages (from requests->transformers==4.36.2) (2024.2.2) Using cached transformers-4.36.2-py3-none-any.whl (8.2 MB) Installing collected packages: transformers Attempting uninstall: transformers Found existing installation: transformers 4.38.2 Uninstalling transformers-4.38.2: Successfully uninstalled transformers-4.38.2

KumaPlayWithShader commented 6 months ago

Error occurred when executing Kosmos2model:

Failed to import transformers.models.vipllava.configuration_vipllava because of the following error (look up to see its traceback): No module named 'transformers.models.vipllava.configuration_vipllava'

gokayfem commented 6 months ago

i have updated repo, you need to update the node from the manager

formulake commented 6 months ago

I just realised the conflict was in the requirements.txt where the older version of transformers was specified, so it was overwriting itself.

KumaPlayWithShader commented 6 months ago

Those LLM models work well with transformer now, thank, So Great,

(But chat musican seems has different problem.)