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

[BUG] - Error occurred when executing SDPromptReader #68

Open
BFGesus opened this issue May 4, 2024 · 1 comment
Open

[BUG] - Error occurred when executing SDPromptReader #68

BFGesus opened this issue May 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@BFGesus
Copy link

BFGesus commented May 4, 2024

Description

Error occurs when selecting certain images generated using ComfyUI. SD Prompt Reader fails to execute. Attached is an example ComfyUI image that fails to load.

Reproduction steps

Error occurred when executing SDPromptReader:

invalid literal for int() with base 10: 'None'

File "K:\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\ComfyUI\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 "K:\ComfyUI\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 "K:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-prompt-reader-node\nodes.py", line 184, in load_image
seed = int(
^^^^

Image file

ComfyUI_01312_

@BFGesus BFGesus added the bug Something isn't working label May 4, 2024
@receyuki
Copy link
Owner

receyuki commented May 5, 2024

Under normal circumstances, parsing this image should display

The workflow is overly complex, or unsupported custom nodes have been used.
Please see the README for more details.
https://github.com/receyuki/comfyui-prompt-reader-node#prompt-reader-node

However, the prompt reader mistakenly thought it had successfully parsed the image (but it actually hadn't). I will fix the issue of throwing an error, but overall, this image is still too complex for the prompt reader.

Due to custom nodes and complex workflows potentially causing issues with SD Prompt Reader's ability to read image metadata correctly, it is recommended to embed the Prompt Saver Node within the workflow to ensure maximum compatibility.

receyuki added a commit to receyuki/stable-diffusion-prompt-reader that referenced this issue May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants