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] - When attempting to read the prompt of a .png file in Comfyui that does not have any prompt data an error is produced #58

Closed
MokkaBoss1 opened this issue Feb 9, 2024 · 6 comments
Labels
bug Something isn't working question Further information is requested

Comments

@MokkaBoss1
Copy link

Description

the following error is produced when the above the condition is met.

Error occurred when executing SDPromptReader:

No data detected or unsupported format

File "F:\comfynew\ComfyUI\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\comfynew\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 "F:\comfynew\ComfyUI\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\comfynew\ComfyUI\ComfyUI\custom_nodes\comfyui-prompt-reader-node\nodes.py", line 159, in load_image
raise ValueError(MESSAGE["format_error"][1])

Reproduction steps

  1. insert SD prompt reader node
  2. include image
  3. queue prompt
  4. error

Image file

654987

@MokkaBoss1 MokkaBoss1 added the bug Something isn't working label Feb 9, 2024
@receyuki
Copy link
Owner

The image you uploaded doesn't contain any metadata. It may have been compressed.

@receyuki receyuki changed the title When attempting to read the prompt of a .png file in Comfyui that does not have any prompt data an error is produced [BUG] - When attempting to read the prompt of a .png file in Comfyui that does not have any prompt data an error is produced Feb 13, 2024
@receyuki receyuki added the question Further information is requested label Feb 13, 2024
@MokkaBoss1
Copy link
Author

sd prompt reader (1).json

Untitled

hope this works now - I just included the .json file and the image as an example

@receyuki
Copy link
Owner

I'm sorry to tell you that your photo still doesn't contain any metadata. It seems to have been edited with Affinity Photo, which may be the reason.

@MokkaBoss1
Copy link
Author

MokkaBoss1 commented Feb 17, 2024 via email

@receyuki
Copy link
Owner

You're right! I'm currently planning to add more user-friendly warnings.

@MokkaBoss1
Copy link
Author

MokkaBoss1 commented Feb 26, 2024 via email

receyuki added a commit that referenced this issue Feb 27, 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 question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants