chflame163 / ComfyUI_LayerStyle

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

Error occurred when executing LayerFilter: Sharp & Soft: name 'guidedFilter' is not defined #53

Closed zono50 closed 3 months ago

zono50 commented 3 months ago

Hi there, so I installed your workflow and was eager to use it. It gets all the way to the last step, then gives me the following error message.

Error occurred when executing LayerFilter: Sharp & Soft:

name 'guidedFilter' is not defined

File "/home/zono50/Applications/ComfyUI/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/home/zono50/Applications/ComfyUI/execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "/home/zono50/Applications/ComfyUI/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "/home/zono50/Applications/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/sharp&soft.py", line 58, in sharp_and_soft imgG = np.clip(guidedFilter(image, image, d, s), 0.001, 1)

I may be doing something dumb but I did install ComfyUI_Layerstyle from the comfyui Manager, and am eager to get this to work.