LucianoCirino/efficiency-nodes-comfyui

TSC_HighRes_Fix.hires_fix_script() missing 2 required positional arguments: 'pixel_upscaler' and 'control_net_name'

realcarlos opened this issue · 4 comments

Screenshot from 2023-10-23 21-16-03
Screenshot from 2023-10-23 21-16-42

I could not find the "use_controlnet" choice

I have this same issue! Cannot figure out why I don't have the use_controlnet option in my HighRes-Fix Script box. I get the same error, and seemingly no way to fix it.

Actually, this is the error I get:

Error occurred when executing HighRes-Fix Script:

TSC_HighRes_Fix.hires_fix_script() missing 1 required positional argument: 'control_net_name'

File "C:...\ComfyUI\execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "C:...\ComfyUI\execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "C:..\ComfyUI\execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))

"control_net_name" is due to not having any controlnet models installed.

even if you don't use controlnet on the highresfix, it's going to return null and crash, so you need at least 1 installed.

I was able to workaround this by copying the Highres fix node from this example
https://github.com/LucianoCirino/efficiency-nodes-comfyui/blob/v2.0/workflows/HiResFix%20Script.png