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] - Doesn't work for ComfyUI SDXL flows #25

Open
kelzan opened this issue Jul 27, 2023 · 35 comments
Open

[BUG] - Doesn't work for ComfyUI SDXL flows #25

kelzan opened this issue Jul 27, 2023 · 35 comments
Labels
bug Something isn't working

Comments

@kelzan
Copy link

kelzan commented Jul 27, 2023

Has worked great up until now for ComfyUI generated images, however there's something about the new SDXL flows where it won't read the metadata. I've tried several flows, both version 0.9 and 1.0, but haven't gotten anything to work.
I attached an example image generated by ComfyUI with SDXL1.0.
Love this tool, by the way!
SDXL_1 0_Output_00001_

@receyuki
Copy link
Owner

@kelzan @GlebIgorevich @Marscog @Tikishark777 @lilixil
Which solution do you guys prefer?
❤️ for option 1 and 🚀 for option 2

  1. Always display Clip G, Clip L and Refiner prompt in separate textboxes.
截屏2023-08-20 下午9 08 58 2. Use tabs to switch between different prompts. 截屏2023-08-20 下午10 10 25 For me, the second solution looks better, but I'm not sure if it's necessary to keep Clip G, Clip L and Refiner prompt displayed all the time.

@Marscog
Copy link

Marscog commented Aug 20, 2023 via email

@Tikishark777
Copy link

I like the second option as well. It's less cluttered and since I mostly only use clip g it fits my purpose. However, I'd be happy with either version. Ty for your time on this project.

@kelzan
Copy link
Author

kelzan commented Aug 21, 2023

If the prompts are short, the first option is nice, however I think I'd prefer the second option the majority of the time.

@GlebIgorevich
Copy link

GlebIgorevich commented Aug 21, 2023

I think we need both types and the button for switching between them. 1st is good for the short prompts, but is not good for the long prompts. 2nd is opposite: good for long prompts only.

But it will be broken again if the workflow has more than 3+3 nodes for prompt. And no ideas how to showing that correctly. Merging all of them is not good idea.

@receyuki
Copy link
Owner

I think we need both types and the button for switching between them. 1st is good for the short prompts, but is not good for the long prompts. 2nd is opposite: good for long prompts only.

But it will be broken again if the workflow has more than 3+3 nodes for prompt. And no ideas how to showing that correctly. Merging all of them is not good idea.

Although I know that theoretically ComfyUI can have more than 2 Ksamplers, I don't understand in what situations users would need more than 3+3 prompts. Do you have any examples for that?

@receyuki
Copy link
Owner

I finally decided to keep both and switch between them using a button.
截屏2023-08-23 上午12 50 39

@Tikishark777
Copy link

Looks great. Good choice.

@receyuki receyuki reopened this Aug 23, 2023
@receyuki
Copy link
Owner

I just released a new beta version🚀.
Please test it with different sdxl images. If there are any issues, please let me know.

https://github.com/receyuki/stable-diffusion-prompt-reader/releases/tag/v1.3.3-beta.1

@GlebIgorevich
Copy link

Tested on the different old images which can't read via tool. Almost all can be read now. But a few still not working.
22 (5)

@Tikishark777
Copy link

Unfortunately, it won't work with any of my images. I do see text for the last box, but the everything is blank.

image

@receyuki
Copy link
Owner

@GlebIgorevich

    "77": {
        "inputs": {
            "filename_prefix": "ComfyUI_upscaled"
        },
        "class_type": "SaveImage"
    }

This workflow looks so weird. Although this node looks fine in ComfyUI, it's not connected to any other nodes in the raw workflow data. It appears to be a bug in ComfyUI or UltimateSDUpscale. But anyway, I've added new logic to handle this situation. Thank you for your help!

@receyuki
Copy link
Owner

SD-Prompt-Reader-1.3.3-beta.1+dev.1-Windows-x64.zip

@GlebIgorevich
Try this version, images similar to the one above should all work fine now. If there are other images that are not working, please let me know.

@Tikishark777
Try this version first. If it still doesn't work properly, please upload the original image here or send it to my email at receyuki@gmail.com.

@Tikishark777
Copy link

Thank you for looking at this further. I tried the updated version, but still with no luck. I'm attaching an image from my workflow. It could be one of my extensions that's throwing everything off.
gen_00085_

@GlebIgorevich
Copy link

@receyuki still not working.
изображение

Found the second image which can't read.
refiner_continued_output_01160_

@receyuki
Copy link
Owner

@Tikishark777
Oh my goodness, this workflow is truly impressive. I've never seen such a complex workflow before, and almost every node is a custom node.

However, this also means that I'll need a large amount of time to support these custom nodes. Especially with Searge, this extension has significantly different characteristics compared to the original ComfyUI.

Thus, I'm sorry to say that I might not be able to provide support for Searge. Nevertheless, you can still use the copy button next to the export button to extract all the raw metadata. Although you may not be able to directly discern any useful infomation from it.

@receyuki
Copy link
Owner

@GlebIgorevich I will be releasing beta2 within the next few days to fix the norwegian forest cat. But what I don't understand is that the mermaid image works fine on my end. I guess you might be using the wrong version. But don't worry, give beta2 a try when it's released, and we'll see how it goes.

@Tikishark777
Copy link

I completely understand. I do appreciate all you hard work though. I'm currently trying to replicate some of what Searge is doing without all the custom nodes. Hopefully, that will help as well.

@receyuki
Copy link
Owner

@Tikishark777 In theory, as long as the workflow uses native KSampler nodes, including "KSampler", "KSamplerAdvanced" and native CLIPTextEncode nodes such as "CLIPTextEncode", "CLIPTextEncodeSDXL" and "CLIPTextEncodeSDXLRefiner" the workflow should be recognised correctly. But, I am aware that this requirement is quite demanding.

@receyuki
Copy link
Owner

@receyuki receyuki changed the title Doesn't work for ComfyUI SDXL flows [BUG] - Doesn't work for ComfyUI SDXL flows Aug 28, 2023
@GlebIgorevich
Copy link

@receyuki works better! All the previous problems looks like fixed.

But I found an another problem: seed, image size and models can't displayed.
изображение

Try this image: https://civitai.com/images/2247572

@receyuki
Copy link
Owner

@GlebIgorevich Can you post the image here? I can't download the original image from civitai. When I download the images, they are all being compressed into JPEG.

@GlebIgorevich
Copy link

@receyuki done
00004_1200x1880-dreamshaperXL10_alpha2Xl10-Upscaling_on-photon_v1-4x-UltraSharp pth

@receyuki
Copy link
Owner

@GlebIgorevich This new bug is again caused by new custom nodes, and I will fix it in the next release.

However, to be honest, the more custom nodes users use, the higher the likelihood that image data won't be read correctly. Civitai's online tools tend to ignore custom nodes, while the diffusion toolkit only directly reads data from KSampler, so it's also unable to handle custom nodes. Perhaps I should consider giving up support for custom nodes.

@Marscog
Copy link

Marscog commented Aug 30, 2023

None of my comfy files work. I think it is because I use SDXL Promp Styler for everything. Here is an example file.
I think it would be difficult to get it to work with comfy since there are infinite workflows.
ComfyUI CNtest_00039_

@Marscog
Copy link

Marscog commented Aug 30, 2023

I'm using a new program now, Fooocus the Moonrider branch. I don't know if you could read the info from these files. I'm sure it would be easier than comfy. Here is an example.
2023-08-29_13-24-25_1047

@receyuki
Copy link
Owner

receyuki commented Aug 30, 2023

@Marscog Can you open a new issue of type "Format Support Request"? I took a quick look, and I believe I should be able to support this format quite easily.

BTW, I just fixed the bug of the Ben Grimm image. The issue was actually caused by "ControlNetApplyAdvanced." As for "SDXLPromptStyler", I added support for it a few versions ago.

receyuki added a commit that referenced this issue Aug 30, 2023
@receyuki
Copy link
Owner

@GlebIgorevich @Marscog
SD-Prompt-Reader-1.3.3-beta.2-dev.1-Windows-x64.zip
Try it out. (Hopefully the last dev version)

@Marscog
Copy link

Marscog commented Aug 31, 2023

The new version works for my files in comfy and fooocus MRE branch.
THANKS!

@GlebIgorevich
Copy link

@receyuki That's working. Thank you a lot!

Ideas for the next update: collecting info form Face Detailer node (this is a same as After Detailer for A1111) and upscaling (like a hires).
изображение

@receyuki
Copy link
Owner

receyuki commented Sep 1, 2023

@GlebIgorevich Both FaceDetailer and UltimateSDUpscale are custom nodes, and personally, I would prefer not to handle the parameters of custom nodes, as this would be another never-ending task.

Also, both FaceDetailer and UltimateSDUpscale have very large number of parameters, even more than KSampler. If I include the custom node parameters in the settings, the settings will become really really long.

@GlebIgorevich
Copy link

I think supporting the ComfyUI workflows is never-ending task anyway. Just because someone will add the new custom basic nodes (prompts, samplers, styles).

@receyuki
Copy link
Owner

I just released the SD Prompt Reader ComfyUI node version, try it out. If you encounter any issues or have any suggestions, please let me know.
https://github.com/receyuki/comfyui-prompt-reader-node

@WinstonWoof
Copy link

wonderful concept however point blank refuses to read anything saved with a standard ComfyUI Image Save node for me (### ComfyUI Revision: 1866 [1b103e0c] | Released on '2023-12-30')

Example Image attached

Winston_413736592282329_20240103143309_00001_

NB using the Node version I get this

image

@receyuki
Copy link
Owner

receyuki commented Jan 5, 2024

@WinstonWoof The image above uses many custom nodes that are not supported by the SD Prompt Reader. It's best to use Prompt Saver node to ensure the metadata can be read by Prompt Reader or any other metadata reading tool.

The reason for this is quite simple: for each custom node, I have to support them individually. Although I have supported a large number of custom nodes, this is still an endless task. That's why I decided to make Prompt Saver node.

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

When branches are created from issues, their pull requests are automatically linked.

6 participants