CosmicLaca / ComfyUI_Primere_Nodes

ComfyUI node pack
GNU General Public License v3.0
107 stars 13 forks source link

PrimereImageSegments.primere_segments() missing 1 required positional argument: 'segment_prompt_data' #8

Closed hiowenluke closed 9 months ago

hiowenluke commented 9 months ago
Error occurred when executing PrimereImageSegments:

PrimereImageSegments.primere_segments() missing 1 required positional argument: 'segment_prompt_data'

File "D:\ComfyUI\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\ComfyUI\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "D:\ComfyUI\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
capture2
CosmicLaca commented 9 months ago

Hi [hiowenluke], the node already updated. The 'PROMPT_DATA' from refiner prompt node must be connected to Image segments. Just pull and refresh the node.

hiowenluke commented 9 months ago

The code is newest:

image

The 'PROMPT_DATA' can be only connected to segmeng_settings in Primere Any Detailer, and the error is still exists.

image

Error:

Error occurred when executing PrimereImageSegments:

PrimereImageSegments.primere_segments() missing 1 required positional argument: 'segment_prompt_data'

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

The workflow is below: workflow.json

CosmicLaca commented 9 months ago

@hiowenluke Something wrong in attached workflow, 'prompt_data' must be connected to the image segment node, like in the pic. But I attach my development workflow, tested before uploaded, and working well in my environment. 2024-03-03_19-46-13 refiner_dev.json

CosmicLaca commented 9 months ago

@hiowenluke Finally I checked your attached workflow. Something outdated I think, you must re-create all old nodes (after git pull on my nodepack and comfy root too).

I tested for hair, and succeed with Sd and SDXL checkpoints too:

2024-03-04_09-05-42 2024-03-04_08-53-30

hiowenluke commented 9 months ago

It works. Thanks.