Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prior Image doesn't work #15

Open
Alasundru opened this issue Jan 24, 2025 · 3 comments
Open

Prior Image doesn't work #15

Alasundru opened this issue Jan 24, 2025 · 3 comments

Comments

@Alasundru
Copy link

I tried adding an image to the "Prior Image" slot and received this error popup:

ApplyPulidFlux
ApplyPulidFlux.apply_pulid_flux() got an unexpected keyword argument 'prior_image'

This is from the CMD console:

got prompt
Failed to validate prompt for output 214:
* (prompt):
  - Required input is missing: images
* PreviewImage 214:
  - Required input is missing: images
Output will be ignored
Failed to validate prompt for output 212:
* (prompt):
  - Required input is missing: images
* PreviewImage 212:
  - Required input is missing: images
Output will be ignored
!!! Exception during processing !!! ApplyPulidFlux.apply_pulid_flux() got an unexpected keyword argument 'prior_image'
Traceback (most recent call last):
  File "D:\ComfyUI_P\ComfyUI\execution.py", line 327, 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 "D:\ComfyUI_P\ComfyUI\execution.py", line 202, 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 "D:\ComfyUI_P\ComfyUI\execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "D:\ComfyUI_P\ComfyUI\execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ApplyPulidFlux.apply_pulid_flux() got an unexpected keyword argument 'prior_image'
@gothxx
Copy link

gothxx commented Jan 26, 2025

update the comfyui to latest, and restart comfyui, the problem will be fixed.

@lldacing
Copy link
Owner

lldacing commented Jan 26, 2025

I tried adding an image to the "Prior Image" slot and received this error popup:

ApplyPulidFlux ApplyPulidFlux.apply_pulid_flux() got an unexpected keyword argument 'prior_image'

This is from the CMD console:

got prompt
Failed to validate prompt for output 214:
* (prompt):
  - Required input is missing: images
* PreviewImage 214:
  - Required input is missing: images
Output will be ignored
Failed to validate prompt for output 212:
* (prompt):
  - Required input is missing: images
* PreviewImage 212:
  - Required input is missing: images
Output will be ignored
!!! Exception during processing !!! ApplyPulidFlux.apply_pulid_flux() got an unexpected keyword argument 'prior_image'
Traceback (most recent call last):
  File "D:\ComfyUI_P\ComfyUI\execution.py", line 327, 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 "D:\ComfyUI_P\ComfyUI\execution.py", line 202, 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 "D:\ComfyUI_P\ComfyUI\execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "D:\ComfyUI_P\ComfyUI\execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ApplyPulidFlux.apply_pulid_flux() got an unexpected keyword argument 'prior_image'

You need recreate node. Because you used pulid_enchance before.

@Alasundru
Copy link
Author

I tried adding an image to the "Prior Image" slot and received this error popup:
ApplyPulidFlux ApplyPulidFlux.apply_pulid_flux() got an unexpected keyword argument 'prior_image'
This is from the CMD console:

got prompt
Failed to validate prompt for output 214:
* (prompt):
  - Required input is missing: images
* PreviewImage 214:
  - Required input is missing: images
Output will be ignored
Failed to validate prompt for output 212:
* (prompt):
  - Required input is missing: images
* PreviewImage 212:
  - Required input is missing: images
Output will be ignored
!!! Exception during processing !!! ApplyPulidFlux.apply_pulid_flux() got an unexpected keyword argument 'prior_image'
Traceback (most recent call last):
  File "D:\ComfyUI_P\ComfyUI\execution.py", line 327, 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 "D:\ComfyUI_P\ComfyUI\execution.py", line 202, 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 "D:\ComfyUI_P\ComfyUI\execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "D:\ComfyUI_P\ComfyUI\execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ApplyPulidFlux.apply_pulid_flux() got an unexpected keyword argument 'prior_image'

You need recreate node. Because you used pulid_enchance before.

You are 100% correct, my bad. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants