kijai / ComfyUI-Florence2

Inference Microsoft Florence2 VLM
MIT License
768 stars 51 forks source link

AttributeError: 'NoneType' object has no attribute 'loader' #74

Closed fractal-fumbler closed 3 weeks ago

fractal-fumbler commented 2 months ago

trying to execute node on latest comfy with intel arc a770

!!! Exception during processing !!! 'NoneType' object has no attribute 'loader' ```python Loading model from /tmp/ComfyUI/models/LLM/CogFlorence-2.2-Large using sdpa for attention /tmp/ComfyUI/xpu/lib/python3.12/site-packages/huggingface_hub/file_download.py:1142: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new down load, use `force_download=True`. warnings.warn( !!! Exception during processing !!! 'NoneType' object has no attribute 'loader' Traceback (most recent call last): File "/tmp/ComfyUI/execution.py", line 323, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, p re_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/ComfyUI/execution.py", line 198, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=exec ution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/ComfyUI/execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "/tmp/ComfyUI/execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/ComfyUI/custom_nodes/ComfyUI-Florence2/nodes.py", line 174, in loadmodel processor = AutoProcessor.from_pretrained(model_path, trust_remote_code=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/ComfyUI/xpu/lib/python3.12/site-packages/transformers/models/auto/processing_auto.py", line 311, in from_pr etrained processor_class = get_class_from_dynamic_module( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/ComfyUI/xpu/lib/python3.12/site-packages/intel_extension_for_pytorch/llm/utils.py", line 430, in _get_class _from_dynamic_module return get_class_in_module( ^^^^^^^^^^^^^^^^^^^^ File "/tmp/ComfyUI/xpu/lib/python3.12/site-packages/transformers/dynamic_module_utils.py", line 208, in get_class_in_m odule module = importlib.util.module_from_spec(module_spec) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 810, in module_from_spec AttributeError: 'NoneType' object has no attribute 'loader' ```

run with sdpa/eager attention, fp16/bf16/fp32, but no luck. IS problem on my side?