chflame163 / ComfyUI_LayerStyle

A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.
MIT License
1.56k stars 90 forks source link

local variable 'processor' referenced before assignment #265

Open av8dtop opened 2 months ago

av8dtop commented 2 months ago

ComfyUI Error Report

Error Details

chflame163 commented 2 months ago

Are there any more error messages?

av8dtop commented 2 months ago

好像沒有遺漏! 就滿單純的,但是我的model應該都很正確沒問題,就一個florence2 load model有問題,大致上看代碼就是load model有問題,滿疑惑的,還是有可能是跟某個東西有衝突才導致的

0: 640x480 1 face, 17.2ms Speed: 0.0ms preprocess, 17.2ms inference, 0.0ms postprocess per image at shape (1, 3, 640, 480)

😺dzNodes: LayerStyle -> Object detector output by_index: invalid bbox index 1

😺dzNodes: LayerStyle -> Object detector output by_index: invalid bbox index 2

😺dzNodes: LayerStyle -> Object detector output by_index: invalid bbox index 5

😺dzNodes: LayerStyle -> Object detector output by_index: invalid bbox index 6

😺dzNodes: LayerStyle -> Object Detector YOLO8 found 1 object(s)

😺dzNodes: LayerStyle -> SAM2 Ultra Processed 1 image(s).

😺dzNodes: LayerStyle -> Error loading model base: list.remove(x): x not in list

😺dzNodes: LayerStyle -> Attempting to load tokenizer instead of processor...

😺dzNodes: LayerStyle -> Error loading model or tokenizer: name 'AutoTokenizer' is not defined

!!! Exception during processing !!! local variable 'processor' referenced before assignment Traceback (most recent call last): File "F:\ComfyUI-aki-v1.2\execution.py", line 317, 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 "F:\ComfyUI-aki-v1.2\execution.py", line 192, 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 "F:\ComfyUI-aki-v1.2\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "F:\ComfyUI-aki-v1.2\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) File "F:\ComfyUI-aki-v1.2\custom_nodes\ComfyUI_LayerStyle\py\florence2_ultra.py", line 386, in load self.model, self.processor = load_model(version) File "F:\ComfyUI-aki-v1.2\custom_nodes\ComfyUI_LayerStyle\py\florence2_ultra.py", line 62, in load_model return (model.to(device), processor) UnboundLocalError: local variable 'processor' referenced before assignment

av8dtop commented 2 months ago

看樣子好像是遺漏了什麼?

chflame163 commented 2 months ago

升级transformers试试