Kosinkadink / ComfyUI-Advanced-ControlNet

ControlNet scheduling and masking nodes with sliding context support
GNU General Public License v3.0
610 stars 60 forks source link

Error occurred when executing ControlNetLoaderAdvanced: 'ControlNet' object has no attribute 'latent_format' #149

Closed AnhDung306080 closed 3 months ago

AnhDung306080 commented 3 months ago

Today, I got this error, a few days ago I used it normally. After I updated node and ComfyUI, I got this error. I don't know how to handle it. Please help me, thank you very much Operating System: Windows 10 Hardware: NVIDIA RTX 3060 12GB, 32GB RAM

Error occurred when executing ControlNetLoaderAdvanced:

'ControlNet' object has no attribute 'latent_format'

File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI_windows_portable\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 "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\nodes.py", line 51, in load_controlnet controlnet = load_controlnet(controlnet_path, tk_optional) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\control.py", line 471, in load_controlnet return convert_to_advanced(control, timestep_keyframe=timestep_keyframe) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\control.py", line 480, in convert_to_advanced control = ControlNetAdvanced.from_vanilla(v=control, timestep_keyframe=timestep_keyframe) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\control.py", line 105, in from_vanilla global_average_pooling=v.global_average_pooling, compression_ratio=v.compression_ratio, latent_format=v.latent_format, device=v.device, load_device=v.load_device, manual_cast_dtype=v.manual_cast_dtype) ^^^^^^^^^^^^^^^ 01

Kosinkadink commented 3 months ago

Your ComfyUI is outdated. Update ComfyUI and your error will go away.

https://github.com/Kosinkadink/ComfyUI-Advanced-ControlNet/issues/124#issuecomment-2205478442

AnhDung306080 commented 3 months ago

Your ComfyUI is outdated. Update ComfyUI and your error will go away.

#124 (comment)

Thank you very much, let me update