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

I installed everything but it still gives an error! #118

Open
StanislavShashkov opened this issue Jan 17, 2025 · 2 comments
Open

I installed everything but it still gives an error! #118

StanislavShashkov opened this issue Jan 17, 2025 · 2 comments

Comments

@StanislavShashkov
Copy link

I installed everything according to the instructions, but it still gives an error, and even after I manually specified the model and added it to the folder, it still gives an error.

ComfyUI Error Report

Error Details

  • Node ID: 219
  • Node Type: Florence2ModelLoader
  • Exception Type: ValueError
  • Exception Message: mutable default <class 'timm.models.maxxvit.MaxxVitConvCfg'> for field conv_cfg is not allowed: use default_factory

Stack Trace

  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\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 "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\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 "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)

  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-florence2\nodes.py", line 177, in loadmodel
    model = AutoModelForCausalLM.from_pretrained(model_path, attn_implementation=attention, device_map=device, torch_dtype=dtype,trust_remote_code=True)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\models\auto\auto_factory.py", line 553, in from_pretrained
    model_class = get_class_from_dynamic_module(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\dynamic_module_utils.py", line 541, in get_class_from_dynamic_module
    final_module = get_cached_module_file(
                   ^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\dynamic_module_utils.py", line 366, in get_cached_module_file
    modules_needed = check_imports(resolved_module_file)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\dynamic_module_utils.py", line 186, in check_imports
    importlib.import_module(imp)

  File "importlib\__init__.py", line 90, in import_module

  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import

  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load

  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked

  File "<frozen importlib._bootstrap_external>", line 995, in exec_module

  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed

  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\timm\__init__.py", line 2, in <module>
    from .models import create_model, list_models, is_model, list_modules, model_entrypoint, \

  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\timm\models\__init__.py", line 28, in <module>
    from .maxxvit import *

  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\timm\models\maxxvit.py", line 225, in <module>
    @dataclass
     ^^^^^^^^^

  File "dataclasses.py", line 1275, in dataclass

  File "dataclasses.py", line 1265, in wrap

  File "dataclasses.py", line 994, in _process_class

  File "dataclasses.py", line 852, in _get_field

System Information

  • ComfyUI Version: 0.3.10
  • Arguments: ComfyUI\main.py --windows-standalone-build
  • OS: nt
  • Python Version: 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]
  • Embedded Python: true
  • PyTorch Version: 2.5.1+cu124

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 8589279232
    • VRAM Free: 5825046520
    • Torch VRAM Total: 1644167168
    • Torch VRAM Free: 7546872

Logs

2025-01-17T13:29:58.407240 - [START] Security scan2025-01-17T13:29:58.407240 - 
2025-01-17T13:29:59.577264 - [DONE] Security scan2025-01-17T13:29:59.577264 - 
2025-01-17T13:29:59.700684 - ## ComfyUI-Manager: installing dependencies done.2025-01-17T13:29:59.700684 - 
2025-01-17T13:29:59.700684 - ** ComfyUI startup time:2025-01-17T13:29:59.700684 -  2025-01-17T13:29:59.700684 - 2025-01-17 13:29:59.7002025-01-17T13:29:59.700684 - 
2025-01-17T13:29:59.700684 - ** Platform:2025-01-17T13:29:59.700684 -  2025-01-17T13:29:59.700684 - Windows2025-01-17T13:29:59.701684 - 
2025-01-17T13:29:59.701684 - ** Python version:2025-01-17T13:29:59.701684 -  2025-01-17T13:29:59.701684 - 3.12.7 (tags/v3.12.7:0b05ead, Oct  1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]2025-01-17T13:29:59.701684 - 
2025-01-17T13:29:59.701684 - ** Python executable:2025-01-17T13:29:59.701684 -  2025-01-17T13:29:59.701684 - D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\python.exe2025-01-17T13:29:59.701684 - 
2025-01-17T13:29:59.701684 - ** ComfyUI Path:2025-01-17T13:29:59.701684 -  2025-01-17T13:29:59.701684 - D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI2025-01-17T13:29:59.701684 - 
2025-01-17T13:29:59.701684 - ** User directory:2025-01-17T13:29:59.701684 -  2025-01-17T13:29:59.702684 - D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\user2025-01-17T13:29:59.702684 - 
2025-01-17T13:29:59.702684 - ** ComfyUI-Manager config path:2025-01-17T13:29:59.702684 -  2025-01-17T13:29:59.702684 - D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\user\default\ComfyUI-Manager\config.ini2025-01-17T13:29:59.702684 - 
2025-01-17T13:29:59.702684 - ** Log path:2025-01-17T13:29:59.702684 -  2025-01-17T13:29:59.702684 - D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\user\comfyui.log2025-01-17T13:29:59.702684 - 
2025-01-17T13:30:01.163054 - 
Prestartup times for custom nodes:
2025-01-17T13:30:01.163054 -    0.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
2025-01-17T13:30:01.163054 -    0.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-easy-use
2025-01-17T13:30:01.163054 -    3.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager
2025-01-17T13:30:01.163054 - 
2025-01-17T13:30:03.190454 - Total VRAM 8191 MB, total RAM 32671 MB
2025-01-17T13:30:03.190454 - pytorch version: 2.5.1+cu124
2025-01-17T13:30:03.191454 - Set vram state to: NORMAL_VRAM
2025-01-17T13:30:03.191454 - Device: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync
2025-01-17T13:30:04.478133 - Using pytorch attention
2025-01-17T13:30:05.955334 - [Prompt Server] web root: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\web
2025-01-17T13:30:07.799943 - �[34m[ComfyUI-Easy-Use] server: �[0mv1.2.6 �[92mLoaded�[0m2025-01-17T13:30:07.800944 - 
2025-01-17T13:30:07.800944 - �[34m[ComfyUI-Easy-Use] web root: �[0mD:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-easy-use\web_version/v2 �[92mLoaded�[0m2025-01-17T13:30:07.800944 - 
2025-01-17T13:30:08.110309 - ### Loading: ComfyUI-Impact-Pack (V8.3)2025-01-17T13:30:08.110309 - 
2025-01-17T13:30:08.168619 - [Impact Pack] Wildcards loading done.2025-01-17T13:30:08.168619 - 
2025-01-17T13:30:08.172610 - ### Loading: ComfyUI-Impact-Subpack (V1.2.6)
2025-01-17T13:30:08.281360 - [Impact Subpack] ultralytics_bbox: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\models\ultralytics\bbox
2025-01-17T13:30:08.281360 - [Impact Subpack] ultralytics_segm: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\models\ultralytics\segm
2025-01-17T13:30:08.282361 - ### Loading: ComfyUI-Inspire-Pack (V1.10)2025-01-17T13:30:08.283361 - 
2025-01-17T13:30:08.346882 - ### Loading: ComfyUI-Manager (V3.6.5)
2025-01-17T13:30:08.506632 - ### ComfyUI Version: v0.3.10-56-g5b657f8c | Released on '2025-01-15'
2025-01-17T13:30:08.792525 - D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable2025-01-17T13:30:08.792525 - 
2025-01-17T13:30:08.792525 - ############################################2025-01-17T13:30:08.793526 - 
2025-01-17T13:30:08.793526 - D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\custom_nodes\ComfyUI-NAI-styler\CSV2025-01-17T13:30:08.793526 - 
2025-01-17T13:30:08.793526 - ############################################2025-01-17T13:30:08.794526 - 
2025-01-17T13:30:08.794526 - []2025-01-17T13:30:08.794526 - 
2025-01-17T13:30:08.794526 - ############################################2025-01-17T13:30:08.795526 - 
2025-01-17T13:30:08.824392 - ------------------------------------------2025-01-17T13:30:08.824392 - 
2025-01-17T13:30:08.824392 - �[34mComfyroll Studio v1.76 : �[92m 175 Nodes Loaded�[0m2025-01-17T13:30:08.824392 - 
2025-01-17T13:30:08.824392 - ------------------------------------------2025-01-17T13:30:08.825392 - 
2025-01-17T13:30:08.825392 - ** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md2025-01-17T13:30:08.825392 - 
2025-01-17T13:30:08.825392 - ** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki2025-01-17T13:30:08.825392 - 
2025-01-17T13:30:08.826393 - ------------------------------------------2025-01-17T13:30:08.826393 - 
2025-01-17T13:30:08.833396 - �[36;20m[comfyui_controlnet_aux] | INFO -> Using ckpts path: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts�[0m
2025-01-17T13:30:08.833396 - �[36;20m[comfyui_controlnet_aux] | INFO -> Using symlinks: False�[0m
2025-01-17T13:30:08.833396 - �[36;20m[comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider']�[0m
2025-01-17T13:30:08.854347 - DWPose: Onnxruntime with acceleration providers detected2025-01-17T13:30:08.854347 - 
2025-01-17T13:30:08.866116 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
2025-01-17T13:30:08.903953 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
2025-01-17T13:30:08.913918 - 
�[32mInitializing ControlAltAI Nodes�[0m2025-01-17T13:30:08.913918 - 
2025-01-17T13:30:08.942486 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
2025-01-17T13:30:08.951323 - 
2025-01-17T13:30:08.951323 - �[92m[rgthree-comfy] Loaded 42 epic nodes. 🎉�[00m2025-01-17T13:30:08.951323 - 
2025-01-17T13:30:08.952323 - 
2025-01-17T13:30:08.953324 - 
Import times for custom nodes:
2025-01-17T13:30:08.953324 -    0.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
2025-01-17T13:30:08.953324 -    0.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Universal-Styler
2025-01-17T13:30:08.954324 -    0.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-florence2
2025-01-17T13:30:08.954324 -    0.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-StableProjectorzBridge-master
2025-01-17T13:30:08.954324 -    0.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-custom-scripts
2025-01-17T13:30:08.955324 -    0.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_essentials
2025-01-17T13:30:08.955324 -    0.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_ultimatesdupscale
2025-01-17T13:30:08.955324 -    0.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\controlaltai-nodes
2025-01-17T13:30:08.956325 -    0.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_ipadapter_plus
2025-01-17T13:30:08.956325 -    0.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-advanced-controlnet
2025-01-17T13:30:08.957325 -    0.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
2025-01-17T13:30:08.957325 -    0.0 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
2025-01-17T13:30:08.957325 -    0.1 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux
2025-01-17T13:30:08.958325 -    0.1 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-inspire-pack
2025-01-17T13:30:08.958325 -    0.1 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
2025-01-17T13:30:08.958325 -    0.1 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-impact-subpack
2025-01-17T13:30:08.959325 -    0.3 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Florence-2
2025-01-17T13:30:08.959325 -    0.4 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager
2025-01-17T13:30:08.959325 -    1.3 seconds: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-easy-use
2025-01-17T13:30:08.960325 - 
2025-01-17T13:30:08.975199 - Starting server

2025-01-17T13:30:08.975199 - To see the GUI go to: http://127.0.0.1:8188
2025-01-17T13:30:09.078178 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
2025-01-17T13:30:09.358437 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
2025-01-17T13:30:09.360439 - FETCH DATA from: https://api.comfy.org/nodes?page=1&limit=10002025-01-17T13:30:09.360439 - 2025-01-17T13:30:10.122907 - FETCH DATA from: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager\extension-node-map.json2025-01-17T13:30:10.122907 - 2025-01-17T13:30:10.127904 -  [DONE]2025-01-17T13:30:10.127904 - 
2025-01-17T13:30:10.969432 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI
            2025-01-17T13:30:10.969432 - 
2025-01-17T13:30:10.970434 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI
            2025-01-17T13:30:10.971433 - 
2025-01-17T13:30:10.971433 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI
            2025-01-17T13:30:10.971433 - 
2025-01-17T13:30:10.972434 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI
            2025-01-17T13:30:10.972434 - 
2025-01-17T13:30:10.973434 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI
            2025-01-17T13:30:10.973434 - 
2025-01-17T13:30:10.973434 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI
            2025-01-17T13:30:10.974435 - 
2025-01-17T13:30:12.089836 -  [DONE]2025-01-17T13:30:12.090836 - 
2025-01-17T13:30:12.258163 - [ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes?page=1&limit=10002025-01-17T13:30:12.258163 - 
2025-01-17T13:30:12.313685 - nightly_channel: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/cache
2025-01-17T13:30:12.313685 - FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2025-01-17T13:30:12.314686 - 2025-01-17T13:30:12.555896 -  [DONE]2025-01-17T13:30:12.555896 - 
2025-01-17T13:30:51.899978 - No valid images to upload for _mask.png. Continuing without it.2025-01-17T13:30:51.899978 - 
2025-01-17T13:30:51.909979 - got prompt
2025-01-17T13:30:52.270040 - model weight dtype torch.float16, manual cast: None
2025-01-17T13:30:52.272041 - model_type EPS
2025-01-17T13:30:53.175624 - Using pytorch attention in VAE
2025-01-17T13:30:53.177625 - Using pytorch attention in VAE
2025-01-17T13:30:53.285561 - VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
2025-01-17T13:30:53.523822 - Requested to load SDXLClipModel
2025-01-17T13:30:53.538128 - loaded completely 9.5367431640625e+25 1560.802734375 True
2025-01-17T13:30:53.543130 - CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cuda:0, dtype: torch.float16
2025-01-17T13:30:54.564831 - Loading model from D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\models\LLM\Florence-2-base2025-01-17T13:30:54.564831 - 
2025-01-17T13:30:54.564831 - Florence2 using sdpa for attention2025-01-17T13:30:54.564831 - 
2025-01-17T13:30:54.637860 - No flash_attn import to remove2025-01-17T13:30:54.637860 - 
2025-01-17T13:30:54.938816 - !!! Exception during processing !!! mutable default <class 'timm.models.maxxvit.MaxxVitConvCfg'> for field conv_cfg is not allowed: use default_factory
2025-01-17T13:30:54.942818 - Traceback (most recent call last):
  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\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 "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\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 "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-florence2\nodes.py", line 177, in loadmodel
    model = AutoModelForCausalLM.from_pretrained(model_path, attn_implementation=attention, device_map=device, torch_dtype=dtype,trust_remote_code=True)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\models\auto\auto_factory.py", line 553, in from_pretrained
    model_class = get_class_from_dynamic_module(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\dynamic_module_utils.py", line 541, in get_class_from_dynamic_module
    final_module = get_cached_module_file(
                   ^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\dynamic_module_utils.py", line 366, in get_cached_module_file
    modules_needed = check_imports(resolved_module_file)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\dynamic_module_utils.py", line 186, in check_imports
    importlib.import_module(imp)
  File "importlib\__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\timm\__init__.py", line 2, in <module>
    from .models import create_model, list_models, is_model, list_modules, model_entrypoint, \
  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\timm\models\__init__.py", line 28, in <module>
    from .maxxvit import *
  File "D:\SPZ\StableProjectorz\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\timm\models\maxxvit.py", line 225, in <module>
    @dataclass
     ^^^^^^^^^
  File "dataclasses.py", line 1275, in dataclass
  File "dataclasses.py", line 1265, in wrap
  File "dataclasses.py", line 994, in _process_class
  File "dataclasses.py", line 852, in _get_field
ValueError: mutable default <class 'timm.models.maxxvit.MaxxVitConvCfg'> for field conv_cfg is not allowed: use default_factory

2025-01-17T13:30:54.944820 - Prompt executed in 3.03 seconds

Attached Workflow

Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

Workflow too large. Please manually upload the workflow from local file system.

Additional Context

(Please add any additional context or steps to reproduce the error here)

@kijai
Copy link
Owner

kijai commented Jan 17, 2025

I'm not sure, but assuming this has to do with timm and transformers version, both at latest version are working for me at least so could try updating them.

@StanislavShashkov
Copy link
Author

No, it didn't help, unfortunately, the same error(

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