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

Import Fail - Prompt Enhancer Loader node #130

Open
bigmanong opened this issue Mar 8, 2025 · 0 comments
Open

Import Fail - Prompt Enhancer Loader node #130

bigmanong opened this issue Mar 8, 2025 · 0 comments

Comments

@bigmanong
Copy link

I am getting import errors when using the prompt enhancer loader node. It says I don't have the correct packages installed and tells me to pip install timm. I have done that several times now and also did a full uninstall and reinstall of timm and verified that it installed correctly. I checked the venv environment and it is all in there, but I still get that error. Here is the traceback:

ComfyUI Error Report

Error Details

  • Node ID: 86
  • Node Type: LTXVPromptEnhancerLoader
  • Exception Type: ImportError
  • Exception Message: This modeling file requires the following packages that were not found in your environment: timm. Run pip install timm

Stack Trace

  File "C:\Users\dfree\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\execution.py", line 327, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\dfree\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\execution.py", line 202, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\dfree\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)

  File "C:\Users\dfree\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "E:\comfyui\custom_nodes\ComfyUI-LTXVideo\prompt_enhancer_nodes.py", line 144, in load
    image_caption_model, image_caption_processor = self.down_load_image_captioner(
                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "E:\comfyui\custom_nodes\ComfyUI-LTXVideo\prompt_enhancer_nodes.py", line 130, in down_load_image_captioner
    image_caption_model = AutoModelForCausalLM.from_pretrained(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "E:\comfyui\.venv\Lib\site-packages\transformers\models\auto\auto_factory.py", line 553, in from_pretrained
    model_class = get_class_from_dynamic_module(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "E:\comfyui\.venv\Lib\site-packages\transformers\dynamic_module_utils.py", line 541, in get_class_from_dynamic_module
    final_module = get_cached_module_file(
                   ^^^^^^^^^^^^^^^^^^^^^^^

  File "E:\comfyui\.venv\Lib\site-packages\transformers\dynamic_module_utils.py", line 366, in get_cached_module_file
    modules_needed = check_imports(resolved_module_file)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "E:\comfyui\.venv\Lib\site-packages\transformers\dynamic_module_utils.py", line 198, in check_imports
    raise ImportError(
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

1 participant